action #155413
closed
Ensure apparmor is enforced in openQA-in-openQA tests size:M
Added by okurz 10 months ago.
Updated 3 months ago.
Category:
Feature requests
Description
Motivation¶
In multiple occurrences openQA failed to start up or operate successfully on openqa.opensuse.org due to change of functionality without having according apparmor adaptions prepared. We should have automatic tests that ensure that apparmor profiles are enforced and fail if not covered properly.
Acceptance criteria¶
- AC1: At least one openQA-in-openQA test scenario ensures that openQA jobs can still be executed with apparmor profiles enforced
Suggestions¶
- Do we have any documentation regarding apparmor? If not then extend our documentation to cover that, should be simple
- Enable apparmor in openQA-in-openQA tests and just run tests, e.g. like "zypper -n in apparmor && systemctl enable --now apparmor"
- Ensure to cover both webUI and worker part though can be on the same host
- Do we need reboot? Probably not, we don't have any kernel parameters or anything on o3
- Copied from action #153427: Improve updating cached assets size:M added
- Subject changed from Ensure apparmor is enforced in openQA-in-openQA tests to Ensure apparmor is enforced in openQA-in-openQA tests size:M
- Description updated (diff)
- Status changed from New to Workable
I don't understand that suggestion:
Ensure to cover both webUI and worker part though can be on the same host
Can someone translate that?
tinita wrote in #note-3:
I don't understand that suggestion:
Ensure to cover both webUI and worker part though can be on the same host
Can someone translate that?
I guess web UI and workers require different permissions. If they're on different hosts they need to be installed in different packages?
- Target version changed from Tools - Next to Ready
- Assignee set to jbaier_cz
- Status changed from Workable to In Progress
Looks like AppArmor is installed and enabled by default, so we just need to switch it to enforcing mode for openQA.
- Related to action #165408: Unreviewed issue (Group 24 openQA) test-running in openQA failing with error detecting default remote branch size:S added
- Related to action #165692: [openQA-in-openQA] test does not fail if state is done but incomplete auto_review:"no candidate needle.*openqa-dashboard.*matched" size:S added
- Status changed from In Progress to Feedback
- Status changed from Feedback to Resolved
All related PR are merged, I guess we are done here.
- Status changed from Resolved to Feedback
- Status changed from Feedback to Resolved
No other issue spotted since the last fix.
Also available in: Atom
PDF