From ced6e44b85d351be07541f8e37fdec27d0f4b3fe Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Thu, 2 Nov 2017 19:03:46 -0400 Subject: [PATCH] Downgrade WARNING-level log It's expected that when a resource completes and the traversal it was processing is no longer active, we won't update the stack state in the database. Therefore don't log at WARNING level for this routine event. Change-Id: Ic901e46c251400c4eeb90a4d9ad4a97d61fb1af8 --- heat/engine/stack.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/heat/engine/stack.py b/heat/engine/stack.py index 16e5d2e558..b1ae877d8a 100644 --- a/heat/engine/stack.py +++ b/heat/engine/stack.py @@ -964,13 +964,11 @@ class Stack(collections.Mapping): # delete, stack lock is not used, hence persist state updated = self._persist_state() if not updated: - # Possibly failed concurrent update - LOG.warning("Failed to set state of stack %(name)s with" - " traversal ID %(trvsl_id)s, to" - " %(action)s_%(status)s", - {'name': self.name, - 'trvsl_id': self.current_traversal, - 'action': action, 'status': status}) + LOG.info("Stack %(name)s traversal %(trvsl_id)s no longer " + "active; not setting state to %(action)s_%(status)s", + {'name': self.name, + 'trvsl_id': self.current_traversal, + 'action': action, 'status': status}) return updated # Persist state to db only if status == IN_PROGRESS