diff --git a/lib/libraries b/lib/libraries index 4ceb80423c..6d52f642a1 100644 --- a/lib/libraries +++ b/lib/libraries @@ -30,6 +30,7 @@ GITDIR["debtcollector"]=$DEST/debtcollector GITDIR["futurist"]=$DEST/futurist GITDIR["os-client-config"]=$DEST/os-client-config GITDIR["osc-lib"]=$DEST/osc-lib +GITDIR["osc-placement"]=$DEST/osc-placement GITDIR["oslo.cache"]=$DEST/oslo.cache GITDIR["oslo.concurrency"]=$DEST/oslo.concurrency GITDIR["oslo.config"]=$DEST/oslo.config @@ -91,6 +92,7 @@ function install_libs { _install_lib_from_source "debtcollector" _install_lib_from_source "futurist" _install_lib_from_source "osc-lib" + _install_lib_from_source "osc-placement" _install_lib_from_source "os-client-config" _install_lib_from_source "oslo.cache" _install_lib_from_source "oslo.concurrency" diff --git a/lib/placement b/lib/placement index aef9b7454e..d3fb8c848d 100644 --- a/lib/placement +++ b/lib/placement @@ -159,6 +159,9 @@ function init_placement { # install_placement() - Collect source and prepare function install_placement { install_apache_wsgi + # Install the openstackclient placement client plugin for CLI + # TODO(mriedem): Use pip_install_gr once osc-placement is in g-r. + pip_install osc-placement } # start_placement_api() - Start the API processes ahead of other things diff --git a/stackrc b/stackrc index 3591994f79..af0709a225 100644 --- a/stackrc +++ b/stackrc @@ -388,6 +388,10 @@ GITBRANCH["python-openstackclient"]=${OPENSTACKCLIENT_BRANCH:-master} # this doesn't exist in a lib file, so set it here GITDIR["python-openstackclient"]=$DEST/python-openstackclient +# placement-api CLI +GITREPO["osc-placement"]=${OSC_PLACEMENT_REPO:-${GIT_BASE}/openstack/osc-placement.git} +GITBRANCH["osc-placement"]=${OSC_PLACEMENT_BRANCH:-master} + ################### # diff --git a/tests/test_libs_from_pypi.sh b/tests/test_libs_from_pypi.sh index 5b4ff32f2a..0bd8d49357 100755 --- a/tests/test_libs_from_pypi.sh +++ b/tests/test_libs_from_pypi.sh @@ -36,7 +36,8 @@ ALL_LIBS+=" oslo.messaging oslo.log cliff 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 osc-lib os-client-config oslo.rootwrap" +ALL_LIBS+=" python-openstackclient osc-lib osc-placement" +ALL_LIBS+=" os-client-config oslo.rootwrap" ALL_LIBS+=" oslo.i18n oslo.utils python-openstacksdk python-swiftclient" ALL_LIBS+=" python-neutronclient tooz ceilometermiddleware oslo.policy" ALL_LIBS+=" debtcollector os-brick os-traits automaton futurist oslo.service"