diff --git a/lib/ironic b/lib/ironic index b3ad586923..6fb5184af9 100644 --- a/lib/ironic +++ b/lib/ironic @@ -31,6 +31,7 @@ set +o pipefail # Set up default directories GITDIR["python-ironicclient"]=$DEST/python-ironicclient +GITDIR["ironic-lib"]=$DEST/ironic-lib IRONIC_DIR=$DEST/ironic IRONIC_PYTHON_AGENT_DIR=$DEST/ironic-python-agent @@ -191,6 +192,12 @@ function install_ironic { die $LINENO "$srv should be enabled for Ironic." fi done + + if use_library_from_git "ironic-lib"; then + git_clone_by_name "ironic-lib" + setup_dev_lib "ironic-lib" + fi + git_clone $IRONIC_REPO $IRONIC_DIR $IRONIC_BRANCH setup_develop $IRONIC_DIR diff --git a/stackrc b/stackrc index 156cb1f85a..760e2fc745 100644 --- a/stackrc +++ b/stackrc @@ -455,6 +455,10 @@ GITBRANCH["ceilometermiddleware"]=${CEILOMETERMIDDLEWARE_BRANCH:-master} GITREPO["os-brick"]=${OS_BRICK_REPO:-${GIT_BASE}/openstack/os-brick.git} GITBRANCH["os-brick"]=${OS_BRICK_BRANCH:-master} +# ironic common lib +GITREPO["ironic-lib"]=${IRONIC_LIB_REPO:-${GIT_BASE}/openstack/ironic-lib.git} +GITBRANCH["ironic-lib"]=${IRONIC_LIB_BRANCH:-master} + ################## # diff --git a/tests/test_libs_from_pypi.sh b/tests/test_libs_from_pypi.sh index d10cd0ee62..cf6ec1cbff 100755 --- a/tests/test_libs_from_pypi.sh +++ b/tests/test_libs_from_pypi.sh @@ -41,7 +41,7 @@ ALL_LIBS+=" python-ceilometerclient oslo.utils python-swiftclient" ALL_LIBS+=" python-neutronclient tooz ceilometermiddleware oslo.policy" ALL_LIBS+=" debtcollector os-brick automaton futurist oslo.service" ALL_LIBS+=" oslo.cache oslo.reports" -ALL_LIBS+=" keystoneauth" +ALL_LIBS+=" keystoneauth ironic-lib" # Generate the above list with # echo ${!GITREPO[@]}