tripleo-upgrade/templates/overcloud_update_converge.sh.j2
Yurii Prokulevych 663d380f6f Add support for network-data-file.
TripleO offers a default network topology when deploying
with network isolation enabled, and this is reflected in
the network_data.yaml file in tripleo-heat-templates.
If this is the case it has to be handled during update/upgrade.

Change-Id: If50109753d4845357c869986c256186e8e22006d
2019-05-23 16:06:51 +02:00

43 lines
1.3 KiB
Django/Jinja

#!/bin/env bash
#
# Run minor update converge step on overcloud nodes
#
set -euo pipefail
source {{ undercloud_rc }}
echo "Running minor update converge step"
openstack overcloud update converge \
{% if tripleo_upgrade_debug|bool -%}
--debug \
{% endif -%}
{% if tripleo_upgrade_validations_non_fatal|bool -%}
--validation-errors-nonfatal \
{% endif -%}
{% if tripleo_upgrade_converge_plan_only|bool -%}
--update-plan-only \
{% endif -%}
--templates {{ tht_directory }} \
--stack {{ overcloud_stack_name }} \
{% if overcloud_ssh_user != '' -%}
--overcloud-ssh-user {{ overcloud_ssh_user }} \
{% 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 -%}
-e {{ _env }} \
{% endfor -%}
{% endif -%}
{% if cli_converted_options|default(false)|bool -%}
-e {{working_dir}}/cli_opts_params.yaml \
{% endif -%}
{% if roles_data != default_roles_data -%}
--roles-file {{ roles_data }} \
{% endif -%}
-e {{ working_dir }}/{{ container_registry_file }} 2>&1