[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 <ralonsoh@redhat.com> Change-Id: I333fc0d4e61bc9aace007ca5de413d9cdc12c4a5
This commit is contained in:
committed by
Rodolfo Alonso
parent
20ee1e368c
commit
3056fa0877
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user