This commit loops over the list of services that tempest has config
options for in the service_available group and checks if the service
is enabled. Devstack will then set whether or not the service is
configured in tempest.conf.
Change-Id: Ib845d3e098fd3f45c8c26f5696af14cca1534e01
| ... | ... |
@@ -251,10 +251,6 @@ function configure_tempest() {
|
| 251 | 251 |
# Compute admin |
| 252 | 252 |
iniset $TEMPEST_CONF "compute-admin" password "$password" # DEPRECATED |
| 253 | 253 |
|
| 254 |
- # Network |
|
| 255 |
- if is_service_enabled neutron; then |
|
| 256 |
- iniset $TEMPEST_CONF service_available neutron "True" |
|
| 257 |
- fi |
|
| 258 | 254 |
iniset $TEMPEST_CONF network api_version 2.0 |
| 259 | 255 |
iniset $TEMPEST_CONF network tenant_networks_reachable "$tenant_networks_reachable" |
| 260 | 256 |
iniset $TEMPEST_CONF network public_network_id "$public_network_id" |
| ... | ... |
@@ -268,11 +264,6 @@ function configure_tempest() {
|
| 268 | 268 |
iniset $TEMPEST_CONF boto http_socket_timeout 30 |
| 269 | 269 |
iniset $TEMPEST_CONF boto ssh_user ${DEFAULT_INSTANCE_USER:-cirros}
|
| 270 | 270 |
|
| 271 |
- # Orchestration |
|
| 272 |
- if is_service_enabled heat; then |
|
| 273 |
- iniset $TEMPEST_CONF orchestration heat_available "True" |
|
| 274 |
- fi |
|
| 275 |
- |
|
| 276 | 271 |
# Scenario |
| 277 | 272 |
iniset $TEMPEST_CONF scenario img_dir "$FILES/images/cirros-0.3.1-x86_64-uec" |
| 278 | 273 |
|
| ... | ... |
@@ -287,6 +278,15 @@ function configure_tempest() {
|
| 287 | 287 |
# cli |
| 288 | 288 |
iniset $TEMPEST_CONF cli cli_dir $NOVA_BIN_DIR |
| 289 | 289 |
|
| 290 |
+ # service_available |
|
| 291 |
+ for service in nova cinder glance neutron swift heat ; do |
|
| 292 |
+ if is_service_enabled $service ; then |
|
| 293 |
+ iniset $TEMPEST_CONF service_available $service "True" |
|
| 294 |
+ else |
|
| 295 |
+ iniset $TEMPEST_CONF service_available $service "False" |
|
| 296 |
+ fi |
|
| 297 |
+ done |
|
| 298 |
+ |
|
| 290 | 299 |
echo "Created tempest configuration file:" |
| 291 | 300 |
cat $TEMPEST_CONF |
| 292 | 301 |
|