Project

General

Profile

Actions

action #168304

closed

coordination #163919: [epic] Create automation setup for testing Agama

Implement workaround for selinux instalation/config corrupted/incomplete in SLES 16

Added by JERiveraMoya 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2024-10-16
Due date:
% Done:

0%

Estimated time:

Description

Motivation

https://bugzilla.suse.com/show_bug.cgi?id=1230121#c0
we disable post-installation validations with EXCLUDE_MODULES= in https://openqa.suse.de/admin/job_templates/607? for example.
For the simple validation we are doing after installation might not worth it to implement the whole workaround, only to switch off selinux, the relabeling is not needed.
we will wait until the bug is fixed.

Acceptance criteria

  • AC1: Set enforcing=0 in bootloader parameters of the installed system to be able to log in into the system (right after the congratulation page!)
  • AC2: Mark previous action as softfailure.

Files

login_root.png (8.87 KB) login_root.png root login lmanfredi, 2024-10-17 13:47
login_bernhard.png (9.57 KB) login_bernhard.png user login lmanfredi, 2024-10-17 13:47
Actions #1

Updated by JERiveraMoya 2 months ago

  • Description updated (diff)
Actions #2

Updated by lmanfredi 2 months ago

  • Status changed from Workable to In Progress
  • Assignee set to lmanfredi
Actions #3

Updated by lmanfredi 2 months ago

This bug bsc#1230121 has been marked as a duplicate of bug bsc#1231498.

The proposed Workaround (set boot param enforcing=0) seems that does not work. See OSD test case:

Actions #5

Updated by lmanfredi 2 months ago

Actions #6

Updated by JERiveraMoya 2 months ago · Edited

Yes, you noticed you mistake (I also was not so aware of the differences of grub2 for installer and for the installed system until we started to implement the new code, that is because I think it is a positive thing to do it). So you can continue (btw I tried this workaround manually before creating the ticket :)).

Please sync with @leli I think you are touching similar code to go to the end of the linux line.
https://progress.opensuse.org/issues/168205

Actions #7

Updated by lmanfredi 2 months ago

Thanks! The steps should be something like these:

record_soft_failure("bsc#1230121");
$grub_menu->edit_current_entry();
send_key('down', wait_screen_change => 1) for (1 .. 9);
send_key('end', wait_screen_change => 1);
send_key('delete', wait_screen_change => 1);
type_string '0';
save_screenshot;
send_key 'ctrl-x';

inside tests/yam/agama/boot_full_disk_encryption.pm, instead of $grub_menu->select_first_entry();

but probably is better to add this code in a new Pom module as the Lemon's PR

Actions #8

Updated by lmanfredi 2 months ago

Created PR#20434
To do: add WORKAROUND_BSC_1230121: 1 inside job groups template 607 and 612.

Actions #9

Updated by JERiveraMoya about 2 months ago

  • Tags changed from qe-yam-oct-sprint to qe-yam-nov-sprint
Actions #10

Updated by JERiveraMoya about 2 months ago · Edited

This task might not be needed, seems that the fix is its way:
https://bugzilla.opensuse.org/show_bug.cgi?id=1231498#c28
This is the bug that was selected as reference at the end: https://bugzilla.opensuse.org/show_bug.cgi?id=1231498

Actions #11

Updated by JERiveraMoya about 2 months ago

OBS sync get stuck, I retriggered, please verify that the bug is fixed and we can resolve this task closing the PR, they were faster than us, anyway we need to practice this kind of code for when the fixes will not be done so fast.

Actions #12

Updated by JERiveraMoya about 2 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF