Blame SOURCES/bz1643307-LVM-activate-dont-fail-initial-probe.patch

05afe3
From 848d62c32b355a03c2ad8d246eb3e34b04af07ca Mon Sep 17 00:00:00 2001
05afe3
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
05afe3
Date: Wed, 9 Jan 2019 16:49:41 +0100
05afe3
Subject: [PATCH] LVM-activate: dont fail initial probe
05afe3
05afe3
---
05afe3
 heartbeat/LVM-activate | 4 ++++
05afe3
 1 file changed, 4 insertions(+)
05afe3
05afe3
diff --git a/heartbeat/LVM-activate b/heartbeat/LVM-activate
05afe3
index f46932c1c..49ab717a3 100755
05afe3
--- a/heartbeat/LVM-activate
05afe3
+++ b/heartbeat/LVM-activate
05afe3
@@ -323,6 +323,10 @@ lvmlockd_check()
05afe3
 
05afe3
 	# Good: lvmlockd is running, and clvmd is not running
05afe3
 	if ! pgrep lvmlockd >/dev/null 2>&1 ; then
05afe3
+		if ocf_is_probe; then
05afe3
+			exit $OCF_NOT_RUNNING
05afe3
+		fi
05afe3
+
05afe3
 		ocf_exit_reason "lvmlockd daemon is not running!"
05afe3
 		exit $OCF_ERR_CONFIGURED
05afe3
 	fi