Merge "Fix nova notification on port unplug" into stable/2024.2
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user