[RFE] ping_metadata_ip in 20-os-net-config should be waiting for X second(s) between each ping
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
David Vallee Delisle |
Bug Description
os-net-config just sends a bunch of pings without waiting for anything in /usr/libexec/
Current code:
~~~
until ping -c 1 $METADATA_IP &> /dev/null; do
COUNT=$(( $COUNT + 1 ))
if [ $COUNT -eq 10 ]; then
echo "FAILURE"
echo "$METADATA_IP is not pingable." >&2
exit 1
fi
done
~~~
It could be like this:
~~~
until ping -c 1 -W 1 $METADATA_IP > /dev/null; do
COUNT=$(( $COUNT + 1 ))
if [ $COUNT -eq $METADATA_
echo "FAILURE"
echo "$METADATA_IP is not pingable." >&2
exit 1
fi
done
~~~
That way, we are going to try 1 ping every second, for $METADATA_
Steps to Reproduce:
1. Disable portfast on switches
2. overcloud deploy
3.
Actual results:
Overcloud deploy fails because the ports can take 15-30 seconds to come up
Expected results:
os-net-config should wait a bit more time before failing
Changed in os-net-config: | |
assignee: | nobody → Dan Sneddon (dsneddon) |
importance: | Undecided → Medium |
affects: | os-net-config → tripleo |
Changed in tripleo: | |
assignee: | Dan Sneddon (dsneddon) → David Vallee Delisle (valleedelisle) |
status: | New → In Progress |
Changed in tripleo: | |
milestone: | none → rocky-2 |
I went ahead and submitted a patch https:/ /review. openstack. org/#/c/ 536041/