[ovs-dev] [PATCH] ovn: fix OVNDB process is stopped when master node demote to the slave by pacemaker

Guoshuai Li ligs at dtdream.com
Wed Dec 7 05:41:06 UTC 2016


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 <ligs at 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



More information about the dev mailing list