From 8d0d3115ccf528ff5ae1533a670fc3bd475d0bcc Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Thu, 26 May 2016 23:41:49 +0300 Subject: [PATCH] Allow override of python-brick-cinderclient-ext library used by cinder Added to requirements: https://review.openstack.org/309084 Functional tests were added https://review.openstack.org/265811 But they still use the version of python-brick-cinderclient-ext from pip. This change updates devstack to pull in the changes from python-brick-cinderclient-ext patch sets instead, when configured to do so. Change-Id: I6d0f09950ea1200d3367a53aa4a3eea9be7abc66 Needed-by: I34f3b5ceaad7a50b1e9cadcc764f61c0aabe086d --- lib/cinder | 6 ++++++ stackrc | 4 ++++ tests/test_libs_from_pypi.sh | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/cinder b/lib/cinder index 9c818c6eb2..de67593f72 100644 --- a/lib/cinder +++ b/lib/cinder @@ -40,6 +40,7 @@ fi # set up default directories GITDIR["python-cinderclient"]=$DEST/python-cinderclient GITDIR["os-brick"]=$DEST/os-brick +GITDIR["python-brick-cinderclient-ext"]=$DEST/python-brick-cinderclient-ext CINDER_DIR=$DEST/cinder # Cinder virtual environment @@ -466,6 +467,11 @@ function install_cinder { # install_cinderclient() - Collect source and prepare function install_cinderclient { + if use_library_from_git "python-brick-cinderclient-ext"; then + git_clone_by_name "python-brick-cinderclient-ext" + setup_dev_lib "python-brick-cinderclient-ext" + fi + if use_library_from_git "python-cinderclient"; then git_clone_by_name "python-cinderclient" setup_dev_lib "python-cinderclient" diff --git a/stackrc b/stackrc index 8e1900dd94..969d77d95c 100644 --- a/stackrc +++ b/stackrc @@ -285,6 +285,10 @@ TEMPEST_BRANCH=${TEMPEST_BRANCH:-master} GITREPO["python-cinderclient"]=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git} GITBRANCH["python-cinderclient"]=${CINDERCLIENT_BRANCH:-master} +# os-brick client for local volume attachement +GITREPO["python-brick-cinderclient-ext"]=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-brick-cinderclient-ext.git} +GITBRANCH["python-brick-cinderclient-ext"]=${CINDERCLIENT_BRANCH:-master} + # python glance client library GITREPO["python-glanceclient"]=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git} GITBRANCH["python-glanceclient"]=${GLANCECLIENT_BRANCH:-master} diff --git a/tests/test_libs_from_pypi.sh b/tests/test_libs_from_pypi.sh index a979c346b8..bb58088ef3 100755 --- a/tests/test_libs_from_pypi.sh +++ b/tests/test_libs_from_pypi.sh @@ -42,7 +42,7 @@ ALL_LIBS+=" python-neutronclient tooz ceilometermiddleware oslo.policy" ALL_LIBS+=" debtcollector os-brick automaton futurist oslo.service" ALL_LIBS+=" oslo.cache oslo.reports osprofiler" ALL_LIBS+=" keystoneauth ironic-lib neutron-lib oslo.privsep" -ALL_LIBS+=" diskimage-builder os-vif" +ALL_LIBS+=" diskimage-builder os-vif python-brick-cinderclient-ext" # Generate the above list with # echo ${!GITREPO[@]}