action #167470
closed
coordination #163919: [epic] Create automation setup for testing Agama
Enable installation for full encryption with focus on booting the installed system
Added by JERiveraMoya 3 months ago.
Updated 2 months ago.
Description
Motivation¶
As a follow up of #166133 we need to figure out a way to boot the system, when having two password and potentially create our page objects to do that instead of using legacy code.
Scope¶
Agama devel
Leap 16
Agama SLES
In s390x we cannot connect to the installed system, so we can skip this one.
Acceptance criteria¶
- AC1: Enable installation for full encryption with focus on booting the installed system
- AC2: Convert to Page Object the code in the new test modules developed in AC1.
Files
TW_1.png (6.4 KB)
TW_1.png |
Enter passphrase for hd0.gpt2 |
lmanfredi, 2024-09-26 12:57
|
|
TW_2.png (10.6 KB)
TW_2.png |
Please enter passphrase for disk cr_swap |
lmanfredi, 2024-09-26 12:57
|
|
TW_3.png (5.45 KB)
TW_3.png |
login: |
lmanfredi, 2024-09-26 12:57
|
|
By a local test using a VM with agama-installer.x86_64-10.0.0-openSUSE-Build25.17.iso
, the steps are:
Enter passphrase for hd0.gpt2
Please enter passphrase for disk cr_swap
login:
Remaining part is:
To install Tumbleweed with the (current production) installer and compare the result with a installation with agama, both should contain the root and the swap partitions encrypted and similar characteristics of LUKSs, etc., if they don't then we stop here and file a bug (or discuss with squad in our channel if in doubt).
If those are similar, then let's add YAML_TEST_DATA to pass validation in validate_encrypt test module.
Repeat the same process to enable the test suite in Leap 16 and SLES 16 job groups.
The current installation contains 2 encrypted device, verified also by local VM test.
But the test data eg
test_data/yam/agama_tumbleweed_full_disk_encryption.yaml
test_data/yam/agama_full_disk_encryption.yaml
contains:
---
crypttab:
num_devices_encrypted: 1
The proposal is to create a new yaml test data for YAML_TEST_DATA
that fit the actual number of devices
Could be enough to add the section test_data
into yaml schedule file schedule/yam/agama_full_disk_encryption.yaml
:
test_data:
crypttab:
num_devices_encrypted: 2
<<: !include test_data/yast/encryption/default_enc_luks2.yaml
as in the Tumbleweed test case crypt_no_lvm
Following the scope described in the ticket:
Created needles with tag:
enter-passphrase-for-root-partition
enter-passphrase-for-swap-partition
on repo os-autoinst-needles-sles
enter-passphrase-for-root-partition-20241015.json: "enter-passphrase-for-root-partition"
enter-passphrase-for-root-partition-x86_64-20241015.json: "enter-passphrase-for-root-partition"
enter-passphrase-for-swap-partition-20241015.json: "enter-passphrase-for-swap-partition"
for SLES.
Created os-autoinst-distri-opensuse
PR#20399
Skipped test modules validate_encrypt
in job template EXCLUDE_MODULES: validate_encrypt
- Status changed from In Progress to Resolved
Also available in: Atom
PDF