Skip to content

Commit

Permalink
Increase timeout to 120s for nmcli device disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
dzedro committed Nov 29, 2024
1 parent 8a39998 commit 6a9ed3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/microos/networkmanager.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ sub ping_check {
assert_script_run("ping -c 5 $net_config{'dns_server'}");
# disconnect the device, skip the test on remote worker with ssh connection
unless (is_s390x || is_vmware) {
# Increase timeout to 60s - poo#169726
assert_script_run("nmcli -w 60 device disconnect $nic_name");
# poo#169726 Increasing timeout to 120s and adding DEBUG logs for future investigation
script_run("nmcli general logging level DEBUG");
assert_script_run("nmcli -w 120 device disconnect $nic_name");
script_run("journalctl -u NetworkManager -b >> /var/log/nmcli_logs");
record_info("Logs", script_output("cat /var/log/nmcli_logs"));
if (script_run("ping -c 5 $net_config{'dns_server'}") == 0) {
die('The network is still up after disconnection');
}
Expand Down

0 comments on commit 6a9ed3e

Please sign in to comment.