]> git.proxmox.com Git - ovs.git/commit
ovn-nbctl: Daemon mode should retry when IDL connection lost.
authorHan Zhou <hzhou8@ebay.com>
Sat, 16 Feb 2019 02:49:52 +0000 (18:49 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 22 Feb 2019 21:48:34 +0000 (13:48 -0800)
commit530a1c18f3c8c7a4c079f1c74636f800d54e6b89
treea7aca1ffdf37c3252fd5c2dda7f5513c207097d7
parent1f4a175ecbe7a58b052ad26bcef3cbddb5de7d2f
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@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/utilities/ovn-nbctl.c
tests/ovn-nbctl.at