Actions
action #112112
open[qac] script_retry does not retry if timeout is not able to kill the inner command in 3sec
Status:
New
Priority:
Normal
Assignee:
-
Category:
Enhancement to existing tests
Target version:
-
Start date:
2022-06-07
Due date:
% Done:
0%
Estimated time:
Difficulty:
Description
I'm using script_retry to ensure a long running command is
script_retry($some_cmd, timeout => 600, retry => 5, delay => 60);
The inner command timeout but the script_retry does not try to execute it again.
http://1c242.qa.suse.de/tests/326/file/autoinst-log.txt
[debug] post_fail_hook failed: command 'timeout 600 az group delete --resource-group openqa-trento-rg-326 --yes' timed out at /usr/lib/os-autoinst/testapi.pm line 1039.
testapi::script_run("timeout 600 az group delete --resource-group openqa-trento-rg"..., 603) called at sle/lib/utils.pm line 1609
utils::script_retry("az group delete --resource-group openqa-trento-rg-326 --yes", "timeout", 600, "retry", 5, "delay", 60) called at sle/lib/trento.pm line 99
trento::az_delete_group(test_trento_web=HASH(0x55d147f8bf38)) called at sle/tests/sles4sap/trento/test_trento_web.pm line 51
test_trento_web::post_fail_hook(test_trento_web=HASH(0x55d147f8bf38)) called at /usr/lib/os-autoinst/basetest.pm line 295
So the timeout that is wrapping the command itself timeout. It is like the 3sec are not enough for timeout to kill the inner command
# timeout for script_run must be larger than for the 'timeout ...' command
$ret = script_run($exec, ($timeout + 3));
Actions