From 1662600e6e6e8fedbf096b279e16eabd7b3c6eea Mon Sep 17 00:00:00 2001 From: Damien Ciabrini Date: Wed, 9 Jun 2021 23:31:52 +0200 Subject: [PATCH] HA minor update: fix bad pcs invocation When a HA resource is in failed stated, the minor update should normally try to restart it but the associated pcs invocation is currently invalid, so the resource never gets a chance to be restarted. Use the right pcs call to fix this minor update use case. Change-Id: Iaf85807d067898bbab6d76ab40bc070e845a8b38 Closes-Bug: #1931500 --- container_config_scripts/pacemaker_restart_bundle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container_config_scripts/pacemaker_restart_bundle.sh b/container_config_scripts/pacemaker_restart_bundle.sh index 9d5fc058c3..0e924e2589 100755 --- a/container_config_scripts/pacemaker_restart_bundle.sh +++ b/container_config_scripts/pacemaker_restart_bundle.sh @@ -82,7 +82,7 @@ else # already running elsewhere. echo "$(date -u): ${BUNDLE_NAME} is currently not running on '${HOST}'," \ "cleaning up its state to restart it if necessary" - /sbin/pcs resource cleanup $BUNDLE_NAME --node "${HOST}" + /sbin/pcs resource cleanup $BUNDLE_NAME node="${HOST}" fi # Wait until the resource is in the expected target state