Handle instance being rebuild causing integration-test failure
Tempest now have only 1 image instead of two. This address the concern by setting the metadata to all images and returning the first one instead of assuming there is two. Change-Id: I8ea8ae85d06c8dcc7373c9cf8cd5a9c978b15e28
This commit is contained in:
parent
d888655fc7
commit
dcef52bbd3
|
@ -71,5 +71,6 @@ class TestServerRebuildScenario(base.BaseAlmanachScenarioTest):
|
|||
# if the image is changed (we receive the image_name in the notification).
|
||||
def _prepare_image(self):
|
||||
images = self.image_client.list_images()['images']
|
||||
self.os_adm.compute_images_client.set_image_metadata(images[1]['id'], {'distro': 'linux'})
|
||||
return images[1]
|
||||
for image in images:
|
||||
self.os_adm.compute_images_client.set_image_metadata(image['id'], {'distro': 'linux'})
|
||||
return images[0]
|
||||
|
|
Loading…
Reference in New Issue