tripleo-upgrade/templates/l3_agent_start_ping.sh.j2
Marius Cornea be14a30756 Include connectivity check prepare scripts during FFU
This change includes the connectivity check prepare scripts step
during FFU and it moves the tasks covering it to the
common dir and assigns specific tags for each FFU stage. In
addition it saves the floating IP address to a file so it can be
used in stages where Neutron API is not available.

Change-Id: I9d61f6eaa105e9eb2854eb749f570c395de155fe
(cherry picked from commit 55ff3f72cd)
2018-03-26 19:56:29 +00:00

13 lines
447 B
Django/Jinja

#!/bin/bash
#
# Script which start an ICMP connectivity check on the first in use
# floating IP during upgrade
if [ -f {{ working_dir }}/fip.sh ]; then
source {{ working_dir }}/fip.sh
else
echo export FIP=$(openstack floating ip list -f json | jq -r -c '.[] | select(.Port) | .["Floating IP Address"]' | head -1) > {{ working_dir }}/fip.sh
source {{ working_dir }}/fip.sh
fi
ping -D ${FIP} >> ~/ping_results_$(date +%Y%m%d%H%M).log &