Unset the imageRef when booting from volume
When testing boot from volume, we were passing the image_ref no matter
what to servers.create. This will cause nova to use the metadata from
that image instead of the one that might contain the volume.
This patch sets the image to an empty string, which is the same
behaviour the nova CLI has when booting from a volume.
Change-Id: I59bd4e2be6d6fff782dd278390ad5241cd09e3df
diff --git a/tempest/scenario/test_volume_boot_pattern.py b/tempest/scenario/test_volume_boot_pattern.py
index 9a250d7..4584da3 100644
--- a/tempest/scenario/test_volume_boot_pattern.py
+++ b/tempest/scenario/test_volume_boot_pattern.py
@@ -53,7 +53,7 @@
'block_device_mapping': bd_map,
'key_name': keypair.name
}
- return self.create_server(create_kwargs=create_kwargs)
+ return self.create_server(image='', create_kwargs=create_kwargs)
def _create_snapshot_from_volume(self, vol_id):
volume_snapshots = self.volume_client.volume_snapshots