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

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