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
(cherry picked from commit 1662600e6e)
(cherry picked from commit d03517b614)
(cherry picked from commit f808dac566)
This commit is contained in:
Damien Ciabrini 2021-06-09 23:31:52 +02:00 committed by Michele Baldessari
parent 9c51e5332a
commit d146946546
1 changed files with 1 additions and 1 deletions

View File

@ -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