From 282d4af115cfbad5afc614bafb4939249b2ebc20 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Fri, 23 Jun 2017 18:57:02 -0700 Subject: [PATCH] Log reserved cookies in cleanup_flows method This will help us debug why flows are unexpectedly being cleaned up if the related bug ever resurfaces. Related-Bug: #1697243 Change-Id: I517b16c550037f41a5f4915b98963c2232daa78c (cherry picked from commit bc51380ded25eb679209c379a07a1ac176af30f3) --- .../ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py b/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py index 5a310a7b0e9..ddf6a036b94 100644 --- a/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py +++ b/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py @@ -137,6 +137,8 @@ class OpenFlowSwitchMixin(object): def cleanup_flows(self): cookies = set([f.cookie for f in self.dump_flows()]) - \ self.reserved_cookies + LOG.debug("Reserved cookies for %s: %s", self.br_name, + self.reserved_cookies) for c in cookies: LOG.warning(_LW("Deleting flow with cookie 0x%(cookie)x"), {'cookie': c})