From e0039371f876fe7ca52d4c49c997be0c73b80adf Mon Sep 17 00:00:00 2001 From: zhouhenglc Date: Thu, 4 Aug 2022 08:47:10 +0800 Subject: [PATCH] [ovn]Change LogicalSwitchPortUpdateUpEvent old conditions Sometimes when creating ports, the status of logical_switch_port changes from [] to [true]. we should be able to deal with this situation and ensure that the port is in the active state in neutron. Closes-bug: #1983530 Change-Id: I99d2a8078dd7acde72b232a5b1de826d7e1d60f3 --- .../plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py b/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py index 8c79c55eeb9..c0dcff354a8 100644 --- a/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py +++ b/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py @@ -484,7 +484,7 @@ class LogicalSwitchPortUpdateUpEvent(row_event.RowEvent): events = (self.ROW_UPDATE,) super(LogicalSwitchPortUpdateUpEvent, self).__init__( events, table, (('up', '=', True),), - old_conditions=(('up', '=', False),)) + old_conditions=(('up', '!=', True),)) self.event_name = 'LogicalSwitchPortUpdateUpEvent' def run(self, event, row, old):