Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
HA minor update: fix bad pcs invocation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dciabrin committed Jun 9, 2021
1 parent b868a53 commit 1662600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container_config_scripts/pacemaker_restart_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1662600

Please sign in to comment.