
Having overcloud-user specified breaks ceph upgrade on a pre-provisioned servers: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to remote host \\"192.168.24.138\\". Make sure this host can be reached over ssh", "unreachable": true}'] Change-Id: Id5a3f6d8461d31e95680df491c97cd2ef2bd0c15
55 lines
1.5 KiB
Django/Jinja
55 lines
1.5 KiB
Django/Jinja
#!/bin/env bash
|
|
set -euo pipefail
|
|
|
|
{% if l3_agent_connectivity_check|bool %}
|
|
if [[ -e {{ working_dir }}/l3_agent_start_ping.sh ]]; then
|
|
source {{ overcloud_rc }}
|
|
bash {{ working_dir }}/l3_agent_start_ping.sh
|
|
fi
|
|
{% endif %}
|
|
|
|
{% if l3_agent_failover_check|bool %}
|
|
if [[ -e {{ working_dir }}/l3_agent_failover_pre.sh ]]; then
|
|
source {{ overcloud_rc }}
|
|
bash {{ working_dir }}/l3_agent_failover_pre.sh
|
|
fi
|
|
{% endif %}
|
|
|
|
{% if fip_http_check|bool %}
|
|
source {{ overcloud_rc }}
|
|
kill -9 $( lsof -t {{ working_dir }}/fip_http_check_start.sh ) || :
|
|
bash {{ working_dir }}/fip_http_check_start.sh &
|
|
{% endif %}
|
|
|
|
source {{ undercloud_rc }}
|
|
|
|
echo "[$(date)] Major upgrade - Ceph upgrade step"
|
|
|
|
openstack overcloud external-upgrade run \
|
|
--stack {{ overcloud_stack_name }} \
|
|
{% if ceph_upgrade_skip_tags|default(false) -%}
|
|
--skip-tags "{{ ceph_upgrade_skip_tags }}" \
|
|
{% endif -%}
|
|
--tags ceph 2>&1
|
|
|
|
echo "[$(date)] Major upgrade - finished Ceph upgrade step"
|
|
{% if l3_agent_connectivity_check|bool %}
|
|
if [[ -e {{ working_dir }}/l3_agent_stop_ping.sh ]]; then
|
|
source {{ overcloud_rc }}
|
|
bash {{ working_dir }}/l3_agent_stop_ping.sh
|
|
fi
|
|
{% endif %}
|
|
|
|
{% if l3_agent_failover_check|bool %}
|
|
if [[ -e {{ working_dir }}/l3_agent_failover_post.sh ]]; then
|
|
source {{ overcloud_rc }}
|
|
bash {{ working_dir }}/l3_agent_failover_post.sh
|
|
fi
|
|
{% endif %}
|
|
|
|
{% if fip_http_check|bool %}
|
|
source {{ overcloud_rc }}
|
|
kill -9 $( lsof -t {{ working_dir }}/fip_http_check_start.sh )
|
|
bash {{ working_dir }}/fip_http_check_stop.sh
|
|
{% endif %}
|