Fix HA resource restart when no replicas are running
When the helper script pacemaker_restart_bundle.sh is called
during a stack update, it restarts the pacemaker resource via
a "pcs resource restart <name>".
When all the replicas are stopped due to a previous error,
pcs won't restart them because there is nothing to stop. In
that case, one must use "pcs resource cleanup <name>".
(cherry picked from commit ba471ee461b125e2aa53c485ab61dc467bf7d858)
Reviewed: https:/ /review. opendev. org/746957 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=fffbdc0df11 5ed7f442620e4ff f22fcacd595e70
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit fffbdc0df115ed7 f442620e4fff22f cacd595e70
Author: Damien Ciabrini <email address hidden>
Date: Mon Aug 3 18:59:44 2020 +0200
Fix HA resource restart when no replicas are running
When the helper script pacemaker_ restart_ bundle. sh is called
during a stack update, it restarts the pacemaker resource via
a "pcs resource restart <name>".
When all the replicas are stopped due to a previous error,
pcs won't restart them because there is nothing to stop. In
that case, one must use "pcs resource cleanup <name>".
(cherry picked from commit ba471ee461b125e 2aa53c485ab61dc 467bf7d858)
Closes-Bug: #1889395 7e9a3f612c53efe 485080978b5
Change-Id: I1790444d289d05