Bug 2063830

Summary: [RHEL for Edge] Path to root certificates for FIDO provisioning is wrong
Product: Red Hat Enterprise Linux 9 Reporter: Antonio Murdaca <amurdaca>
Component: osbuild-composerAssignee: Image Builder team <osbuilders>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: jrusz, obudai, pvlasin, yih
Target Milestone: rcKeywords: Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: osbuild-composer-46.2-1.el9_0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2063832 2065403 (view as bug list) Environment:
Last Closed: 2022-05-17 13:30:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2063832, 2065403    

Description Antonio Murdaca 2022-03-14 13:34:25 UTC
Description of problem:

Creating a simplified installer with "diun_pub_key_root_certs" creates a grub cmdline containing

fdo.diun_pub_key_root_certs=/fdo_diun_root_certs.pem

The problem is the osbuild stage that writes down the root cert writes with a different name: /fdo_diun_pub_key_root_certs.pem

The installation just fails and hangs because it cannot provision the device

The fix is pretty easy and it's already available to be merged upstream here https://github.com/osbuild/osbuild-composer/pull/2434

The workaround is to manually edit the grub cmdline to fix the cert name


Version-Release number of selected component (if applicable):


How reproducible:

always


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Yi He 2022-03-14 15:07:06 UTC
Verified the workaround, it works.

Use this blueprint with diun cert to compose a simplified-installer image:

[root@yih-rhel86 images]# composer-cli blueprints show fdocert 
name = "fdocert"
description = "A rhel-edge simplified-installer image"
version = "0.0.1"
packages = []
modules = []
groups = []
distro = ""

[customizations]
installation_device = "/dev/vda"
[customizations.fdo]
manufacturing_server_url = "http://www.testfdo.com:8080"
diun_pub_key_root_certs = "-----BEGIN CERTIFICATE-----
*********Content of DIUN CERT********************
-----END CERTIFICATE-----"

And after the provision started, connect to console and press E and change the grub command line to diun_pub_key_root_certs, the provision is successful.

Comment 4 Yi He 2022-03-15 04:43:46 UTC
Verified in scratch build https://github.com/osbuild/osbuild-composer/pull/2434, can compose diun_pub_key_root_certs image and provision it successfully.

Comment 12 errata-xmlrpc 2022-05-17 13:30:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: osbuild-composer), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2522