virtualbox scripts calls ping incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Serhii Ovsianikov |
Bug Description
in functions/
Unfortunately in CYGWIN it runs windows version of ping utility and there is no '-c' argument.
Steps to reproduce:
1. get windows
2. install cygwin with default packages
3. download and unpack vbox scripts.
4. put MirantisOpenSta
5. run launch.sh in CYGWIN console and wait until MOS installation finish.
6. put '-x' into shebang line in actions/
6. run actions/
Expected result:
script run ping utility to check for internet connectivity on the host system. And ping should run normally and return true or false depending on internet connectivity.
Actual result:
Ping utility fails with error "Bad option -c" but returns 0 therefore script always decides there is internet connectivity.
Workaround:
Add case-esac part into enable_
# Check for internet access on the host system
echo -n "Checking for internet connectivity on the host system... "
case "$(uname)" in
CYGWIN*)
;;
*)
;;
esac
if [ "`ping ${ping_count_opt} 5 google.com || ping ${ping_count_opt} 5 wikipedia.com`" ]; then
echo "OK"
else
echo "FAIL"
return 1
fi
Changed in fuel: | |
assignee: | nobody → Fuel Library Team (fuel-library) |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: low-hanging-fruit |
Changed in fuel: | |
milestone: | none → 6.0.1 |
assignee: | Fuel Library Team (fuel-library) → Serhiy Ovsianikov (sovsianikov) |
Changed in fuel: | |
assignee: | Meg McRoberts (dreidellhasa) → Serhiy Ovsianikov (sovsianikov) |
Fix proposed to branch: master /review. openstack. org/149755
Review: https:/