For cluster mode, only the first server(which is the leader) in a cluster should do init. But, sometimes, the role of the first server would transfer leadership, so we should add "--no-leader-only" option in case the ovn-northd stucked.
Author: Tao YunXiang <[email protected]> Co-authored-by: Liu Chang <[email protected]> Signed-off-by: Tao YunXiang <[email protected]> Signed-off-by: Liu Chang <[email protected]> --- utilities/ovn-ctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovn-ctl b/utilities/ovn-ctl index 2a337ae27..71bdbc076 100755 --- a/utilities/ovn-ctl +++ b/utilities/ovn-ctl @@ -293,7 +293,7 @@ $cluster_remote_port # Initialize the database if it's running standalone, # active-passive, or is the first server in a cluster. if test -z "$cluster_remote_addr"; then - $(echo ovn-${db}ctl | tr _ -) init + $(echo ovn-${db}ctl | tr _ -) --no-leader-only init fi if test $mode = cluster; then -- 2.17.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
