Public bug reported:

Ml2/ovn agent is not deleted when there are multiple workers.

I found out that ChassisAgentDeleteEvent which handles agent deletion
event on the workers other than the worker handling deletion api request
has a bug on its run function.

In the run function, it deletes an agent from cache with this code:
  n_agent.AgentCache().delete([row.external_ids['delete_agent']])

It should call delete with a str type argument, not a list type:
  n_agent.AgentCache().delete(row.external_ids['delete_agent'])

The ChassisAgentDeleteEvent is in
neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py, and
the branch is stable/2024.1.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2091055

Title:
  Ml2/ovn agent is not deleted when there are multiple workers

Status in neutron:
  New

Bug description:
  Ml2/ovn agent is not deleted when there are multiple workers.

  I found out that ChassisAgentDeleteEvent which handles agent deletion
  event on the workers other than the worker handling deletion api
  request has a bug on its run function.

  In the run function, it deletes an agent from cache with this code:
    n_agent.AgentCache().delete([row.external_ids['delete_agent']])

  It should call delete with a str type argument, not a list type:
    n_agent.AgentCache().delete(row.external_ids['delete_agent'])

  The ChassisAgentDeleteEvent is in
  neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py,
  and the branch is stable/2024.1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2091055/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to