From: marios Date: Wed, 23 Mar 2016 14:17:13 +0000 (+0200) Subject: Add systemctl reload haproxy to the pacemaker_resource_restart.sh X-Git-Tag: opnfv-6.0.0~2071^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=843d25af04f58d033e12c2c3d619303d7fd8bb02;p=apex-tripleo-heat-templates.git Add systemctl reload haproxy to the pacemaker_resource_restart.sh As discussed in the related bug below, after upgrading your environment to latest liberty the haproxy config isn't picked up. This adds a systemctl reload haproxy in the pacemaker resource restart we run as part of the post-puppet-pacemaker. Related-Bug: 1561012 Change-Id: Iae3bad745ecdf952a7a0314fe1375d07eb47c454 --- diff --git a/extraconfig/tasks/pacemaker_resource_restart.sh b/extraconfig/tasks/pacemaker_resource_restart.sh index b2bdc55a..09a452e6 100755 --- a/extraconfig/tasks/pacemaker_resource_restart.sh +++ b/extraconfig/tasks/pacemaker_resource_restart.sh @@ -36,3 +36,9 @@ if [ "$pacemaker_status" = "active" -a \ check_resource httpd started 800 fi + +if [ "$pacemaker_status" = "active" ]; then + # TODO(marios): remove this once +bug/1561012 + # need this on all controllers: + systemctl reload haproxy +fi