commit 9aab461f45e80b9e99060d3a08300e82e196ad31 Author: Paras Babbar Date: Mon Oct 5 17:27:35 2020 -0400 Add volume size flavor option in tempest.conf This will provide flexibility to customize the flavor volume size according to the image used in running the tempest test. For ex- rhel/windows take 10-20 gb volume size depends on the qcow2 image used. Change-Id: I833a83b4a616971ffa2a567d5f6993bc46459dc1 diff --git a/whitebox_tempest_plugin/api/compute/base.py b/whitebox_tempest_plugin/api/compute/base.py index ced4a59..55cc02d 100644 --- a/whitebox_tempest_plugin/api/compute/base.py +++ b/whitebox_tempest_plugin/api/compute/base.py @@ -48,7 +48,8 @@ class BaseWhiteboxComputeTest(base.BaseV2ComputeAdminTest): return self.admin_servers_client.show_server(server['id'])['server'] - def create_flavor(self, ram=64, vcpus=2, disk=1, name=None, + def create_flavor(self, ram=64, vcpus=2, + disk=CONF.whitebox.flavor_volume_size, name=None, is_public='True', extra_specs=None, **kwargs): flavor = super(BaseWhiteboxComputeTest, self).create_flavor( ram, vcpus, disk, name, is_public, **kwargs) diff --git a/whitebox_tempest_plugin/config.py b/whitebox_tempest_plugin/config.py index d7eb08b..0bd1088 100644 --- a/whitebox_tempest_plugin/config.py +++ b/whitebox_tempest_plugin/config.py @@ -82,7 +82,11 @@ general_opts = [ cfg.StrOpt( 'selinux_imagelabel', default=None, - help='provide the selinux image labels used by the instance') + help='provide the selinux image labels used by the instance'), + cfg.IntOpt( + 'flavor_volume_size', + default=1, + help="volume size for flavor used in whitebox test") ] nova_compute_group = cfg.OptGroup(