Set UpdateIdentifier for upgrade converge, to prevent services down
authorMathieu Bultel <mbultel@redhat.com>
Thu, 24 Mar 2016 14:06:42 +0000 (15:06 +0100)
committermarios <marios@redhat.com>
Thu, 24 Mar 2016 18:25:52 +0000 (20:25 +0200)
We'd like to let the post puppet pacemaker controller services
restart to happen for the convergence step so set the
UpdateIdentifier. However also set the PackageUpdate to noop so the
yum_update.sh doesn't happen.

Since a full haproxy restart is expected, we no longer need the
systemctl reload added at Iae3bad745ecdf952a7a0314fe1375d07eb47c454
so remove that too.

Some more context at
https://bugzilla.redhat.com/show_bug.cgi?id=1321036

Co-Authored-By: marios <marios@redhat.com>
Change-Id: I31c2d97d68c97b435f63863fae2c89f18f99681d

environments/major-upgrade-pacemaker-converge.yaml
extraconfig/tasks/pacemaker_resource_restart.sh

index f023cb3..dfcb965 100644 (file)
@@ -1,2 +1,6 @@
 parameter_defaults:
+  UpdateIdentifier: 'true'
   UpgradeLevelNovaCompute: ''
+
+resource_registry:
+  OS::TripleO::Tasks::PackageUpdate:  ../extraconfig/tasks/yum_update_noop.yaml
index 09a452e..b2bdc55 100755 (executable)
@@ -36,9 +36,3 @@ 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