From bf0efda6424bfcc56ba331160cdaf2b61248c4c7 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 2 Oct 2014 18:18:31 -0700 Subject: [PATCH] Stop stacktracing on QuotaErrors QuotaErrors are expected, no need to stacktrace for it. Change-Id: I748848789a73798abae964040efe1a329fbf1bd9 --- cinder/flow_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/flow_utils.py b/cinder/flow_utils.py index 7f1dbac7f5f..0d217885563 100644 --- a/cinder/flow_utils.py +++ b/cinder/flow_utils.py @@ -92,7 +92,8 @@ class DynamicLogListener(base_listener.ListenerBase): message_dict = {'task_name': details['task_name'], 'task_uuid': details['task_uuid'], 'state': state} - if result.check(exception.InvalidInput) is not None: + if (result.check(exception.InvalidInput, + exception.QuotaError) is not None): # Exception is an excepted case, don't stacktrace message_dict['exception_str'] = result.exception_str message = (_("Task '%(task_name)s' (%(task_uuid)s)"