Reviewed:  https://review.opendev.org/c/openstack/neutron/+/944636
Committed: 
https://opendev.org/openstack/neutron/commit/dd7c7f4b2bea8081ccd7408560068e29710f1ac0
Submitter: "Zuul (22348)"
Branch:    master

commit dd7c7f4b2bea8081ccd7408560068e29710f1ac0
Author: Rodolfo Alonso Hernandez <ralon...@redhat.com>
Date:   Mon Mar 17 08:43:12 2025 +0000

    [OVN] Add ``AgentCache`` deletion test
    
    This patch adds a test for the patch [1] that fixes the
    ``AgentCache`` deletion call from the ``ChassisAgentDeleteEvent``
    event. This test avoids future regressions.
    
    [1]https://review.opendev.org/c/openstack/neutron/+/936988
    
    Closes-Bug: #2091071
    Change-Id: Iccd2d9aec131e2fea3a9cc29995dc4b867c20bb4


** Changed in: neutron
       Status: In Progress => Fix Released

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

Title:
  [OVN] Exception when deleting agent

Status in neutron:
  Fix Released

Bug description:
  Call neutron API to delete ovn agent, it returns 204 but the agent
  isn't deleted. Check neutron-server.log find out there is an exception
  when deleting agent:

  ```
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event [-] Unexpected exception in 
notify_loop: TypeError: unhashable type: 'list'
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event Traceback (most recent call 
last):
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event   File 
"/var/lib/kolla/venv/lib/python3.10/site-packages/ovsdbapp/event.py", line 177, 
in notify_loop
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event     match.run(event, row, 
updates)
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event   File 
"/var/lib/kolla/venv/lib/python3.10/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py",
 line 330, in run
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event     
n_agent.AgentCache().delete([row.external_ids['delete_agent']])
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event   File 
"/var/lib/kolla/venv/lib/python3.10/site-packages/neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py",
 line 282, in delete
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event     del self.agents[agent_id]
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event TypeError: unhashable type: 
'list'
  2024-12-04 09:21:15.303 838 ERROR ovsdbapp.event
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event [-] Unexpected exception in 
notify_loop: TypeError: unhashable type: 'list'
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event Traceback (most recent call 
last):
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event   File 
"/var/lib/kolla/venv/lib/python3.10/site-packages/ovsdbapp/event.py", line 177, 
in notify_loop
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event     match.run(event, row, 
updates)
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event   File 
"/var/lib/kolla/venv/lib/python3.10/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py",
 line 330, in run
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event     
n_agent.AgentCache().delete([row.external_ids['delete_agent']])
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event   File 
"/var/lib/kolla/venv/lib/python3.10/site-packages/neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py",
 line 282, in delete
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event     del self.agents[agent_id]
  2024-12-04 09:21:15.303 799 ERROR ovsdbapp.event TypeError: unhashable type: 
'list'
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2091071/+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