Note that TestVolumeBootPattern is for cinder v1 and there is a TestVolumeBootPatternV2 for cinder v2 to handle the different block device mapping format for cinder v2.
There is also some cleanup at the end of the test case, but that should probably be in addCleanup calls rather than at the end, otherwise they won't get called on tear down and we're potentially leaking resources:
# NOTE(gfidente): ensure resources are in clean state for
# deletion operations to succeed self._stop_instances([instance_2nd, instance_from_snapshot]) self._detach_volumes([volume_origin, volume])
Note that TestVolumeBootP attern is for cinder v1 and there is a TestVolumeBootP atternV2 for cinder v2 to handle the different block device mapping format for cinder v2.
There is also some cleanup at the end of the test case, but that should probably be in addCleanup calls rather than at the end, otherwise they won't get called on tear down and we're potentially leaking resources:
# NOTE(gfidente): ensure resources are in clean state for
self._ stop_instances( [instance_ 2nd, instance_ from_snapshot] )
self._ detach_ volumes( [volume_ origin, volume])
# deletion operations to succeed