Skip to content

Commit 8d0d311

Browse files
committed
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
1 parent 5af67ae commit 8d0d311

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

lib/cinder

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ fi
4040
# set up default directories
4141
GITDIR["python-cinderclient"]=$DEST/python-cinderclient
4242
GITDIR["os-brick"]=$DEST/os-brick
43+
GITDIR["python-brick-cinderclient-ext"]=$DEST/python-brick-cinderclient-ext
4344
CINDER_DIR=$DEST/cinder
4445

4546
# Cinder virtual environment
@@ -466,6 +467,11 @@ function install_cinder {
466467

467468
# install_cinderclient() - Collect source and prepare
468469
function install_cinderclient {
470+
if use_library_from_git "python-brick-cinderclient-ext"; then
471+
git_clone_by_name "python-brick-cinderclient-ext"
472+
setup_dev_lib "python-brick-cinderclient-ext"
473+
fi
474+
469475
if use_library_from_git "python-cinderclient"; then
470476
git_clone_by_name "python-cinderclient"
471477
setup_dev_lib "python-cinderclient"

stackrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ TEMPEST_BRANCH=${TEMPEST_BRANCH:-master}
285285
GITREPO["python-cinderclient"]=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git}
286286
GITBRANCH["python-cinderclient"]=${CINDERCLIENT_BRANCH:-master}
287287

288+
# os-brick client for local volume attachement
289+
GITREPO["python-brick-cinderclient-ext"]=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-brick-cinderclient-ext.git}
290+
GITBRANCH["python-brick-cinderclient-ext"]=${CINDERCLIENT_BRANCH:-master}
291+
288292
# python glance client library
289293
GITREPO["python-glanceclient"]=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git}
290294
GITBRANCH["python-glanceclient"]=${GLANCECLIENT_BRANCH:-master}

tests/test_libs_from_pypi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ALL_LIBS+=" python-neutronclient tooz ceilometermiddleware oslo.policy"
4242
ALL_LIBS+=" debtcollector os-brick automaton futurist oslo.service"
4343
ALL_LIBS+=" oslo.cache oslo.reports osprofiler"
4444
ALL_LIBS+=" keystoneauth ironic-lib neutron-lib oslo.privsep"
45-
ALL_LIBS+=" diskimage-builder os-vif"
45+
ALL_LIBS+=" diskimage-builder os-vif python-brick-cinderclient-ext"
4646

4747
# Generate the above list with
4848
# echo ${!GITREPO[@]}

0 commit comments

Comments
 (0)