Project

General

Profile

Actions

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.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2017-11-28
Due date:
% Done:

0%

Estimated time:
Difficulty:

Related issues 3 (0 open3 closed)

Related to openQA Tests - action #25676: [sle][functional][sle15][medium] test fails in yast2_lan_restart because of "SuSEfirewall2" popup, blocking next testsResolvedzluo2017-09-292017-12-19

Actions
Related to openQA Tests - action #29063: [opensuse][functional] yast2-lan-restart failed because of firewalld issueResolvedzluo2017-12-07

Actions
Blocked by openQA Tests - action #29319: [sle][functional][sle15] yast2_lan_restart.pm - vlan package needs to be installedResolvedzluo2017-12-12

Actions
Actions #1

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.

Actions #2

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
Actions #3

Updated by zluo almost 7 years ago

currect status:

! -s journal.log seems not working

http://e13.suse.de/tests/26#step/yast2_lan_restart/39

Actions #4

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
Actions #5

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?

Actions #6

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.

Actions #7

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.

Please see:
http://e13.suse.de/tests/latest?arch=x86_64&version=15.0&machine=64bit&test=extra_tests_on_gnome&flavor=DVD&distri=opensuse#step/yast2_lan_restart/48

Actions #10

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".

Actions #11

Updated by zluo almost 7 years ago

  • Assignee set to zluo

nsinger and I will work together on this task for now

Actions #13

Updated by zluo almost 7 years ago

  • Related to action #29063: [opensuse][functional] yast2-lan-restart failed because of firewalld issue added
Actions #15

Updated by zluo almost 7 years ago

checking now after correction of needle "hardware_tab" which is mismatched:

https://openqa.suse.de/tests/1305374

Actions #16

Updated by zluo almost 7 years ago

created further needles which are missing on osd.

Actions #17

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.

Actions #18

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
Actions #19

Updated by zluo almost 7 years ago

@coolo

because of bsc#1070578, we have to workaround it for sles 15. sles 12 is here not affected.

Actions #24

Updated by zluo almost 7 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF