Use the correct input for OVN agent deletion
The key [1] is a list which is unhashable, therefore, it can not be passed as dict key [2]. It causes TypeError: unhashable type: 'list' exception. [1]24e70ea166/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py (L332)
[2]24e70ea166/neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py (L281)
Closes-bug: #2091071 Change-Id: I064d9b3e6cb72562a16030e1b31de45ddc8f487c (cherry picked from commit ce6e2d87c52a11ec76a0f6fb7deb25a3dc26cf86)
This commit is contained in:
parent
549af9e07c
commit
75c5ef3191
@ -327,7 +327,7 @@ class ChassisAgentDeleteEvent(ChassisAgentEvent):
|
||||
return False
|
||||
|
||||
def run(self, event, row, old):
|
||||
n_agent.AgentCache().delete([row.external_ids['delete_agent']])
|
||||
n_agent.AgentCache().delete(row.external_ids['delete_agent'])
|
||||
|
||||
|
||||
class ChassisAgentWriteEvent(ChassisAgentEvent):
|
||||
|
Loading…
x
Reference in New Issue
Block a user