Make scenario snapshot tests work with ephemeral|swap
Currently, the create_server_snapshot and
test_image_defined_boot_from_volume methods assume that the server
being snapshotted will have only one block device mapping. However, if
the server has an ephemeral disk and/or a swap disk, it will have
multiple block device mappings.
This can cause erroneous scenario test failures if the first block
device mapping in the image service response is not the root disk.
This adjusts create_server_snapshot and
test_image_defined_boot_from_volume to check for a non-null snapshot_id
before using it.
Change-Id: I2417d5a91ae5fbb2101b64a07b6b8c74199e8fb5
2 files changed