tripleo-heat-templates/docker/services/pacemaker
Damien Ciabrini f37c06cd9d Fix update of pacemaker container images during major upgrade
Currently, the idiomatic "download image and retag to pcmklatest"
happens at step 2 during upgrade. This doesn't work if the stack
is already containerized before the upgrade, because pacemaker
is still running at step 2.

Reshuffle the steps at which the various upgrade tasks are run,
while keeping the ordering guarantees of the upgrade flow:

  . Deletion of non-containerized resources happens at step 1,
    to allow calling pcs while pacemaker is running.
  . Pacemaker is stopped at step 2.
  . Docker images for containerized resources are upgraded at
    step 3, after the cluster is guaranteed to be stopped.
  . Pacemaker is restarted at step 4 as before, once we know
    that all resources have been upgraded, yum packages updated
    and any potential docker restart has been executed.

Also change the way we detect containerized resources, so that
the predicate still remains valid past step 2 when pacemaker
has been stopped and has deleted its containerized resources.

Change-Id: I85e11dd93c7fd2c42e71b467f46b0044d4516524
2018-03-20 22:36:31 +00:00
..
database Fix update of pacemaker container images during major upgrade 2018-03-20 22:36:31 +00:00
cinder-backup.yaml Fix update of pacemaker container images during major upgrade 2018-03-20 22:36:31 +00:00
cinder-volume.yaml Fix update of pacemaker container images during major upgrade 2018-03-20 22:36:31 +00:00
clustercheck.yaml Change template names to queens 2017-11-23 10:15:32 +01:00
haproxy.yaml Fix update of pacemaker container images during major upgrade 2018-03-20 22:36:31 +00:00
manila-share.yaml Fix update of pacemaker container images during major upgrade 2018-03-20 22:36:31 +00:00
ovn-dbs.yaml Fix update of pacemaker container images during major upgrade 2018-03-20 22:36:31 +00:00
rabbitmq.yaml Fix update of pacemaker container images during major upgrade 2018-03-20 22:36:31 +00:00