Cinder: Wait for volume to be 'available' before attaching
VolumesV2ActionsTest creates a volume in resource_setup() but doesn't wait
before attempting a volume attach operation (in the `test_*` methods)
Change-Id: Ic205f1e2ff6902b2e55fe3fccedd6ce1547efb98
Closes-Bug: #1422308
diff --git a/tempest/api/volume/test_volumes_actions.py b/tempest/api/volume/test_volumes_actions.py
index 8b91c7f..333a4f7 100644
--- a/tempest/api/volume/test_volumes_actions.py
+++ b/tempest/api/volume/test_volumes_actions.py
@@ -38,6 +38,7 @@
# Create a test shared volume for attach/detach tests
cls.volume = cls.create_volume()
+ cls.client.wait_for_volume_status(cls.volume['id'], 'available')
def _delete_image_with_wait(self, image_id):
self.image_client.delete_image(image_id)