Codebase list cinder-tempest-plugin / 2be6e10
Ensure server and backed volume are created in the same AZ This change ensures that the server and its associated backed volume are created in the same AZ, addressing scenarios where mismatched AZs could lead to operational failures or inconsistencies. Closes-Bug: #2089766 Change-Id: Ibd33dbe024d9f82cd17bb072664ae56ce0604388 lkuchlan 1 year, 5 months ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9090 name = data_utils.rand_name(cls.__name__ + '-Volume')
9191 kwargs['name'] = name
9292
93 if CONF.compute.compute_volume_common_az:
94 kwargs.setdefault('availability_zone',
95 CONF.compute.compute_volume_common_az)
96
9397 volume = cls.volumes_client.create_volume(**kwargs)['volume']
9498 cls.addClassResourceCleanup(
9599 cls.volumes_client.wait_for_resource_deletion, volume['id'])