tripleo-heat-templates/docker_config_scripts
Damien Ciabrini 44283e9222 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
(manually cherry picked from commit 7f785e8757
and adapted for Rocky, with the appropriate name changes)
2019-09-12 22:41:00 +02:00
..
tests Improve nova statedir ownership logic 2018-07-09 17:07:30 +01:00
__init__.py Improve nova statedir ownership logic 2018-07-09 17:07:30 +01:00
nova_statedir_ownership.py Move cellv2 discovery from control plane services to compute services 2019-03-05 10:59:20 +05:30
nova_wait_for_compute_service.py Avoid concurrent nova cell_v2 discovery instances 2019-04-25 11:31:20 +02:00
nova_wait_for_placement_service.py nova_compute fails to start in tls-everywhere configuration 2018-12-04 11:35:39 +01:00
pacemaker_restart_bundle.sh HA: fix <service>_restart_bundle with minor update workflow 2019-09-12 22:41:00 +02:00