Merge "Fixes bug 972673-Incorrect named parameters in BuildErrorException in test_volumes_list"
diff --git a/tempest/exceptions.py b/tempest/exceptions.py
index b49e9e6..2741ff1 100644
--- a/tempest/exceptions.py
+++ b/tempest/exceptions.py
@@ -47,6 +47,10 @@
message = "Server %(server_id)s failed to build and is in ERROR status"
+class VolumeBuildErrorException(TempestException):
+ message = "Volume %(volume_id)s failed to build and is in ERROR status"
+
+
class BadRequest(TempestException):
message = "Bad request"
diff --git a/tempest/services/nova/json/volumes_client.py b/tempest/services/nova/json/volumes_client.py
index ce212ff..165640f 100644
--- a/tempest/services/nova/json/volumes_client.py
+++ b/tempest/services/nova/json/volumes_client.py
@@ -83,7 +83,7 @@
resp, body = self.get_volume(volume_id)
volume_status = body['status']
if volume_status == 'error':
- raise exceptions.BuildErrorException(volume_id=volume_id)
+ raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
if int(time.time()) - start >= self.build_timeout:
message = 'Volume %s failed to reach %s status within '\