601b0b4a08
The upgrade from Stein to Train does not include any OS upgrade inbetween, therefore the workflow used can be as it used to be up to Queens to Rocky upgade. This workflow consists on upgrading role by role, always starting by the Controller. Change-Id: I295f927b2e4504d0ba2bbd952021f5ef70476027
60 lines
2.3 KiB
Django/Jinja
60 lines
2.3 KiB
Django/Jinja
#!/bin/env bash
|
|
#
|
|
# Setup HEAT's output
|
|
#
|
|
set -euo pipefail
|
|
|
|
source {{undercloud_rc }}
|
|
|
|
echo "Running {% if ffu_overcloud_upgrade %} ffwd-upgrade {% else %} major {% endif %}upgrade prepare step"
|
|
openstack overcloud{% if ffu_overcloud_upgrade %} ffwd-upgrade {% else %} upgrade {% endif %}prepare --stack {{ overcloud_stack_name }} \
|
|
--templates {{ tht_directory }} \
|
|
{% if ffu_overcloud_upgrade -%}
|
|
--yes \
|
|
{% endif -%}
|
|
{% if overcloud_ssh_user != '' -%}
|
|
--overcloud-ssh-user {{ overcloud_ssh_user }} \
|
|
{% endif -%}
|
|
{% if tripleo_upgrade_debug|bool -%}
|
|
--debug \
|
|
{% endif -%}
|
|
{% if tripleo_upgrade_validations_non_fatal|bool -%}
|
|
--validation-errors-nonfatal \
|
|
{% endif -%}
|
|
{% if splitstack_deployment|bool -%}
|
|
--disable-validations \
|
|
--deployed-server \
|
|
{% endif -%}
|
|
{% if network_data_file|length >0 -%}
|
|
-n {{ network_data_file }} \
|
|
{% endif -%}
|
|
{% if initial_env_file is defined and initial_env_file.stdout_lines|length > 0 -%}
|
|
{% for _env in initial_env_file.stdout_lines|difference(old_img|default([])) -%}
|
|
-e {{ _env }} \
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
{% if ffu_overcloud_upgrade and deployment_with_ha_upstream -%}
|
|
-e {{ tht_directory }}/environments/docker.yaml \
|
|
-e {{ tht_directory }}/environments/docker-ha.yaml \
|
|
{% endif -%}
|
|
{% if cli_converted_options|default(false)|bool -%}
|
|
-e {{working_dir}}/cli_opts_params.yaml \
|
|
{% endif -%}
|
|
{% if upgrade_remove_rpm|default(false)|bool -%}
|
|
-e {{ working_dir }}/remove-packages.yaml \
|
|
{% endif -%}
|
|
{% if deployment_with_ovs|default(true)|bool -%}
|
|
-e {{ tht_directory }}/environments/services/neutron-ovs.yaml \
|
|
{% endif -%}
|
|
{% if upgrade_prepare_extra_params and upgrade_prepare_extra_params|string -%}
|
|
{% if ',' in upgrade_prepare_extra_params -%}
|
|
-e {{ upgrade_prepare_extra_params.split(',') | join(' -e ') }} \
|
|
{% else -%}
|
|
-e {{ upgrade_prepare_extra_params }} \
|
|
{% endif -%}
|
|
{% elif upgrade_prepare_extra_params and upgrade_prepare_extra_params|list -%}
|
|
-e {{ upgrade_prepare_extra_params | join(' -e ') }} \
|
|
{% endif -%}
|
|
-e {{ working_dir }}/{{ uc_containers_prepare_file }} \
|
|
{% if (not ffu_overcloud_upgrade or roles_data != default_roles_data) %}--roles-file {{ roles_data }}{% endif %} 2>&1
|