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>".
Reviewed: https:/ /review. opendev. org/744529 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=ba471ee461b 125e2aa53c485ab 61dc467bf7d858
Committed: https:/
Submitter: Zuul
Branch: master
commit ba471ee461b125e 2aa53c485ab61dc 467bf7d858
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>".
Change-Id: I1790444d289d05 7e9a3f612c53efe 485080978b5
Closes-Bug: #1889395