[ovs-git] [openvswitch/ovs] 081afa: OVN pacemaker: Add the monitor action for Master r...

GitHub noreply at github.com
Tue Dec 5 15:37:50 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 081afa70fd772ab5aad6b2e6b669dfef894361c9
      https://github.com/openvswitch/ovs/commit/081afa70fd772ab5aad6b2e6b669dfef894361c9
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2017-12-05 (Tue, 05 Dec 2017)

  Changed paths:
    M ovn/utilities/ovndb-servers.ocf

  Log Message:
  -----------
  OVN pacemaker: Add the monitor action for Master role

Pacemaker Resource agent periodically calls the OVN OCF's "monitor" action
periodically to check the status. But the OVN OCF script doesn't add the
action "monitor" for the role "Master" because of which the pacemaker
resource agent do not call the "monitor" action at all for the master.
In case OVN db servers exit for some reason this totally gets undetected
and one of the standby node is not promoted to master.

This patch adds the monitor action for "Master" role. Also the monitor
action do not check for the status of the ovn-northd (if manage_northd is yes).
This patch also checks for the status of the ovn-northd in the monitor action
for the "Master" role. If any of the ovsdb-server or ovn-northd is not running,
monitor action will return OCF_NOT_RUNNING and this will cause the pacemaker
to restart the OVN OCF resource.

Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1512568
Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
CC: Russell Bryant <russell at ovn.org>
Signed-off-by: Russell Bryant <russell at ovn.org>




More information about the git mailing list