diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-04-25 18:08:22 +0200 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-04-27 15:34:56 +0200 |
commit | 9c13968cdb32806da738dc520d45270e019f0ad3 (patch) | |
tree | 50eb0e0889dc72a1ce4dec0da60607c834d91fc0 /testcases/VIM/OpenStack/CI/libraries/check_os.sh | |
parent | 790fa04f4503dbf60123bf9414db131580f2c45a (diff) |
Create prepare_env.py from prepare_env.sh and config_functest.py
JIRA: FUNCTEST-227
Change-Id: I1aa890b9f91ec524c766ba3c460666ed227f2126
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries/check_os.sh')
-rwxr-xr-x | testcases/VIM/OpenStack/CI/libraries/check_os.sh | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/check_os.sh b/testcases/VIM/OpenStack/CI/libraries/check_os.sh index 98b8605cd..c247d5ae2 100755 --- a/testcases/VIM/OpenStack/CI/libraries/check_os.sh +++ b/testcases/VIM/OpenStack/CI/libraries/check_os.sh @@ -7,8 +7,8 @@ # verify_connectivity() { - for i in $(seq 0 10); do - if echo "test" | nc -v $1 $2 &>/dev/null; then + for i in $(seq 0 9); do + if echo "test" | nc -v -w 10 $1 $2 &>/dev/null; then return 0 fi sleep 1 @@ -88,27 +88,4 @@ if [ $is_external == "False" ]; then exit 1 fi - -# Temporary output information -# To see the initial OpenStack defaults -# in case we delete something later on. -# This is to be removed for the release -if [[ "${CI_DEBUG,,}" == "true" ]];then - echo "nova list:" - nova list - echo "cinder list" - cinder list - echo "nova floating-ip-list:" - nova floating-ip-list - echo "neutron net-list:" - neutron net-list - echo "neutron router-list:" - neutron router-list - echo "neutron security-group-list:" - neutron security-group-list - echo "openstack project list:" - openstack project list - echo "openstack user list:" - openstack user list -fi exit 0 |