[ovs-git] [ovn-org/ovn] b1a070: ovn-nbctl: Monitor nb_cfg to detect and handle pot...

Mohammad Heib noreply at github.com
Tue Aug 24 23:50:13 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: b1a07090740ac9a29e4a2475ad07bf9c37991b43
      https://github.com/ovn-org/ovn/commit/b1a07090740ac9a29e4a2475ad07bf9c37991b43
  Author: Mohammad Heib <mheib at redhat.com>
  Date:   2021-08-24 (Tue, 24 Aug 2021)

  Changed paths:
    M AUTHORS.rst
    M tests/ovn-controller.at
    M utilities/ovn-nbctl.c

  Log Message:
  -----------
  ovn-nbctl: Monitor nb_cfg to detect and handle potential overflows

ovn-nbctl sync command will increase nb_cfg value each time it is executed
with a specific wait_type, this increment will be handled without testing
the current nb_cfg value because it is not monitored and that could lead
to an overflow issue if nb_cfg == LLONG_MAX.

To avoid such potential overflow cases we must monitor the real value
of nb_cfg each time sync is executed and if there is any overflow issue
it will be handled by function nbctl_pre_execute later on the execution.

Fixes: be3a60f8e6a3 ("ovn-nbctl: Deal with nb_cfg overflows.")
Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1979774
Signed-off-by: Mohammad Heib <mheib at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>




More information about the git mailing list