Browse code

Install openstackclient after other services

Let's see whether openstackclient will trigger unneeded version bump for
clients if its installation is put below all other services that are
expected to intall client libraries on proper versions on their own.

Conflicts:
stack.sh

Change-Id: Ifa774219b7057112fc794a5e3d93bc963c55ba90
(cherry picked from commit 1ffa33210def38e488b8887c69b70faad5965a00)

Ihar Hrachyshka authored on 2015/02/21 00:23:15
Showing 1 changed files
... ...
@@ -690,24 +690,6 @@ if is_service_enabled heat horizon; then
690 690
     install_heatclient
691 691
 fi
692 692
 
693
-# install the OpenStack client, needed for most setup commands
694
-if use_library_from_git "python-openstackclient"; then
695
-    git_clone_by_name "python-openstackclient"
696
-    setup_dev_lib "python-openstackclient"
697
-else
698
-    # FIXME(adam)g: Work around a gate wedge by installing a capped novaclient
699
-    # here, so that the following OSC installation does not pull in a newer one
700
-    # via its uncapped requirement.  This can be removed once OSC ends up in a
701
-    # venv.
702
-    pip_install "python-novaclient>=2.17.0,<2.21"
703
-
704
-    # Also install the capped neutronclient as per blocked
705
-    # https://review.openstack.org/#/c/157606/
706
-    pip_install "python-neutronclient>=2.3.4,<2.3.11"
707
-
708
-    pip_install "python-openstackclient<=1.0.1"
709
-fi
710
-
711 693
 if is_service_enabled key; then
712 694
     install_keystone
713 695
     configure_keystone
... ...
@@ -778,7 +760,6 @@ if is_service_enabled tls-proxy; then
778 778
     # don't be naive and add to existing line!
779 779
 fi
780 780
 
781
-
782 781
 # Extras Install
783 782
 # --------------
784 783
 
... ...
@@ -789,6 +770,24 @@ if [[ -d $TOP_DIR/extras.d ]]; then
789 789
     done
790 790
 fi
791 791
 
792
+# install the OpenStack client, needed for most setup commands
793
+if use_library_from_git "python-openstackclient"; then
794
+    git_clone_by_name "python-openstackclient"
795
+    setup_dev_lib "python-openstackclient"
796
+else
797
+    # FIXME(adam)g: Work around a gate wedge by installing a capped novaclient
798
+    # here, so that the following OSC installation does not pull in a newer one
799
+    # via its uncapped requirement.  This can be removed once OSC ends up in a
800
+    # venv.
801
+    pip_install "python-novaclient>=2.17.0,<2.21"
802
+
803
+    # Also install the capped neutronclient as per blocked
804
+    # https://review.openstack.org/#/c/157606/
805
+    pip_install "python-neutronclient>=2.3.4,<2.3.11"
806
+
807
+    pip_install "python-openstackclient<=1.0.1"
808
+fi
809
+
792 810
 if [[ $TRACK_DEPENDS = True ]]; then
793 811
     $DEST/.venv/bin/pip freeze > $DEST/requires-post-pip
794 812
     if ! diff -Nru $DEST/requires-pre-pip $DEST/requires-post-pip > $DEST/requires.diff; then