From 3f9fe2e8fc1fccf0324538274e3b07b3e90b96b9 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Thu, 23 Feb 2023 12:39:46 +0530 Subject: [PATCH] Bump ping timeout to 60 seconds The jobs fails intermittently on ping check with current timeout of 30 seconds. The testvm can take time to boot and have network ready on slow systems and using qemu hypervisor and lead to ping timeout. With [1] included noticed it taking more than 40 seconds to boot testvm, so bumping timeout to 60 seconds will help in such cases. [1] https://review.opendev.org/c/openstack/grenade/+/874417 Related-Bug: #1463631 Related-Bug: #2007357 Change-Id: Ibdd030e126d508e6ff24cde180c611ada7f24cb3 --- projects/60_nova/resources.sh | 4 ++-- projects/70_cinder/resources.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/60_nova/resources.sh b/projects/60_nova/resources.sh index 31924dc6..5c94c843 100755 --- a/projects/60_nova/resources.sh +++ b/projects/60_nova/resources.sh @@ -134,7 +134,7 @@ function create { resource_save nova nova_server_uuid $uuid # ping check on the way up to ensure we're really running - ping_check_public $ip 30 + ping_check_public $ip 60 # Save some inventory and allocation values (requires admin) source_quiet $TOP_DIR/openrc admin admin @@ -191,7 +191,7 @@ function verify { function verify_noapi { local server_ip=$(resource_get nova nova_server_ip) - ping_check_public $server_ip 30 + ping_check_public $server_ip 60 } function destroy { diff --git a/projects/70_cinder/resources.sh b/projects/70_cinder/resources.sh index a5659874..c72a70b6 100755 --- a/projects/70_cinder/resources.sh +++ b/projects/70_cinder/resources.sh @@ -176,7 +176,7 @@ function create { _wait_for_volume_update $CINDER_VOL3 "status" "in-use" # ping check on the way up so we can add ssh content - ping_check_public $ip 30 + ping_check_public $ip 60 # turn of errexit for this portion of the retry set +o errexit @@ -239,7 +239,7 @@ function verify { function verify_noapi { local server_ip=$(resource_get cinder cinder_server_ip) - ping_check_public $server_ip 30 + ping_check_public $server_ip 60 # this sync is here to ensure that we don't accidentally pass when # the volume is actually down. timeout 30 $FSSH -i $CINDER_KEY_FILE cirros@$server_ip \