From 34e560fad0b773d4b81032f876994d5340195600 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Thu, 23 Dec 2021 11:57:47 +0100 Subject: [PATCH] Add extra debug log with current and new port statuses in ML2 plugin This patch only adds one extra debug log to log current and new port statuses in the method which updates that status in the DB. This may be useful e.g. to understand why notifications about port change aren't send to Nova in some cases (like unshelve instance, see related bug). Related-Bug: #1953478 Change-Id: I4c6fd5b0b33bf764c0b182f169173453ea7a4efc --- neutron/plugins/ml2/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/plugins/ml2/plugin.py b/neutron/plugins/ml2/plugin.py index f96ed2659c2..a1412e21308 100644 --- a/neutron/plugins/ml2/plugin.py +++ b/neutron/plugins/ml2/plugin.py @@ -2187,6 +2187,8 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2, updated = False network = None port_id = port.id + LOG.debug("Current status of the port %s is: %s; " + "New status is: %s", port_id, port.status, status) if ((port.status != status and port['device_owner'] != const.DEVICE_OWNER_DVR_INTERFACE) or port['device_owner'] == const.DEVICE_OWNER_DVR_INTERFACE):