the previous addition to trove was done in a way that it was not
possible to discover from nodepool. This fixes our ability to do
that, especially with non-default on services.
Change-Id: I8ca682354e0d4e2eb9cf05f40c6dd783de1c6355
... | ... |
@@ -36,7 +36,6 @@ TROVE_AUTH_CACHE_DIR=${TROVE_AUTH_CACHE_DIR:-/var/cache/trove} |
36 | 36 |
TROVE_DATASTORE_TYPE=${TROVE_DATASTORE_TYPE:-"mysql"} |
37 | 37 |
TROVE_DATASTORE_VERSION=${TROVE_DATASTORE_VERSION:-"5.5"} |
38 | 38 |
TROVE_DATASTORE_PACKAGE=${TROVE_DATASTORE_PACKAGE:-"mysql-server-5.5"} |
39 |
-TROVE_GUEST_IMAGE_URL=${TROVE_GUEST_IMAGE_URL:-"http://tarballs.openstack.org/trove/images/ubuntu_mysql.qcow2/ubuntu_mysql.qcow2"} |
|
40 | 39 |
|
41 | 40 |
# Support entry points installation of console scripts |
42 | 41 |
if [[ -d $TROVE_DIR/bin ]]; then |
... | ... |
@@ -35,17 +35,19 @@ fi |
35 | 35 |
# # Optional, to enable tempest configuration as part of devstack |
36 | 36 |
# enable_service tempest |
37 | 37 |
|
38 |
-# core compute (glance / keystone / nova (+ nova-network)) |
|
39 |
-ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,n-sch,n-novnc,n-xvnc,n-cauth |
|
40 |
-# cinder |
|
41 |
-ENABLED_SERVICES+=,c-sch,c-api,c-vol |
|
42 |
-# heat |
|
43 |
-ENABLED_SERVICES+=,h-eng,h-api,h-api-cfn,h-api-cw |
|
44 |
-# dashboard |
|
45 |
-ENABLED_SERVICES+=,horizon |
|
46 |
-# additional services |
|
47 |
-ENABLED_SERVICES+=,rabbit,tempest,mysql |
|
48 |
- |
|
38 |
+# this allows us to pass ENABLED_SERVICES |
|
39 |
+if [[ -z "$ENABLED_SERVICES" ]]; then |
|
40 |
+ # core compute (glance / keystone / nova (+ nova-network)) |
|
41 |
+ ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,n-sch,n-novnc,n-xvnc,n-cauth |
|
42 |
+ # cinder |
|
43 |
+ ENABLED_SERVICES+=,c-sch,c-api,c-vol |
|
44 |
+ # heat |
|
45 |
+ ENABLED_SERVICES+=,h-eng,h-api,h-api-cfn,h-api-cw |
|
46 |
+ # dashboard |
|
47 |
+ ENABLED_SERVICES+=,horizon |
|
48 |
+ # additional services |
|
49 |
+ ENABLED_SERVICES+=,rabbit,tempest,mysql |
|
50 |
+fi |
|
49 | 51 |
|
50 | 52 |
# Tell Tempest which services are available. The default is set here as |
51 | 53 |
# Tempest falls late in the configuration sequence. This differs from |
... | ... |
@@ -361,6 +363,19 @@ if [[ "$ENABLED_SERVICES" =~ 'h-api' ]]; then |
361 | 361 |
;; |
362 | 362 |
esac |
363 | 363 |
fi |
364 |
+ |
|
365 |
+# Trove needs a custom image for it's work |
|
366 |
+if [[ "$ENABLED_SERVICES" =~ 'tr-api' ]]; then |
|
367 |
+ case "$VIRT_DRIVER" in |
|
368 |
+ libvirt|baremetal|ironic) |
|
369 |
+ TROVE_GUEST_IMAGE_URL=${TROVE_GUEST_IMAGE_URL:-"http://tarballs.openstack.org/trove/images/ubuntu_mysql.qcow2/ubuntu_mysql.qcow2"} |
|
370 |
+ IMAGE_URLS+=",${TROVE_GUEST_IMAGE_URL}" |
|
371 |
+ ;; |
|
372 |
+ *) |
|
373 |
+ ;; |
|
374 |
+ esac |
|
375 |
+fi |
|
376 |
+ |
|
364 | 377 |
# Staging Area for New Images, have them here for at least 24hrs for nodepool |
365 | 378 |
# to cache them otherwise the failure rates in the gate are too high |
366 | 379 |
PRECACHE_IMAGES=$(trueorfalse False $PRECACHE_IMAGES) |
... | ... |
@@ -10,7 +10,7 @@ source $TOP_DIR/functions |
10 | 10 |
DRIVERS="openvz ironic libvirt vsphere xenserver dummy" |
11 | 11 |
|
12 | 12 |
# Extra variables to trigger getting additional images. |
13 |
-ENABLED_SERVICES=h-api |
|
13 |
+export ENABLED_SERVICES="h-api,tr-api" |
|
14 | 14 |
HEAT_FETCHED_TEST_IMAGE="Fedora-i386-20-20131211.1-sda" |
15 | 15 |
PRECACHE_IMAGES=True |
16 | 16 |
|