Bug 2182746 - Allow ironic-python-agent to PXE booting with Secure Boot enabled
Summary: Allow ironic-python-agent to PXE booting with Secure Boot enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-ironic
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: OSP Team
QA Contact: Nobody
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-29 14:11 UTC by Vadim Khitrin
Modified: 2023-12-15 04:26 UTC (History)
3 users (show)

Fixed In Version: puppet-ironic-18.7.1-1.20230509201001.39ba8bc.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 01:14:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Dell UEFI0073 Error (49.10 KB, image/png)
2023-03-29 14:11 UTC, Vadim Khitrin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-23821 0 None None None 2023-03-29 14:13:13 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:15:11 UTC

Description Vadim Khitrin 2023-03-29 14:11:11 UTC
Created attachment 1954428 [details]
Dell UEFI0073 Error

Description of problem:
In an environment where secure boot is enabled, it is not possible to PXE boot (without custom policies) `ironic-python-agent` to perform introspection.
Users can introspect with secure boot disabled, enable secure boot (without custom policies) post introspection, and successfully provision using shipped RHEL hardened image.

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


How reproducible:
Always

Steps to Reproduce:
1. Enable secure boot in BIOS
2. Start baremetal node introspection 

Actual results:
Unable to PXE boot `ironic-python-agent` without custom secure boot policies.

Expected results:
`ironic-python-agent` is PXE bootable without custom secure boot policies.

Additional info:

Comment 2 Steve Baker 2023-03-30 21:41:58 UTC
The issue here is that the iPXE efi is not signed with the Red Hat key, and even if it was the boot would need to start with a shim efi to allow the Red Hat key without intervention.

Doing a grub network boot would allow end-to-end secure boot, since the boot execution order is shim -> grub -> ironic-python-agent. I have proposed this backport[1] to enable this in 17.1. Grub network boot is not as robust as grub local boot or iPXE network boot, so I don't think we can recommend this as a solution in all cases. If it works for particular scenarios it can be used.

If the iPXE efi was signed with the Red Hat key that would present more options. I'll raise a bz against the ipxe package. We could then explore the following:
- Customers can manually add the Red Hat key with a custom Secure Boot policy
- An enhancement request to shim to boot to something other than grubx64.efi
- Hackery to get shim to boot iPXE by renaming ipxe-snponly-x86_64.efi to grubx64.efi (I actually confirmed this works!)

[1] https://review.opendev.org/c/openstack/puppet-ironic/+/879087

Comment 13 errata-xmlrpc 2023-08-16 01:14:34 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 (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), 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/RHEA-2023:4577

Comment 14 Red Hat Bugzilla 2023-12-15 04:26:11 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.