Merge "Fix nova notification on port unplug" into stable/2024.2

This commit is contained in:
Zuul
2025-06-09 15:57:26 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -1267,7 +1267,7 @@ class OVNMechanismDriver(api.MechanismDriver):
if self._should_notify_nova(db_port):
self._plugin.nova_notifier.record_port_status_changed(
db_port, const.PORT_STATUS_ACTIVE, const.PORT_STATUS_DOWN,
db_port, const.PORT_STATUS_DOWN, const.PORT_STATUS_ACTIVE,
None)
self._plugin.nova_notifier.send_port_status(
None, None, db_port)

View File

@@ -1235,8 +1235,8 @@ class TestOVNMechanismDriver(TestOVNMechanismDriverBase):
else:
self.mech_driver._plugin.nova_notifier.\
record_port_status_changed.assert_called_once_with(
mock.ANY, const.PORT_STATUS_ACTIVE,
const.PORT_STATUS_DOWN, None)
mock.ANY, const.PORT_STATUS_DOWN,
const.PORT_STATUS_ACTIVE, None)
self.mech_driver._plugin.nova_notifier.\
send_port_status.assert_called_once_with(
None, None, mock.ANY)