[ovs-git] [openvswitch/ovs] fc2de2: ovn-nbctl: Daemon mode should retry when IDL conne...

Han Zhou noreply at github.com
Fri Feb 22 21:52:31 UTC 2019


  Branch: refs/heads/branch-2.11
  Home:   https://github.com/openvswitch/ovs
  Commit: fc2de21031525a41927d4f4e3a8afcfcacd676eb
      https://github.com/openvswitch/ovs/commit/fc2de21031525a41927d4f4e3a8afcfcacd676eb
  Author: Han Zhou <hzhou8 at ebay.com>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

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

  Log Message:
  -----------
  ovn-nbctl: Daemon mode should retry when IDL connection lost.

When creating IDL, "retry" was set to false. However, in daemon
mode, reconnecting upon DB server failure should be transparent
to user. This even impacts HA mode. E.g. in clustered mode, although
IDL tries to connect to next server, but at the first retry the
server fail-over may not be completed yet, and it stops retry after
N (N = number of remotes) times.

This patch makes sure in daemon mode retry is set to true so that
the daemon will automatically retry forever.

Signed-off-by: Han Zhou <hzhou8 at ebay.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list