neutron/releasenotes/notes/remove_duplicated_ovn_chassis-df12fb6233ea3d3e.yaml
Rodolfo Alonso Hernandez a1547abb99 [OVN] Remove SB "Chassis"/"Chassis_Private" duplicated registers
A new OVN maintenance method is added. This method lists all existing
OVN SB Chassis registers and checks if any of them has the same
hostname. In case of having duplicated "Chassis"/"Chassis_Private"
registers, the maintenance method will remove those with older
(lower) timestamp, that is stored in
"Chassis_Private.nb_cfg_timestamp", leaving only the newer one.

Conflicts:
    neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_maintenance.py

Closes-Bug: #2016158
Change-Id: Ib3c6f0dc01efd31430691e720ba23ccb4ede65fa
(cherry picked from commit 9d9f47c20c)
(cherry picked from commit 7fc12decdf)
2023-06-11 08:50:16 +00:00

18 lines
835 B
YAML

---
issues:
- |
When using ML2/OVN, during an upgrade procedure, the OVS system-id stored
value can be changed. The ovn-controller service will create the "Chassis"
and "Chassis_Private" registers based on this OVS system-id. If the
ovn-controller process is not gracefully stopped, that could lead to the
existence of duplicated "Chassis" and "Chassis_Private" registers in the
OVN Southbound database.
fixes:
- |
A new OVN maintenance method ``remove_duplicated_chassis_registers`` is
added. This method will periodically check the OVN Southbound "Chassis"
and "Chassis_Private" tables looking for duplicated registers. The older
ones (based on the "Chassis_Private.nb_cfg_timestamp" value) will be
removed when more than one register has the same hostname, that should
be unique.