This patch ensures that lib/tempest doesn't call nova when heat is
enabled and nova is disabled.
Change-Id: I2debbae1bb82ecace1058e99ab172272393fb5ea
Closes-bug: #1549708
| ... | ... |
@@ -412,12 +412,15 @@ function configure_tempest {
|
| 412 | 412 |
if [[ ! -z "$HEAT_CFN_IMAGE_URL" ]]; then |
| 413 | 413 |
iniset $TEMPEST_CONFIG orchestration image_ref $(basename "${HEAT_CFN_IMAGE_URL%.*}")
|
| 414 | 414 |
fi |
| 415 |
- # build a specialized heat flavor |
|
| 416 |
- available_flavors=$(nova flavor-list) |
|
| 417 |
- if [[ ! ( $available_flavors =~ 'm1.heat' ) ]]; then |
|
| 418 |
- nova flavor-create m1.heat 451 512 0 1 |
|
| 415 |
+ # Nova might not be enabled, especially when we want to test tempest scenario/API that only create Neutron resources |
|
| 416 |
+ if is_service_enabled nova; then |
|
| 417 |
+ # build a specialized heat flavor |
|
| 418 |
+ available_flavors=$(nova flavor-list) |
|
| 419 |
+ if [[ ! ( $available_flavors =~ 'm1.heat' ) ]]; then |
|
| 420 |
+ nova flavor-create m1.heat 451 512 0 1 |
|
| 421 |
+ fi |
|
| 422 |
+ iniset $TEMPEST_CONFIG orchestration instance_type "m1.heat" |
|
| 419 | 423 |
fi |
| 420 |
- iniset $TEMPEST_CONFIG orchestration instance_type "m1.heat" |
|
| 421 | 424 |
iniset $TEMPEST_CONFIG orchestration build_timeout 900 |
| 422 | 425 |
iniset $TEMPEST_CONFIG orchestration stack_owner_role "_member_" |
| 423 | 426 |
fi |