[ovs-git] [ovn-org/ovn] 60695e: northd: Fix ha_chassis_group txn error for externa...

numansiddique noreply at github.com
Fri Feb 19 09:12:10 UTC 2021


  Branch: refs/heads/branch-20.09
  Home:   https://github.com/ovn-org/ovn
  Commit: 60695e212af79da89334bc7c6cfe8a9814e2b730
      https://github.com/ovn-org/ovn/commit/60695e212af79da89334bc7c6cfe8a9814e2b730
  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>

(cherry-picked from master commit f1f0de254157520a1bc754744e258eff9017a145)




More information about the git mailing list