Replace cinder create volume with shade client.
[yardstick.git] / yardstick / common / exceptions.py
index 2d48abc..1aa734a 100644 (file)
@@ -54,6 +54,10 @@ class YardstickException(Exception):
         return False
 
 
+class ResourceCommandError(YardstickException):
+    message = 'Command: "%(command)s" Failed, stderr: "%(stderr)s"'
+
+
 class FunctionNotImplemented(YardstickException):
     message = ('The function "%(function_name)s" is not implemented in '
                '"%(class_name)" class.')
@@ -222,3 +226,11 @@ class ScenarioAttachVolumeError(YardstickException):
 
 class ScenarioGetServerError(YardstickException):
     message = 'Nova Get Server Scenario failed'
+
+
+class ScenarioGetFlavorError(YardstickException):
+    message = 'Nova Get Falvor Scenario failed'
+
+
+class ScenarioCreateVolumeError(YardstickException):
+    message = 'Cinder Create Volume Scenario failed'