When the master node's OVNDB process fails, the local node demote to the slave. Failure cause is that the OVNDB process is stop, So the need to re-run the process up. if return $OCF_NOT_RUNNING will not demote the node to slave.
Signed-off-by: Guoshuai Li <l...@dtdream.com> --- ovn/utilities/ovndb-servers.ocf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovn/utilities/ovndb-servers.ocf b/ovn/utilities/ovndb-servers.ocf index 1cf6f20..8a64e88 100755 --- a/ovn/utilities/ovndb-servers.ocf +++ b/ovn/utilities/ovndb-servers.ocf @@ -283,7 +283,7 @@ ovsdb_server_promote() { ovsdb_server_demote() { ovsdb_server_check_status if [ $? = $OCF_NOT_RUNNING ]; then - return $OCF_NOT_RUNNING + ovsdb_server_start fi local present_master=$(ovsdb_server_find_active_master) -- 2.10.1.windows.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev