Allow combining system_upgrade_prepare and system_upgrade_run into system_upgrade
Previously we required the operator to run two separate commands for
the "prepare" and "run" phases of operating system upgrade. This
commit refactors the upgrade_tasks with these tags so that running the
whole system upgrade is possible via a single command with `--tags
system_upgrade`.
Allowing to run in a single command requires being more careful about
what can happen in which step number in the upgrade tasks. The upgrade
steps for system upgrade are now explicitly documented in composable
services readme.
The existing system_upgrade_run and system_upgrade_prepare tasks were
checked and moved into the appropriate steps. In the case of
pacemaker, it required moving the cluster stop/destroy action into a
single file with removing all containers, to guarantee that the
cluster is stopped before the container removal, otherwise pacemaker
would try to spawn new containers.
Change-Id: I3cd78de8d07be46ee01006dd7e039c285991d14a
Partial-Bug: #1831690
(cherry picked from commit 206625d4f5bd9a643e76d7f52e13cc171ee4edad)
Reviewed: https:/ /review. opendev. org/677140 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=7f7960a5367 e29647cd79a6325 f7ca857a2d0084
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 7f7960a5367e296 47cd79a6325f7ca 857a2d0084
Author: Jiri Stransky <email address hidden>
Date: Tue Aug 13 15:01:44 2019 +0200
Allow combining system_ upgrade_ prepare and system_upgrade_run into system_upgrade
Previously we required the operator to run two separate commands for upgrade` .
the "prepare" and "run" phases of operating system upgrade. This
commit refactors the upgrade_tasks with these tags so that running the
whole system upgrade is possible via a single command with `--tags
system_
Allowing to run in a single command requires being more careful about
what can happen in which step number in the upgrade tasks. The upgrade
steps for system upgrade are now explicitly documented in composable
services readme.
The existing system_upgrade_run and system_ upgrade_ prepare tasks were
checked and moved into the appropriate steps. In the case of
pacemaker, it required moving the cluster stop/destroy action into a
single file with removing all containers, to guarantee that the
cluster is stopped before the container removal, otherwise pacemaker
would try to spawn new containers.
Change-Id: I3cd78de8d07be4 6ee01006dd7e039 c285991d14a 43e76d7f52e13cc 171ee4edad)
Partial-Bug: #1831690
(cherry picked from commit 206625d4f5bd9a6