Add disk size to the flavors

Nova has added a default policy
os_compute_api:servers:create:zero_disk_flavor to admin-only,
that will prevent non-admins from creating image-backed servers
with a flavor that has disk=0 which is potential a security
exposure.

Add appropriate disk size to flavors we use in tests.

Change-Id: I9c0af0b40fc5b5c33de7f0c690d156ed2bac2f15
This commit is contained in:
Rabi Mishra 2019-02-15 15:48:36 +05:30
parent d19e0be516
commit 84c908ca9e
1 changed files with 7 additions and 2 deletions

View File

@ -95,5 +95,10 @@ function _config_tempest_plugin
_config_functionaltests
_config_tempest_plugin
openstack flavor show m1.heat_int || openstack flavor create m1.heat_int --ram 512
openstack flavor show m1.heat_micro || openstack flavor create m1.heat_micro --ram 128
# (FIXME) Remove this after backport to stable/rocky
# Remove/Recreate existing flavors
openstack flavor show m1.heat_int && openstack flavor delete m1.heat_int
openstack flavor show m1.heat_micro && openstack flavor delete m1.heat_micro
openstack flavor show m1.heat_int || openstack flavor create m1.heat_int --ram 512 --disk 4
openstack flavor show m1.heat_micro || openstack flavor create m1.heat_micro --ram 128 --disk 1