From 1ffa33210def38e488b8887c69b70faad5965a00 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 20 Feb 2015 16:23:15 +0100 Subject: [PATCH] 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. Change-Id: Ifa774219b7057112fc794a5e3d93bc963c55ba90 --- stack.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/stack.sh b/stack.sh index 0ec7a5e5e5..cf99950e18 100755 --- a/stack.sh +++ b/stack.sh @@ -734,14 +734,6 @@ fi # Install middleware install_keystonemiddleware -# install the OpenStack client, needed for most setup commands -if use_library_from_git "python-openstackclient"; then - git_clone_by_name "python-openstackclient" - setup_dev_lib "python-openstackclient" -else - pip_install 'python-openstackclient>=1.0.2' -fi - if is_service_enabled keystone; then if [ "$KEYSTONE_AUTH_HOST" == "$SERVICE_HOST" ]; then @@ -816,13 +808,22 @@ if is_service_enabled tls-proxy || [ "$USE_SSL" == "True" ]; then # don't be naive and add to existing line! fi - # Extras Install # -------------- # Phase: install run_phase stack install + +# install the OpenStack client, needed for most setup commands +if use_library_from_git "python-openstackclient"; then + git_clone_by_name "python-openstackclient" + setup_dev_lib "python-openstackclient" +else + pip_install 'python-openstackclient>=1.0.2' +fi + + if [[ $TRACK_DEPENDS = True ]]; then $DEST/.venv/bin/pip freeze > $DEST/requires-post-pip if ! diff -Nru $DEST/requires-pre-pip $DEST/requires-post-pip > $DEST/requires.diff; then