From 06f3639a70dc5884107a4045bef5a9de1fb725a5 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 12 Aug 2016 09:35:42 -0500 Subject: [PATCH] Add os-client-config and osc-lib from source There is currently a hole in our testing that lets os-client-config, which sits at the bottom of the dependency chain for some key pieces like neutronclient and python-openstackclient, introduce gate breakages. Step one in fixing this is allowing os-client-config to be optionally installed from source so that jobs can be put into its gate to exercise its master vs devstack installs. Additionally, osc-lib is a new and lovely library that's going to need the same things. We're putting both in install_oslo, even though they're not oslo libraries, because that'll make grenade work properly. Co-Authored-By: Monty Taylor Change-Id: I747480b6063a62e82ca2b030f274d3e87bf28b3b --- lib/oslo | 4 ++++ stackrc | 9 +++++++++ tests/test_libs_from_pypi.sh | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/oslo b/lib/oslo index 1773da2975..e34e48ad03 100644 --- a/lib/oslo +++ b/lib/oslo @@ -26,6 +26,8 @@ GITDIR["automaton"]=$DEST/automaton GITDIR["cliff"]=$DEST/cliff GITDIR["debtcollector"]=$DEST/debtcollector GITDIR["futurist"]=$DEST/futurist +GITDIR["os-client-config"]=$DEST/os-client-config +GITDIR["osc-lib"]=$DEST/osc-lib GITDIR["oslo.cache"]=$DEST/oslo.cache GITDIR["oslo.concurrency"]=$DEST/oslo.concurrency GITDIR["oslo.config"]=$DEST/oslo.config @@ -71,6 +73,8 @@ function install_oslo { _do_install_oslo_lib "cliff" _do_install_oslo_lib "debtcollector" _do_install_oslo_lib "futurist" + _do_install_oslo_lib "osc-lib" + _do_install_oslo_lib "os-client-config" _do_install_oslo_lib "oslo.cache" _do_install_oslo_lib "oslo.concurrency" _do_install_oslo_lib "oslo.config" diff --git a/stackrc b/stackrc index 4fefe8da30..bfb897b338 100644 --- a/stackrc +++ b/stackrc @@ -508,10 +508,19 @@ GITDIR["ceilometermiddleware"]=$DEST/ceilometermiddleware GITREPO["os-brick"]=${OS_BRICK_REPO:-${GIT_BASE}/openstack/os-brick.git} GITBRANCH["os-brick"]=${OS_BRICK_BRANCH:-master} +# os-client-config to manage clouds.yaml and friends +GITREPO["os-client-config"]=${OS_CLIENT_CONFIG_REPO:-${GIT_BASE}/openstack/os-client-config.git} +GITBRANCH["os-client-config"]=${OS_CLIENT_CONFIG_BRANCH:-master} +GITDIR["os-client-config"]=$DEST/os-client-config + # os-vif library to communicate between Neutron to Nova GITREPO["os-vif"]=${OS_VIF_REPO:-${GIT_BASE}/openstack/os-vif.git} GITBRANCH["os-vif"]=${OS_VIF_BRANCH:-master} +# osc-lib OpenStackClient common lib +GITREPO["osc-lib"]=${OSC_LIB_REPO:-${GIT_BASE}/openstack/osc-lib.git} +GITBRANCH["osc-lib"]=${OSC_LIB_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 bb58088ef3..fb55023886 100755 --- a/tests/test_libs_from_pypi.sh +++ b/tests/test_libs_from_pypi.sh @@ -36,8 +36,8 @@ ALL_LIBS+=" oslo.messaging oslo.log cliff python-heatclient stevedore" ALL_LIBS+=" python-cinderclient glance_store oslo.concurrency oslo.db" ALL_LIBS+=" oslo.versionedobjects oslo.vmware keystonemiddleware" ALL_LIBS+=" oslo.serialization django_openstack_auth" -ALL_LIBS+=" python-openstackclient oslo.rootwrap oslo.i18n" -ALL_LIBS+=" oslo.utils python-swiftclient" +ALL_LIBS+=" python-openstackclient osc-lib os-client-config oslo.rootwrap" +ALL_LIBS+=" oslo.i18n 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 osprofiler"