38 lines
1.5 KiB
Django/Jinja
38 lines
1.5 KiB
Django/Jinja
#!/bin/env bash
|
|
set -euo pipefail
|
|
|
|
source {{ undercloud_rc }}
|
|
|
|
echo "[$(date)] Started {% if ffu_overcloud_upgrade %} ffwd-upgrade {% else %} major {% endif %}upgrade Ceph step"
|
|
|
|
openstack overcloud ceph-upgrade run \
|
|
--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 %}
|
|
{% if deployment_with_ha_upstream %}
|
|
-e {{ tht_directory }}/environments/docker.yaml \
|
|
-e {{ tht_directory }}/environments/docker-ha.yaml \
|
|
{% endif %}
|
|
-e {{working_dir}}/ceph-ansible-env.yaml \
|
|
--ceph-ansible-playbook '/usr/share/ceph-ansible/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml,/usr/share/ceph-ansible/infrastructure-playbooks/rolling_update.yml' \
|
|
{% endif %}
|
|
{% if tripleo_upgrade_validations_non_fatal|bool %}
|
|
--validation-errors-nonfatal \
|
|
{% endif %}
|
|
-e {{ working_dir }}/{{ container_registry_file }} \
|
|
{% if splitstack_deployment|bool %}
|
|
--disable-validations \
|
|
--deployed-server \
|
|
{% endif %}
|
|
{% if (not ffu_overcloud_upgrade or roles_data != default_roles_data) %}--roles-file {{ roles_data }}{% endif %} 2>&1
|
|
|
|
echo "[$(date)] Finished CEPH upgrade"
|