From 85c7dc391f110ab916ee902dec80ce44995f002d Mon Sep 17 00:00:00 2001 From: Eugene Nikanorov Date: Mon, 2 Jun 2014 14:26:09 +0400 Subject: [PATCH] Log firewall status on delete in case of status inconsistency This should help to troubleshoot related gate failres. Change-Id: I92d4d886cafed5faeb2a6d0b224f4b5dc8522100 Related-Bug: #1314313 --- neutron/services/firewall/fwaas_plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neutron/services/firewall/fwaas_plugin.py b/neutron/services/firewall/fwaas_plugin.py index 793eb870b..a1573fdc7 100644 --- a/neutron/services/firewall/fwaas_plugin.py +++ b/neutron/services/firewall/fwaas_plugin.py @@ -67,9 +67,10 @@ class FirewallCallbacks(object): self.plugin.delete_db_firewall_object(context, firewall_id) return True else: + LOG.warn(_('Firewall %(fw)s unexpectedly deleted by agent, ' + 'status was %(status)s'), + {'fw': firewall_id, 'status': fw_db.status}) fw_db.status = const.ERROR - LOG.warn(_('Firewall %s unexpectedly deleted by agent.'), - firewall_id) return False def get_firewalls_for_tenant(self, context, **kwargs): -- 2.45.2