Skip to content

Commit

Permalink
Merge pull request ClusterLabs#1817 from oalbrigt/vdo-vol-dont-fail-p…
Browse files Browse the repository at this point in the history
…robe-device-doesnt-exist

vdo-vol: dont fail probe action when the underlying device doesnt exist
  • Loading branch information
oalbrigt committed Nov 23, 2022
2 parents 3f53b43 + 739e6ce commit b25f7af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions heartbeat/vdo-vol
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ vdo_monitor(){
MODE=$(vdostats --verbose ${OCF_RESKEY_volume} | grep "operating mode" | awk '{print $NF}')

case "$status" in
*"ERROR - vdodumpconfig: Failed to make FileLayer from"*)
if ocf_is_probe; then
return $OCF_NOT_RUNNING
fi
return $OCF_ERR_GENERIC
;;
*"Device mapper status: not available"*)
return $OCF_NOT_RUNNING
;;
Expand Down

0 comments on commit b25f7af

Please sign in to comment.