acb2475e4c
As outlined in the spec, fast-forward upgrades aim to take an environment from an initial release of N to a release of N>=2, beyond that of the traditionally supported N+1 upgrade path provided today by many OpenStack projects. For TripleO the first phase of this upgrade will be to move the environment to the release prior to the target release. This will be achieved by disabling all OpenStack control plane services and then preforming the minimum number of steps required to upgrade each service through each release until finally reaching the target release. This change introduces the framework for this phase of the fast-forward upgrades by adding playbooks and task files as outputs to RoleConfig. - fast_forward_upgrade_playbook.yaml This is the top level play and acts as the outer loop of the process, iterating through the required releases as set by the FastForwardUpgradeReleases parameter for the fast-forward section of the upgrade. This currently defaults to Ocata and Pike for Queens. Note that this play is run against the overcloud host group and it is currently assumed that the inventory used to run this play is provided by the tripleo-ansible-inventory command. - fast_forward_upgrade_release_tasks.yaml This output simply imports the top level prep and bootstrap task files. - fast_forward_upgrade_prep_tasks.yaml - fast_forward_upgrade_bootstrap_tasks.yaml These outputs act as the inner loop for the fast-forward upgrade phase, iterating over step values while importing their associated role tasks. As prep tasks are carried out first for each release we loop over step values starting at 0 and ending at the defined fast_forward_upgrade_prep_steps_max, currently 3. Following this we then complete the bootstrap tasks for each release, looping over steps values starting at fast_forward_upgrade_prep_steps_max + 1 , currently 4 and ending at fast_forward_upgrade_steps_max,currently 9. - fast_forward_upgrade_prep_role_tasks.yaml - fast_forward_upgrade_bootstrap_role_tasks.yaml These outputs then finally import the fast_forward_upgrade_tasks files generated by the FastForwardUpgradeTasks YAQL query for each role. For prep tasks these are always included when on an Ansible host of a given role. This differs from bootstrap tasks that are only included for the first host associated with a given role. This will result in the following order of task imports with their associated value of release and step: fast_forward_upgrade_playbook \_fast_forward_upgrade_release_tasks \_fast_forward_upgrade_prep_tasks - release=ocata \_fast_forward_upgrade_prep_role_tasks - release=ocata \_$roleA/fast_forward_upgrade_tasks - release=ocata, step=0 \_$roleB/fast_forward_upgrade_tasks - release=ocata, step=0 \_$roleA/fast_forward_upgrade_tasks - release=ocata, step=1 \_$roleB/fast_forward_upgrade_tasks - release=ocata, step=1 \_$roleA/fast_forward_upgrade_tasks - release=ocata, step=2 \_$roleB/fast_forward_upgrade_tasks - release=ocata, step=2 \_$roleA/fast_forward_upgrade_tasks - release=ocata, step=3 \_$roleB/fast_forward_upgrade_tasks - release=ocata, step=3 \_fast_forward_upgrade_bootstrap_tasks - release=ocata \_fast_forward_upgrade_bootstrap_role_tasks - release=ocata \_$roleA/fast_forward_upgrade_tasks - release=ocata, step=4 \_$roleB/fast_forward_upgrade_tasks - release=ocata, step=4 \_$roleA/fast_forward_upgrade_tasks - release=ocata, step=5 \_$roleB/fast_forward_upgrade_tasks - release=ocata, step=5 \_$roleA/fast_forward_upgrade_tasks - release=ocata, step=N \_$roleB/fast_forward_upgrade_tasks - release=ocata, step=N \_fast_forward_upgrade_release_tasks \_fast_forward_upgrade_prep_tasks - release=pike \_fast_forward_upgrade_prep_role_tasks - release=pike \_$roleA/fast_forward_upgrade_tasks - release=pike, step=0 \_$roleB/fast_forward_upgrade_tasks - release=pike, step=0 \_$roleA/fast_forward_upgrade_tasks - release=pike, step=1 \_$roleB/fast_forward_upgrade_tasks - release=pike, step=1 \_$roleA/fast_forward_upgrade_tasks - release=pike, step=2 \_$roleB/fast_forward_upgrade_tasks - release=pike, step=2 \_$roleA/fast_forward_upgrade_tasks - release=pike, step=3 \_$roleB/fast_forward_upgrade_tasks - release=pike, step=3 \_fast_forward_upgrade_bootstrap_tasks - release=pike \_fast_forward_upgrade_bootstrap_role_tasks - release=pike \_$roleA/fast_forward_upgrade_tasks - release=pike, step=4 \_$roleB/fast_forward_upgrade_tasks - release=pike, step=4 \_$roleA/fast_forward_upgrade_tasks - release=pike, step=5 \_$roleB/fast_forward_upgrade_tasks - release=pike, step=5 \_$roleA/fast_forward_upgrade_tasks - release=pike, step=N \_$roleB/fast_forward_upgrade_tasks - release=pike, step=N bp fast-forward-upgrades Change-Id: Ie2683fd7b81167abe724a7b9245bf85a0a87ad1d
9 lines
403 B
YAML
9 lines
403 B
YAML
---
|
|
upgrade:
|
|
- |
|
|
Each service template may optionally define a `fast_forward_upgrade_tasks`
|
|
key, which is a list of ansible tasks to be performed during the
|
|
fast-forward upgrade process. As with Upgrade steps each task is associated
|
|
to a particular step provided as a variable and used along with a release
|
|
variable by a basic conditional that determines when the task should run.
|