Project

General

Profile

action #49913

[qam] [sle][security][sle15sp1] test fails in apache2_changehat

Added by bfilho over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2019-04-02
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

openQA test in scenario sle-15-Server-DVD-Updates-x86_64-mau-apparmor_profile@64bit fails in
apache2_changehat

Test suite description

Reproducible

Fails since (at least) Build 20190305-2

Expected result

Last good: 20190305-1 (or more recent)

Further details

Seems to be caused after merge of apparmor_changehat cases into sle and opensuse. Might be only missing neddles.

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/7169

Added a comment to maintainer to check it up.

Always latest result in this scenario: latest

History

#1 Updated by llzhao over 2 years ago

  • Assignee set to llzhao

Thanks for the concerns.

NOTE:
1.
The new added test case should be run in gnome environment, the settings should be changed to:
DESKTOP=gnome and START_AFTER_TEST=create_hdd_gnome

2.
The related needle were merged (forgot to merge before):
https://gitlab.suse.de/openqa/os-autoinst-needles-sles/merge_resquests/1107

#2 Updated by bfilho over 2 years ago

Thank you for the quick response. I'm just waiting for the next run to check if everything is fine.

#3 Updated by bfilho over 2 years ago

Hello llzhao

The error still seem to be happening (https://openqa.suse.de/tests/2771150#next_previous). The needles seemed to be added but the tests are still failing. Do you think it could be something else this time?

About that change on the settings, does someone need to do that on the OSD?

Thanks

#4 Updated by llzhao over 2 years ago

Hello bfilho,
Thanks for the update.
Yes, the error still exists,
but I had changed the settings for "apparmor_profile" let wait and see the results on next build.

the changes:
[
DESKTOP=gnome
HDD_1=SLES-%VERSION%-%ARCH%-Build%BUILD%@%MACHINE%-gnome.qcow2
START_AFTER_TEST=create_hdd_gnome
]

I am not sure who can help to change the settings for "mau-apparmor_profile" accordingly.

#5 Updated by llzhao over 2 years ago

  • Subject changed from [qam] test fails in apache2_changehat to [qam] [sle][security][sle15sp1] test fails in apache2_changehat

#6 Updated by llzhao over 2 years ago

  • Status changed from New to In Progress

#7 Updated by llzhao over 2 years ago

  • Status changed from In Progress to Resolved

#8 Updated by okurz over 2 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: mau-apparmor_profile
https://openqa.suse.de/tests/2820689

#9 Updated by msmeissn over 2 years ago

  • Status changed from Resolved to Workable
  • Priority changed from Normal to Immediate

This is still failing in maitnenance.

This has nothing to do with dovecot.

I think the problem in https://openqa.suse.de/tests/2839304#
is that it does:
add_suseconnect_product("sle-module-web-scripting");
and in SLE15 this is with verisons, but in SLE12 codebase it is without any service pack versions. It probably needs to use code like in
tests/console/salt.pm:

    my $version = get_required_var('VERSION') =~ s/([0-9]+).*/$1/r;
    if ($version == '12') {
        add_suseconnect_product('sle-module-web-scripting', $version);
    }
    elsif ($version == '15') {
        $version = get_required_var('VERSION') =~ s/([0-9]+)-SP([0-9]+)/$1.$2/r;
        add_suseconnect_product('sle-module-adv-systems-management', "$version");
    }

#10 Updated by msmeissn over 2 years ago

  • Status changed from Workable to New

#11 Updated by llzhao over 2 years ago

  • Status changed from New to In Progress

#12 Updated by llzhao over 2 years ago

  • Priority changed from Immediate to High

Thanks for the comments, they are vert helpful.
There are also some other issues I have to fix at the same time.

#13 Updated by llzhao over 2 years ago

the fix:

  1. firefox loading time out can be fixed by setting "QEMURAM=2048" (default is "QEMURAM=1024")
  2. add_suseconnect_product("sle-module-web-scripting") error can be fixed by msmeissn's suggestions as top.
  3. add one more data file "usr.sbin.httpd-prefork-sle12" for sle12sp4 product
  4. do restart apparmor before restart apache2, otherwise there will be DENIED audit records like: type=AVC msg=audit(1553744807.037:405): apparmor="DENIED" operation="change_hat" info="unconfined can not change_hat" error=-1 profile="unconfined" pid=5579 comm="httpd-prefork"

#14 Updated by okurz over 2 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: mau-apparmor_profile
https://openqa.suse.de/tests/2932796

#15 Updated by llzhao over 2 years ago

  • Status changed from In Progress to Resolved

The code was pushed and change the status to "Resolved".
I have updated the "Settings" of test suites "mau-apparmor_profile" also, let see the next run.

FYI of the new "Settings":
DESKTOP=gnome
HDD_1=SLES-%VERSION%-%ARCH%-mru-install-desktop-with-addons-Build%BUILD%-%MACHINE%.qcow2
SCC_ADDONS=%REQUIRED_ADDON%,%MRU_ADDONS%
START_AFTER_TEST=mru-install-desktop-with-addons

#16 Updated by okurz over 2 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: mau-apparmor_profile
https://openqa.suse.de/tests/2985754

Also available in: Atom PDF