tripleo-heat-templates/container_config_scripts
Damien Ciabrini 7f785e8757 HA: fix <service>_restart_bundle with minor update workflow
For each HA service we have a paunch container <service>_restart_bundle
which is started by paunch whenever config files changes during stack
deploy/update. This container runs a pcs command on a single node to
restart all the service's containers (e.g. all galera on all controllers).
By design, when it is run, configs have already been regenerated by the
deploy tasks on all nodes.

For minor updates, the workflow runs differently: all the steps of the
deploy tasks are run one node after the other, so when
<service>_restart_bundle is called, there is no guarantee that the
service's configs have been regenerated on all the nodes yet.

To fix the wrong restart behaviour, only restart local containers when
running during a minor update. And run once per node. When the minor
update workflow calls <service>_restart_container, we still have the
guarantee that the config files are already regenerated locally.

Co-Authored-By: Michele Baldessari <michele@acksyn.org>
Co-Authored-By: Luca Miccini <lmiccini@redhat.com>

Change-Id: I92d4ddf2feeac06ce14468ae928c283f3fd04f45
Closes-Bug: #1841629
2019-08-30 18:46:31 +02:00
..
tests Rename docker_config_scripts to container_config_scripts 2019-03-06 09:05:50 -05:00
__init__.py Rename docker_config_scripts to container_config_scripts 2019-03-06 09:05:50 -05:00
nova_statedir_ownership.py Set debug level of nova container_config_scripts only when enabled 2019-04-30 14:40:33 +02:00
nova_wait_for_compute_service.py Allow multiple same options in nova.conf 2019-05-09 09:22:22 +02:00
nova_wait_for_placement_service.py Allow multiple same options in nova.conf 2019-05-09 09:22:22 +02:00
pacemaker_restart_bundle.sh HA: fix <service>_restart_bundle with minor update workflow 2019-08-30 18:46:31 +02:00
pyshim.sh Rename docker_config_scripts to container_config_scripts 2019-03-06 09:05:50 -05:00