From 3056fa0877d52241df90f91a527f11823cf36374 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 30 Jul 2025 15:01:20 +0000 Subject: [PATCH] [OVN] Handle creation of Port_Binding with chassis set (2) This is the follow-up of [1], missing in the OVN agent "metadata" extension implementation. When there is a backlog of notifications to be sent, it is possible that ovsdb-server will merge insert and update notifications. Due to this, we need to handle the situation where we see a Port_Binding created with the chassis set. [1]https://review.opendev.org/c/openstack/neutron/+/903796 Related-Bug: #2017748 Signed-off-by: Rodolfo Alonso Hernandez Change-Id: I333fc0d4e61bc9aace007ca5de413d9cdc12c4a5 --- neutron/agent/ovn/extensions/metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron/agent/ovn/extensions/metadata.py b/neutron/agent/ovn/extensions/metadata.py index 17b6b67a2f2..01c34cb8bfd 100644 --- a/neutron/agent/ovn/extensions/metadata.py +++ b/neutron/agent/ovn/extensions/metadata.py @@ -139,6 +139,7 @@ class MetadataExtension(extension_manager.OVNAgentExtension, def sb_idl_events(self): return [metadata_agent.PortBindingUpdatedEvent, metadata_agent.PortBindingDeletedEvent, + metadata_agent.PortBindingCreateWithChassis, ChassisPrivateCreateEvent, ] @@ -197,7 +198,7 @@ class MetadataExtension(extension_manager.OVNAgentExtension, self._proxy.run() # Do the initial sync. - self.sync() + self.sync(provision=False) # Register the agent with its corresponding Chassis self._update_chassis_private_config()