Browse code

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

Matt Riedemann authored on 2017/06/01 04:39:48
Showing 3 changed files
... ...
@@ -54,6 +54,11 @@ GITDIR["python-openstacksdk"]=$DEST/python-openstacksdk
54 54
 GITDIR["stevedore"]=$DEST/stevedore
55 55
 GITDIR["taskflow"]=$DEST/taskflow
56 56
 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
57 62
 
58 63
 # Support entry points installation of console scripts
59 64
 OSLO_BIN_DIR=$(get_python_exec_prefix)
... ...
@@ -104,6 +109,7 @@ function install_oslo {
104 104
     _do_install_oslo_lib "stevedore"
105 105
     _do_install_oslo_lib "taskflow"
106 106
     _do_install_oslo_lib "tooz"
107
+    _do_install_oslo_lib "os-traits"
107 108
 }
108 109
 
109 110
 # Restore xtrace
... ...
@@ -570,6 +570,10 @@ GITREPO["neutron-lib"]=${NEUTRON_LIB_REPO:-${GIT_BASE}/openstack/neutron-lib.git
570 570
 GITBRANCH["neutron-lib"]=${NEUTRON_LIB_BRANCH:-master}
571 571
 GITDIR["neutron-lib"]=$DEST/neutron-lib
572 572
 
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
+
573 577
 ##################
574 578
 #
575 579
 #  TripleO / Heat Agent Components
... ...
@@ -39,7 +39,7 @@ ALL_LIBS+=" oslo.serialization django_openstack_auth"
39 39
 ALL_LIBS+=" python-openstackclient osc-lib os-client-config oslo.rootwrap"
40 40
 ALL_LIBS+=" oslo.i18n oslo.utils python-openstacksdk python-swiftclient"
41 41
 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"
43 43
 ALL_LIBS+=" oslo.cache oslo.reports osprofiler cursive"
44 44
 ALL_LIBS+=" keystoneauth ironic-lib neutron-lib oslo.privsep"
45 45
 ALL_LIBS+=" diskimage-builder os-vif python-brick-cinderclient-ext"