diff --git a/releasenotes/notes/add-consistency-group-exceptions-01cbb792cd710231.yaml b/releasenotes/notes/add-consistency-group-exceptions-01cbb792cd710231.yaml new file mode 100644 index 0000000000..e879c2cd05 --- /dev/null +++ b/releasenotes/notes/add-consistency-group-exceptions-01cbb792cd710231.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixed bug #1858417. Adding consistency group exceptions + ``ConsistencyGroupException`` and ``ConsistencyGroupSnapshotException`` + that didn't exist before and caused failure in cinder-tempest-plugin. diff --git a/tempest/lib/exceptions.py b/tempest/lib/exceptions.py index 13af890510..b25b4b2e0d 100644 --- a/tempest/lib/exceptions.py +++ b/tempest/lib/exceptions.py @@ -280,3 +280,12 @@ class InvalidTestResource(TempestException): class InvalidParam(TempestException): message = ("Invalid Parameter passed: %(invalid_param)s") + + +class ConsistencyGroupException(TempestException): + message = "Consistency group %(cg_id)s failed and is in ERROR status" + + +class ConsistencyGroupSnapshotException(TempestException): + message = ("Consistency group snapshot %(cgsnapshot_id)s failed and is " + "in ERROR status")