Project

General

Profile

Actions

action #164150

closed

[SLFO] Stagings: official SUSE keys aren't used anymore

Added by epaolantonio 7 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
New test
Target version:
-
Start date:
2024-07-18
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Hi,

on SLFO Stagings (and upcoming SP7 as well, as communicated via mail), the official SUSE signing keys aren't used anymore.

At least one change should be made, which is disabling Secure Boot. Using /usr/share/qemu/ovmf-x86_64-code.bin boots the
current staging images fine, as verified by @fcrozat.

I kept the title generic as we're unsure of the full implications of this change.


Related issues 2 (1 open1 closed)

Related to openQA Tests (public) - action #164183: [Micro] [ Staging] Allow enrolling a test kernel in SecureBootResolvedjlausuch2024-07-18

Actions
Related to openQA Tests (public) - action #164982: Implement check that changes in https://progress.opensuse.org/issues/164150 are not used in official productNewjlausuch2024-08-06

Actions
Actions #1

Updated by okurz 7 months ago

  • Project changed from openQA Project (public) to openQA Tests (public)
  • Category set to New test
Actions #2

Updated by okurz 7 months ago

  • Related to action #164183: [Micro] [ Staging] Allow enrolling a test kernel in SecureBoot added
Actions #4

Updated by jlausuch 7 months ago

  • Status changed from New to In Progress

Current state:
If we want to boot the systems with UEFI + secure boot, then the current default ovmf (code|vars) files we have in all the workers are not valid. We need new ones.
Fabian pointed me to some RPM where we can extract the ovmf file:
https://build.suse.de/projects/SUSE:SLFO:Main:Staging:Rings:1-MinimalX/packages/ovmf/repositories/standard/binaries
So, the rpm called ovmf-202305-slfo.1.3.17.x86_64.rpm contains the files we need to extract:

  • ovmf-x86_64-devel-vars.bin
  • ovmf-x86_64-devel-code.bin

I have extracted them and changed the namehttps://bugzilla.suse.com/show_bug.cgi?id=1228897https://bugzilla.suse.com/show_bug.cgi?id=1228897 to :

  • ovmf-x86_64-staging-vars.bin
  • ovmf-x86_64-staging-code.bin

And uploaded them to wotan.suse.de: https://w3.nue.suse.com/~jalausuch/ovmf/
Oliver has copied these files to all workers.
I have tried to boot a VM from a staging image but it doesn't boot, after telling RMs, Fabian created this bug:
https://bugzilla.suse.com/show_bug.cgi?id=1228897

So, we are now waiting for new uefi files to be used.

For now, I have disabled secure-boot in stagings using the following machine type: uefi-no-secboot which uses boot files without enabling secure-boot. This is a workaround to unblock the testing but not the final goal of this ticket.

The ideal case is that Release Managers provide a repository where Salt can pull the RPM from to install those files in the workers. Fabian suggested that this one could be used: https://build.suse.de/projects/SUSE:SLFO:Main:Staging:Rings:1-MinimalX/packages/ovmf/repositories/standard/binaries

Related slack threads:

Actions #5

Updated by jlausuch 7 months ago

Fabian created some new ovmf files
https://download.suse.de/ibs/home:/favogt:/stagingovmf/15.5/noarch/ (qemu-ovmf-x86_64-202402-Virt.150500.293.1.noarch.rpm)

I have downloaded them, added to my home https://w3.nue.suse.com/~jalausuch/ovmf/ and I have ran the following command in OSD to spread those files in the workers:

for i in code vars; do sudo salt -C 'G@roles:worker and G@osarch:x86_64' cmd.run "curl -sS https://w3.nue.suse.com/~jalausuch/ovmf/ovmf-x86_64-unsupported+ms-$i.bin > /usr/share/qemu/ovmf-x86_64-unsupported+ms-$i.bin"; done
Actions #6

Updated by jlausuch 7 months ago

I have update the machine uefi-staging with the following variables:

UEFI_PFLASH_CODE=/usr/share/qemu/ovmf-x86_64-unsupported+ms-code.bin
UEFI_PFLASH_VARS=/usr/share/qemu/ovmf-x86_64-unsupported+ms-vars.bin

This is the machine that should be used in 6.0 and 6.1 stagings (maybe also 15-SP7).

Actions #8

Updated by okurz 7 months ago

  • Related to action #164982: Implement check that changes in https://progress.opensuse.org/issues/164150 are not used in official product added
Actions #9

Updated by okurz 7 months ago

I created https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/1245 to add staging OVMF image repositories.

Actions #10

Updated by jlausuch 4 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF