c60e7a964c
Some cli options like --ntp-server/--control-scaler have variables e.g.: NtpServer or RoleFlavor/Count. It makes sense to convert them to env file and use it in follow up update/upgrade/ffwd operations, rather then maintain a list of cli options. Change-Id: Ie1305b8783de403fe0c725b1207782dd8336c053
39 lines
1.3 KiB
Django/Jinja
39 lines
1.3 KiB
Django/Jinja
#!/bin/env bash
|
|
#
|
|
# Run major upgrade converge step on overcloud nodes
|
|
#
|
|
set -euo pipefail
|
|
|
|
source {{ undercloud_rc }}
|
|
echo "Running {% if ffu_overcloud_upgrade %} ffwd-upgrade {% else %} major {% endif %}upgrade converge step"
|
|
openstack overcloud {% if ffu_overcloud_upgrade %} ffwd-upgrade {% else %} upgrade {% endif %}converge \
|
|
{% 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 %}
|
|
--templates {{ tht_directory }} \
|
|
--stack {{ overcloud_stack_name }} \
|
|
{% if initial_env_file is defined and initial_env_file.stdout_lines|length > 0 %}
|
|
{% for _env in initial_env_file.stdout_lines %}
|
|
-e {{ _env }} \
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if cli_converted_options|default(false)|bool %}
|
|
-e {{working_dir}}/cli_opts_params.yaml \
|
|
{% endif %}
|
|
{% if ffu_overcloud_upgrade %}
|
|
-e {{ working_dir }}/{{ container_registry_file }} \
|
|
{% if ceph_osd_enabled %}
|
|
-e {{working_dir}}/ceph-ansible-env.yaml \
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if not ffu_overcloud_upgrade %}--roles-file {{ roles_data }}{% endif %} 2>&1
|