os-brick code was pulled out of cinder and made into its own library
https://review.openstack.org/#/c/155552/
added to requirements:
https://review.openstack.org/#/c/177372/
Integration tests were added
https://review.openstack.org/#/c/188156/
But they still use the version of os-brick from pip.
This change updates devstack to pull in the changes from
os-brick patch sets instead, when configured to do so.
Needed-by: Id2bc10782847861fe4bb5e9e46245654450e38fd
Change-Id: I5359dd37dfe94bd469d5ca35f9fbaeda61b5fac4
| ... | ... |
@@ -39,6 +39,7 @@ fi |
| 39 | 39 |
|
| 40 | 40 |
# set up default directories |
| 41 | 41 |
GITDIR["python-cinderclient"]=$DEST/python-cinderclient |
| 42 |
+GITDIR["os-brick"]=$DEST/os-brick |
|
| 42 | 43 |
CINDER_DIR=$DEST/cinder |
| 43 | 44 |
|
| 44 | 45 |
# Cinder virtual environment |
| ... | ... |
@@ -381,6 +382,13 @@ function init_cinder {
|
| 381 | 381 |
|
| 382 | 382 |
# install_cinder() - Collect source and prepare |
| 383 | 383 |
function install_cinder {
|
| 384 |
+ # Install os-brick from git so we make sure we're testing |
|
| 385 |
+ # the latest code. |
|
| 386 |
+ if use_library_from_git "os-brick"; then |
|
| 387 |
+ git_clone_by_name "os-brick" |
|
| 388 |
+ setup_dev_lib "os-brick" |
|
| 389 |
+ fi |
|
| 390 |
+ |
|
| 384 | 391 |
git_clone $CINDER_REPO $CINDER_DIR $CINDER_BRANCH |
| 385 | 392 |
setup_develop $CINDER_DIR |
| 386 | 393 |
if [ "$CINDER_ISCSI_HELPER" = "tgtadm" ]; then |
| ... | ... |
@@ -441,6 +441,10 @@ SWIFT3_BRANCH=${SWIFT3_BRANCH:-master}
|
| 441 | 441 |
GITREPO["ceilometermiddleware"]=${CEILOMETERMIDDLEWARE_REPO:-${GIT_BASE}/openstack/ceilometermiddleware.git}
|
| 442 | 442 |
GITBRANCH["ceilometermiddleware"]=${CEILOMETERMIDDLEWARE_BRANCH:-master}
|
| 443 | 443 |
|
| 444 |
+# os-brick library to manage local volume attaches |
|
| 445 |
+GITREPO["os-brick"]=${OS_BRICK_REPO:-${GIT_BASE}/openstack/os-brick.git}
|
|
| 446 |
+GITBRANCH["os-brick"]=${OS_BRICK_BRANCH:-master}
|
|
| 447 |
+ |
|
| 444 | 448 |
|
| 445 | 449 |
################## |
| 446 | 450 |
# |
| ... | ... |
@@ -39,7 +39,7 @@ ALL_LIBS+=" oslo.serialization python-saharaclient django_openstack_auth" |
| 39 | 39 |
ALL_LIBS+=" python-openstackclient oslo.rootwrap oslo.i18n" |
| 40 | 40 |
ALL_LIBS+=" python-ceilometerclient oslo.utils python-swiftclient" |
| 41 | 41 |
ALL_LIBS+=" python-neutronclient tooz ceilometermiddleware oslo.policy" |
| 42 |
-ALL_LIBS+=" debtcollector" |
|
| 42 |
+ALL_LIBS+=" debtcollector os-brick" |
|
| 43 | 43 |
|
| 44 | 44 |
# Generate the above list with |
| 45 | 45 |
# echo ${!GITREPO[@]}
|