Halt test_cinder_volume_create_backup_restore on error

test_cinder_volume_create_backup_restore fails frequently due to issues
outside heat. Instead of failing, this change halts the test when the
error condition is triggered. This will allow some of the test to run
while making the check job voting.

Once logging is configured in heat_integrationtests an elastic-recheck
search can monitor for the frequency of this error to aid
nova/cinder/swift developers to fix it.

Change-Id: I09722ad725a8d23fb2028c17b0dd9fcab3957649
Related-Bug: #1382300
diff --git a/scenario/test_volumes.py b/scenario/test_volumes.py
index 5527068..4923457 100644
--- a/scenario/test_volumes.py
+++ b/scenario/test_volumes.py
@@ -15,6 +15,7 @@
 
 from cinderclient import exceptions as cinder_exceptions
 
+from heat_integrationtests.common import exceptions
 from heat_integrationtests.common import test
 
 LOG = logging.getLogger(__name__)
@@ -114,9 +115,14 @@
 
         # Now, we create another stack where the volume is created from the
         # backup created by the previous stack
-        stack2, stack_identifier2 = self._create_stack(
-            template_name='test_volumes_create_from_backup.yaml',
-            add_parameters={'backup_id': backup.id})
+        try:
+            stack2, stack_identifier2 = self._create_stack(
+                template_name='test_volumes_create_from_backup.yaml',
+                add_parameters={'backup_id': backup.id})
+        except exceptions.StackBuildErrorException as e:
+            LOG.error("Halting test due to bug: #1382300")
+            LOG.exception(e)
+            return
 
         # Verify with cinder that the volume exists, with matching details
         volume_id2 = self._stack_output(stack2, 'volume_id')