[ovs-git] [ovn-org/ovn] f1f0de: northd: Fix ha_chassis_group txn error for externa...
numansiddique
noreply at github.com
Fri Feb 19 08:42:34 UTC 2021
Branch: refs/heads/master
Home: https://github.com/ovn-org/ovn
Commit: f1f0de254157520a1bc754744e258eff9017a145
https://github.com/ovn-org/ovn/commit/f1f0de254157520a1bc754744e258eff9017a145
Author: Numan Siddique <numans at ovn.org>
Date: 2021-02-19 (Fri, 19 Feb 2021)
Changed paths:
M northd/ovn-northd.c
M tests/ovn-northd.at
Log Message:
-----------
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 at redhat.com>
Acked-by: Mark Michelson <mmichels at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>
More information about the git
mailing list