Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
northd: Fix ha_chassis_group txn error for external ports.
If an external logical port 'sw0-p1' is associated with an ha_chassis_group and later CMS runs a command to clear the ha_chassis_group and set the type to normal in the same transaction, i.e ovn-nbctl clear logical_switch_port sw0-p1 ha_chassis_group -- \ set logical_switch_port sw0-p1 'type=""' then, ovn-northd goes into a continous loop trying to delete the ha_chassis_group in SB DB . ovn-northd doesn't clear the ha_chassis_group of the port binding sw0-p1 in the SB DB and hence the constraint violation is seen. This issue is seen when lport sw0-p1 is the only one referencing the ha_chassis_group in SB DB. This patch fixes this issue. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1927369 Reported-by: Jakub Libosvar <jlibosva@redhat.com> Acked-by: Mark Michelson <mmichels@redhat.com> Signed-off-by: Numan Siddique <numans@ovn.org>
- Loading branch information
1 parent
c6e21a2
commit f1f0de2
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters