Browse code

Merge "Generate Tempest service list rather than hard-code it"

Jenkins authored on 2014/01/30 23:38:12
Showing 14 changed files
... ...
@@ -52,7 +52,10 @@ CEILOMETER_BACKEND=${CEILOMETER_BACKEND:-mysql}
52 52
 CEILOMETER_SERVICE_PROTOCOL=http
53 53
 CEILOMETER_SERVICE_HOST=$SERVICE_HOST
54 54
 CEILOMETER_SERVICE_PORT=${CEILOMETER_SERVICE_PORT:-8777}
55
-#
55
+
56
+# Tell Tempest this project is present
57
+TEMPEST_SERVICES+=,ceilometer
58
+
56 59
 
57 60
 # Functions
58 61
 # ---------
... ...
@@ -79,6 +79,9 @@ VOLUME_BACKING_DEVICE2=${VOLUME_BACKING_DEVICE2:-}
79 79
 
80 80
 VOLUME_NAME_PREFIX=${VOLUME_NAME_PREFIX:-volume-}
81 81
 
82
+# Tell Tempest this project is present
83
+TEMPEST_SERVICES+=,cinder
84
+
82 85
 
83 86
 # Functions
84 87
 # ---------
... ...
@@ -52,6 +52,9 @@ fi
52 52
 # Glance connection info.  Note the port must be specified.
53 53
 GLANCE_HOSTPORT=${GLANCE_HOSTPORT:-$SERVICE_HOST:9292}
54 54
 
55
+# Tell Tempest this project is present
56
+TEMPEST_SERVICES+=,glance
57
+
55 58
 
56 59
 # Functions
57 60
 # ---------
... ...
@@ -38,6 +38,10 @@ HEAT_CONF=$HEAT_CONF_DIR/heat.conf
38 38
 HEAT_ENV_DIR=$HEAT_CONF_DIR/environment.d
39 39
 HEAT_TEMPLATES_DIR=$HEAT_CONF_DIR/templates
40 40
 
41
+# Tell Tempest this project is present
42
+TEMPEST_SERVICES+=,heat
43
+
44
+
41 45
 # Functions
42 46
 # ---------
43 47
 
... ...
@@ -31,6 +31,9 @@ HORIZON_DIR=$DEST/horizon
31 31
 # The example file in Horizon repo is used by default.
32 32
 HORIZON_SETTINGS=${HORIZON_SETTINGS:-$HORIZON_DIR/openstack_dashboard/local/local_settings.py.example}
33 33
 
34
+# Tell Tempest this project is present
35
+TEMPEST_SERVICES+=,horizon
36
+
34 37
 
35 38
 # Functions
36 39
 # ---------
... ...
@@ -42,6 +42,9 @@ IRONIC_BIN_DIR=$(get_python_exec_prefix)
42 42
 IRONIC_SERVICE_PROTOCOL=http
43 43
 IRONIC_HOSTPORT=${IRONIC_HOSTPORT:-$SERVICE_HOST:6385}
44 44
 
45
+# Tell Tempest this project is present
46
+TEMPEST_SERVICES+=,ironic
47
+
45 48
 
46 49
 # Functions
47 50
 # ---------
... ...
@@ -51,6 +51,10 @@ MARCONI_BRANCH=${MARCONI_BRANCH:-master}
51 51
 MARCONICLIENT_REPO=${MARCONICLIENT_REPO:-${GIT_BASE}/openstack/python-marconiclient.git}
52 52
 MARCONICLIENT_BRANCH=${MARCONICLIENT_BRANCH:-master}
53 53
 
54
+# Tell Tempest this project is present
55
+TEMPEST_SERVICES+=,marconi
56
+
57
+
54 58
 # Functions
55 59
 # ---------
56 60
 
... ...
@@ -237,6 +237,10 @@ else
237 237
     Q_USE_SECGROUP=False
238 238
 fi
239 239
 
240
+# Tell Tempest this project is present
241
+TEMPEST_SERVICES+=,neutron
242
+
243
+
240 244
 # Functions
241 245
 # ---------
242 246
 
... ...
@@ -122,6 +122,9 @@ MULTI_HOST=`trueorfalse False $MULTI_HOST`
122 122
 TEST_FLOATING_POOL=${TEST_FLOATING_POOL:-test}
123 123
 TEST_FLOATING_RANGE=${TEST_FLOATING_RANGE:-192.168.253.0/29}
124 124
 
125
+# Tell Tempest this project is present
126
+TEMPEST_SERVICES+=,nova
127
+
125 128
 
126 129
 # Functions
127 130
 # ---------
... ...
@@ -40,6 +40,10 @@ else
40 40
     SAVANNA_BIN_DIR=$(get_python_exec_prefix)
41 41
 fi
42 42
 
43
+# Tell Tempest this project is present
44
+TEMPEST_SERVICES+=,savanna
45
+
46
+
43 47
 # Functions
44 48
 # ---------
45 49
 
... ...
@@ -111,6 +111,9 @@ OBJECT_PORT_BASE=${OBJECT_PORT_BASE:-6013}
111 111
 CONTAINER_PORT_BASE=${CONTAINER_PORT_BASE:-6011}
112 112
 ACCOUNT_PORT_BASE=${ACCOUNT_PORT_BASE:-6012}
113 113
 
114
+# Tell Tempest this project is present
115
+TEMPEST_SERVICES+=,swift
116
+
114 117
 
115 118
 # Functions
116 119
 # ---------
... ...
@@ -329,7 +329,7 @@ function configure_tempest() {
329 329
     iniset $TEMPEST_CONF network-feature-enabled api_extensions "${NETWORK_API_EXTENSIONS:-all}"
330 330
 
331 331
     # service_available
332
-    for service in nova cinder glance neutron swift heat horizon ceilometer ironic savanna trove marconi; do
332
+    for service in ${TEMPEST_SERVICES//,/ }; do
333 333
         if is_service_enabled $service ; then
334 334
             iniset $TEMPEST_CONF service_available $service "True"
335 335
         else
... ...
@@ -38,6 +38,10 @@ else
38 38
     TROVE_BIN_DIR=$(get_python_exec_prefix)
39 39
 fi
40 40
 
41
+# Tell Tempest this project is present
42
+TEMPEST_SERVICES+=,trove
43
+
44
+
41 45
 # Functions
42 46
 # ---------
43 47
 
... ...
@@ -37,6 +37,12 @@ fi
37 37
 #  enable_service tempest
38 38
 ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql
39 39
 
40
+# Tell Tempest which services are available.  The default is set here as
41
+# Tempest falls late in the configuration sequence.  This differs from
42
+# ``ENABLED_SERVICES`` in that the project names are used here rather than
43
+# the service names, i.e.: TEMPEST_SERVICES="key,glance,nova"
44
+TEMPEST_SERVICES=""
45
+
40 46
 # Set the default Nova APIs to enable
41 47
 NOVA_ENABLED_APIS=ec2,osapi_compute,metadata
42 48