Blame SOURCES/bz2141836-vdo-vol-dont-fail-probe-action.patch

cd5454
From 739e6ce9096facd6d37dffd524c79c961e3fae38 Mon Sep 17 00:00:00 2001
cd5454
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
cd5454
Date: Fri, 11 Nov 2022 14:17:39 +0100
cd5454
Subject: [PATCH] vdo-vol: dont fail probe action when the underlying device
cd5454
 doesnt exist
cd5454
cd5454
---
cd5454
 heartbeat/vdo-vol | 6 ++++++
cd5454
 1 file changed, 6 insertions(+)
cd5454
cd5454
diff --git a/heartbeat/vdo-vol b/heartbeat/vdo-vol
cd5454
index 94822cb82..29bd7b8fd 100755
cd5454
--- a/heartbeat/vdo-vol
cd5454
+++ b/heartbeat/vdo-vol
cd5454
@@ -148,6 +148,12 @@ vdo_monitor(){
cd5454
 	MODE=$(vdostats --verbose ${OCF_RESKEY_volume} | grep "operating mode" | awk '{print $NF}')
cd5454
 
cd5454
 	case "$status" in
cd5454
+		*"ERROR - vdodumpconfig: Failed to make FileLayer from"*)
cd5454
+			if ocf_is_probe; then
cd5454
+			    return $OCF_NOT_RUNNING
cd5454
+			fi
cd5454
+			return $OCF_ERR_GENERIC
cd5454
+			;;
cd5454
 		*"Device mapper status: not available"*)
cd5454
 			return $OCF_NOT_RUNNING
cd5454
 			;;