action #28501
closed[qam][sle][functional][sle15] yast2_lan_restart.pm - ! -s journal.log seems not working
Added by zluo almost 7 years ago. Updated almost 7 years ago.
0%
Updated by zluo almost 7 years ago
compare http://e13.suse.de/tests/18#step/yast2_lan_restart/32
and http://e13.suse.de/tests/19#step/yast2_lan_restart/32
assert_script_run 'ip a' and script_run 'ip a' has different results.
But anyway later test died because of timed out for ip a.
Updated by zluo almost 7 years ago
- Related to action #25676: [sle][functional][sle15][medium] test fails in yast2_lan_restart because of "SuSEfirewall2" popup, blocking next tests added
Updated by zluo almost 7 years ago
currect status:
! -s journal.log seems not working
Updated by zluo almost 7 years ago
- Subject changed from [sle][functional][sle15] yast2_lan_restart.pm - timeout for assert_script_run 'ip a' to [sle][functional][sle15] yast2_lan_restart.pm - ! -s journal.log seems not working
Updated by zluo almost 7 years ago
check this again:
If I don't assign devive to zone, send_key 'alt-n';
--
assert_screen([qw(yast2-lan-restart_firewall_active_warning yast2_closed_xterm_visible)], 120);
if (match_has_tag 'yast2-lan-restart_firewall_active_warning') {
send_key 'alt-n';
wait_still_screen;
send_key 'alt-n';
wait_still_screen;
send_key 'alt-o';
}¶
Then I will get timeout issue:
http://e13.suse.de/tests/35#step/yast2_lan_restart/30
But I saw configuration has been written anyway after popup about activated firewall... Might be we need to disable firewall at first?
Updated by okurz almost 7 years ago
- Category set to Bugs in existing tests
- Status changed from New to In Progress
I don't know what could have caused the file update. I recommend to split the test module first and also try to reproduce and investigate manually.
Updated by zluo almost 7 years ago
If systemctl stop firewalld is called at beginning, then popup won't show up, but it still failed becaues of:
Test died: command '[ ! -s journal.log ]' failed at /var/lib/openqa/share/tests/opensuse/tests/x11/yast2_lan_restart.pm line 71.
Updated by zluo almost 7 years ago
cat journal.log got wicked messages.
compare with successful run for sles 12 sp3:
https://openqa.suse.de/tests/1019970#step/yast2_lan_restart/35
journal.log is empty.
Updated by zluo almost 7 years ago
filed issue:
https://bugzilla.suse.com/show_bug.cgi?id=1070578
Updated by zluo almost 7 years ago
I observed that if firewalld is running, then we will have a timeout issue for script_run "ip a".
Updated by zluo almost 7 years ago
- Assignee set to zluo
nsinger and I will work together on this task for now
Updated by zluo almost 7 years ago
Updated by zluo almost 7 years ago
- Related to action #29063: [opensuse][functional] yast2-lan-restart failed because of firewalld issue added
Updated by zluo almost 7 years ago
https://openqa.opensuse.org/tests/553243#step/yast2_lan_restart
fixed and verified
Updated by zluo almost 7 years ago
checking now after correction of needle "hardware_tab" which is mismatched:
Updated by zluo almost 7 years ago
created further needles which are missing on osd.
Updated by coolo almost 7 years ago
- Subject changed from [sle][functional][sle15] yast2_lan_restart.pm - ! -s journal.log seems not working to [qam][sle][functional][sle15] yast2_lan_restart.pm - ! -s journal.log seems not working
But how is this code supposed to work on sle12?
if ("$status" eq 'restart') {
assert_script_run '[ -s journal.log ]'; # journal.log size is greater than zero (network restarted)
}
if ((is_sle && !sle_version_at_least('15')) || (is_leap && !leap_version_at_least('15.0'))) {
assert_script_run '[ ! -s journal.log ]';
}
Either it's -s or ! -s - but you can't assert both.
Updated by zluo almost 7 years ago
- Blocked by action #29319: [sle][functional][sle15] yast2_lan_restart.pm - vlan package needs to be installed added
Updated by zluo almost 7 years ago
because of bsc#1070578, we have to workaround it for sles 15. sles 12 is here not affected.
Updated by zluo almost 7 years ago
Updated by zluo almost 7 years ago
Updated by zluo almost 7 years ago
https://openqa.suse.de/tests/1320573#step/yast2_lan_restart/311
fixed now on osd.
Updated by zluo almost 7 years ago
fixed as well on 3o:
https://openqa.opensuse.org/tests/559481#step/yast2_lan_restart/308