From 1ab63132df6831bdf7ce180cf7923540305dcd02 Mon Sep 17 00:00:00 2001 From: Przemyslaw Szczerbik Date: Tue, 6 Jul 2021 14:26:40 +0200 Subject: [PATCH] Allow to install os-resource-classes from git repo Example local.conf config snippet: LIBS_FROM_GIT="os-resource-classes" OS_RESOURCE_CLASSES_REPO="${LOCAL_GIT_BASE}/os-resource-classes" OS_RESOURCE_CLASSES_BRANCH="dev_branch" Closes-Bug: #1934784 Change-Id: I972a2a49aa816433152e5cfac4f672c0465d083f --- lib/libraries | 2 ++ stackrc | 4 ++++ tests/test_libs_from_pypi.sh | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 lib/libraries mode change 100644 => 100755 stackrc diff --git a/lib/libraries b/lib/libraries old mode 100644 new mode 100755 index c7aa8151ae..67ff21f41a --- a/lib/libraries +++ b/lib/libraries @@ -59,6 +59,7 @@ GITDIR["tooz"]=$DEST/tooz # Non oslo libraries are welcomed below as well, this prevents # duplication of this code. GITDIR["os-brick"]=$DEST/os-brick +GITDIR["os-resource-classes"]=$DEST/os-resource-classes GITDIR["os-traits"]=$DEST/os-traits # Support entry points installation of console scripts @@ -122,6 +123,7 @@ function install_libs { # # os-traits for nova _install_lib_from_source "os-brick" + _install_lib_from_source "os-resource-classes" _install_lib_from_source "os-traits" # # python client libraries we might need from git can go here diff --git a/stackrc b/stackrc old mode 100644 new mode 100755 index 05016594eb..620b1fc04d --- a/stackrc +++ b/stackrc @@ -548,6 +548,10 @@ GITREPO["neutron-lib"]=${NEUTRON_LIB_REPO:-${GIT_BASE}/openstack/neutron-lib.git GITBRANCH["neutron-lib"]=${NEUTRON_LIB_BRANCH:-$TARGET_BRANCH} GITDIR["neutron-lib"]=$DEST/neutron-lib +# os-resource-classes library containing a list of standardized resource classes for OpenStack +GITREPO["os-resource-classes"]=${OS_RESOURCE_CLASSES_REPO=:-${GIT_BASE}/openstack/os-resource-classes.git} +GITBRANCH["os-resource-classes"]=${OS_RESOURCE_CLASSES_BRANCH:-$TARGET_BRANCH} + # os-traits library for resource provider traits in the placement service GITREPO["os-traits"]=${OS_TRAITS_REPO:-${GIT_BASE}/openstack/os-traits.git} GITBRANCH["os-traits"]=${OS_TRAITS_BRANCH:-$TARGET_BRANCH} diff --git a/tests/test_libs_from_pypi.sh b/tests/test_libs_from_pypi.sh index 5b53389073..ce1b34461c 100755 --- a/tests/test_libs_from_pypi.sh +++ b/tests/test_libs_from_pypi.sh @@ -44,7 +44,7 @@ ALL_LIBS+=" debtcollector os-brick os-traits automaton futurist oslo.service" ALL_LIBS+=" oslo.cache oslo.reports osprofiler cursive" ALL_LIBS+=" keystoneauth ironic-lib neutron-lib oslo.privsep" ALL_LIBS+=" diskimage-builder os-vif python-brick-cinderclient-ext" -ALL_LIBS+=" castellan python-barbicanclient ovsdbapp os-ken" +ALL_LIBS+=" castellan python-barbicanclient ovsdbapp os-ken os-resource-classes" # Generate the above list with # echo ${!GITREPO[@]}