diff options
author | Michael Chapman <michapma@redhat.com> | 2016-07-18 16:50:56 -0400 |
---|---|---|
committer | Michael Chapman <michapma@redhat.com> | 2016-07-26 15:25:17 -0400 |
commit | 72c2c090143d29be9c152bf189324277921f2b90 (patch) | |
tree | 2f00b5087aa792d64488cbf235f476f2de9cae3a /lib/post-install-functions.sh | |
parent | fdece1a118282d19cce0eb9e586cc0c07b0bd01a (diff) |
Add pcs cleanup exec
Run a pcs cleanup before db sync and also at the end of the deployment.
This will give processes a chance to recover in case there has been
any kind of error that would lead to a process being scored -INFINITY
due to repeated failed startup that may have been caused by load during
the deployment, or another latent issue.
Print out any services that are failed in pcs at the end of deployments.
opnfv-tht-pr: 41
Change-Id: Idf4f03cd0463a3facd0726483091ac6f1b3bf000
Signed-off-by: Michael Chapman <michapma@redhat.com>
Diffstat (limited to 'lib/post-install-functions.sh')
-rwxr-xr-x | lib/post-install-functions.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index af72d8f9..1d18b95d 100755 --- a/lib/post-install-functions.sh +++ b/lib/post-install-functions.sh @@ -174,4 +174,11 @@ source stackrc echo "Undercloud IP: $UNDERCLOUD, please connect by doing 'opnfv-util undercloud'" echo "Overcloud dashboard available at http://\$(heat output-show overcloud PublicVip | sed 's/"//g')/dashboard" EOI + +if [[ "$ha_enabled" == 'True' ]]; then + if [ "$debug" == "TRUE" ]; then + echo "${blue}\nChecking pacemaker service status\n${reset}" + fi + overcloud_connect "controller0" "for i in \$(sudo pcs status | grep '^* ' | cut -d ' ' -f 2 | cut -d '_' -f 1 | uniq); do echo \"WARNING: Service: \$i not running\"; done" +fi } |