The two patches address a race condition that may affect index
allocation when multiple ovn-controllers start at the same time.
Existing multi-chassis test cases started controllers serially and
couldn't catch the issue.

The effect of the race condition is that multiple controllers may end up
with the same chassis index. Additionally, if a chassis ever gets its
index reset by an external entity, it may never recover until restart.

Ihar Hrachyshka (2):
  controller: Retry storing chassis index.
  controller: Serialize chassis index allocation.

 controller/chassis.c        |  1 +
 controller/ovn-controller.c |  4 +-
 tests/ovn.at                | 79 +++++++++++++++++++++++++++++++++++++
 3 files changed, 81 insertions(+), 3 deletions(-)

-- 
2.54.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to