Skip to content

Commit aefc926

Browse files
mriedemsdague
authored andcommitted
Support installing os-traits from git
This will be used in a src job for running os-traits changes in a dsvm/tempest setup. Change-Id: I3c4433fb1ca2787e96b577a15d584b625c364ef3
1 parent e1a2448 commit aefc926

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

lib/oslo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ GITDIR["python-openstacksdk"]=$DEST/python-openstacksdk
5454
GITDIR["stevedore"]=$DEST/stevedore
5555
GITDIR["taskflow"]=$DEST/taskflow
5656
GITDIR["tooz"]=$DEST/tooz
57+
# TODO(mriedem): This is a common pattern so even though os-traits isn't
58+
# officially an oslo library, it is nice to re-use this script for non-oslo
59+
# things like os-traits. We should rename this script to be more generic
60+
# and then fold os-brick into it also.
61+
GITDIR["os-traits"]=$DEST/os-traits
5762

5863
# Support entry points installation of console scripts
5964
OSLO_BIN_DIR=$(get_python_exec_prefix)
@@ -104,6 +109,7 @@ function install_oslo {
104109
_do_install_oslo_lib "stevedore"
105110
_do_install_oslo_lib "taskflow"
106111
_do_install_oslo_lib "tooz"
112+
_do_install_oslo_lib "os-traits"
107113
}
108114

109115
# Restore xtrace

stackrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,10 @@ GITREPO["neutron-lib"]=${NEUTRON_LIB_REPO:-${GIT_BASE}/openstack/neutron-lib.git
570570
GITBRANCH["neutron-lib"]=${NEUTRON_LIB_BRANCH:-master}
571571
GITDIR["neutron-lib"]=$DEST/neutron-lib
572572

573+
# os-traits library for resource provider traits in the placement service
574+
GITREPO["os-traits"]=${OS_TRAITS_REPO:-${GIT_BASE}/openstack/os-traits.git}
575+
GITBRANCH["os-traits"]=${OS_TRAITS_BRANCH:-master}
576+
573577
##################
574578
#
575579
# TripleO / Heat Agent Components

tests/test_libs_from_pypi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ALL_LIBS+=" oslo.serialization django_openstack_auth"
3939
ALL_LIBS+=" python-openstackclient osc-lib os-client-config oslo.rootwrap"
4040
ALL_LIBS+=" oslo.i18n oslo.utils python-openstacksdk python-swiftclient"
4141
ALL_LIBS+=" python-neutronclient tooz ceilometermiddleware oslo.policy"
42-
ALL_LIBS+=" debtcollector os-brick automaton futurist oslo.service"
42+
ALL_LIBS+=" debtcollector os-brick os-traits automaton futurist oslo.service"
4343
ALL_LIBS+=" oslo.cache oslo.reports osprofiler cursive"
4444
ALL_LIBS+=" keystoneauth ironic-lib neutron-lib oslo.privsep"
4545
ALL_LIBS+=" diskimage-builder os-vif python-brick-cinderclient-ext"

0 commit comments

Comments
 (0)