|
...
|
...
|
@@ -414,12 +414,15 @@ function configure_tempest {
|
|
414
|
414
|
if [[ ! -z "$HEAT_CFN_IMAGE_URL" ]]; then
|
|
415
|
415
|
iniset $TEMPEST_CONFIG orchestration image_ref $(basename "${HEAT_CFN_IMAGE_URL%.*}")
|
|
416
|
416
|
fi
|
|
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
|
|
|
417
|
+ # Nova might not be enabled, especially when we want to test tempest scenario/API that only create Neutron resources
|
|
|
418
|
+ if is_service_enabled nova; then
|
|
|
419
|
+ # build a specialized heat flavor
|
|
|
420
|
+ available_flavors=$(nova flavor-list)
|
|
|
421
|
+ if [[ ! ( $available_flavors =~ 'm1.heat' ) ]]; then
|
|
|
422
|
+ nova flavor-create m1.heat 451 512 0 1
|
|
|
423
|
+ fi
|
|
|
424
|
+ iniset $TEMPEST_CONFIG orchestration instance_type "m1.heat"
|
|
421
|
425
|
fi
|
|
422
|
|
- iniset $TEMPEST_CONFIG orchestration instance_type "m1.heat"
|
|
423
|
426
|
iniset $TEMPEST_CONFIG orchestration build_timeout 900
|
|
424
|
427
|
iniset $TEMPEST_CONFIG orchestration stack_owner_role "_member_"
|
|
425
|
428
|
fi
|