This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2295192 - Stale entries remain in Chassis_Private after delete network agent
Summary: Stale entries remain in Chassis_Private after delete network agent
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: async
: 17.1
Assignee: Fernando Royo
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-02 15:40 UTC by Fernando Royo
Modified: 2025-01-10 10:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-01-10 10:07:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   OSP-32428 0 None None None 2025-01-10 10:07:01 UTC

Description Fernando Royo 2024-07-02 15:40:43 UTC
Description of problem:
When for some reason (e.g. ovn-controller ends not gracefully) stale entries appear on Chassis_Private, with pointing to a Chassis [ ], at this situation the admin user is invited to delete them using:

- openstack network agent delete <id> 

And we trust that this command will also delete the stale entry in the OVN SB DB Chassis_Private table, but this is not happening.


Steps to Reproduce:
1. Create a stale row in Chassis_Private table as:

ovn-sbctl create Chassis_Private chassis=[] name="4b401646-3c64-42de-b693-87b3ae0ffeee"

2. Check that OVN SB DB include this new stale entry

[root@controller-2 /]# ovn-sbctl list Chassis_private | grep -C5 4b401646-3c64-42de-b693-87b3ae0ffeee
_uuid               : 6ec304f1-1bea-4696-8ba7-d1ce01d4cc96
chassis             : []
external_ids        : {}
name                : "4b401646-3c64-42de-b693-87b3ae0ffeee"
nb_cfg              : 0
nb_cfg_timestamp    : 0

3. Confirm that it is shown in output from openstack network agent list

+--------------------------------------+------------------------------+------------------------------+-------+-------+----------------------------+                                                                                                                                                      
| ID                                   | Agent Type                   | Host                         | Alive | State | Binary                     |                                                                                                                                                      
+--------------------------------------+------------------------------+------------------------------+-------+-------+----------------------------+                                                                                                                                                      
| 4b401646-3c64-42de-b693-87b3ae0ffeee | OVN Controller agent         | ("Chassis" register deleted) | XXX   | UP    | ovn-controller             | 

4. Remove it doing 'openstack network agent delete 4b401646-3c64-42de-b693-87b3ae0ffeee


Actual results:
No errors output but stale entry still in OVN SB DB Chassis_private table


Expected results:
Stale entry deleted from OVN SB DB Chassis_private


Note You need to log in before you can comment on or make changes to this bug.