RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2125336 - Please add edk2-aarch64 and edk2-tools to CRB in RHEL 9
Summary: Please add edk2-aarch64 and edk2-tools to CRB in RHEL 9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: edk2
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Miroslav Rezanina
QA Contact: Xueqiang Wei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-08 16:31 UTC by Davide Cavalca
Modified: 2023-05-09 07:57 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 07:23:58 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELCMP-10007 0 None None None 2022-09-20 12:54:42 UTC
Red Hat Issue Tracker RHELPLAN-133563 0 None None None 2022-09-08 16:44:24 UTC
Red Hat Product Errata RHSA-2023:2165 0 None None None 2023-05-09 07:25:22 UTC

Description Davide Cavalca 2022-09-08 16:31:35 UTC
edk2-aarch64 and edk2-tools are currently unshipped packages. I'd like to request them to be added to CRB so that they can be made available in future releases.

Comment 1 Davide Cavalca 2022-09-08 16:31:47 UTC
RHEL 8 ticket: https://bugzilla.redhat.com/show_bug.cgi?id=2125335

Comment 2 Daniel Berrangé 2022-09-08 16:54:06 UTC
edk2-aarch64 is already shipped in AppStream repos, however, note it is only shipped on aarch64 hosts, since RHEL only supports KVM and thus doesn't need the firmware on non-native archs.

Comment 3 Davide Cavalca 2022-09-09 10:28:56 UTC
Would it be possible to ship edk2-aarch64 in AppStream for all architectures? As things stand, we have a bit of a conundrum, as we probably can't ship it via a -epel package as it would create a conflict (see https://src.fedoraproject.org/rpms/edk2-epel/pull-request/1 for a PoC of that approach), but we also can't gate it (as it's a noarch package). Based on the discussion in https://bugzilla.redhat.com/show_bug.cgi?id=2125333 I suspect SLOF might have a similar issue.

Comment 4 Davide Cavalca 2022-09-09 14:56:04 UTC
To summarize the discussion in #epel on this: edk2 is ExclusiveArch: x86_64 aarch64; the edk2-aarch64 subpackage is BuildArch: noarch and it gated to aarch64 only (via an %ifarch, for both the package and its build). This makes all known options to workaround this not tenable:
- we can't make it not shipped on aarch64 in EPEL, as it's a noarch package
- we can't make it arched and gate it out of aarch64, as it only builds on aarch64, so no package would be provided for x86_64 (plus, making this arched has the potential of causing other issues down the road)

The only option left is to either get this added to AppStream in EPEL for all arches, or to somehow gate it out of EPEL composes for noarch within the releng pipeline (I have no idea whether that's even possible though).

Comment 5 Davide Cavalca 2022-09-09 15:04:19 UTC
For clarity, the last sentence in the previous comment should read "The only option left is to either get this added to AppStream in RHEL for all arches"

Comment 6 Daniel Berrangé 2022-09-09 15:13:12 UTC
(In reply to Davide Cavalca from comment #3)
> Would it be possible to ship edk2-aarch64 in AppStream for all
> architectures? As things stand, we have a bit of a conundrum, as we probably
> can't ship it via a -epel package as it would create a conflict (see
> https://src.fedoraproject.org/rpms/edk2-epel/pull-request/1 for a PoC of
> that approach), but we also can't gate it (as it's a noarch package). Based
> on the discussion in https://bugzilla.redhat.com/show_bug.cgi?id=2125333 I
> suspect SLOF might have a similar issue.

This isn't a formal answer, but I think it is unlikely RHEL would be willing to ship edk2-aarch64 in AppStream for all archictures, because of the support criteria associated with shipping something in that channel. I think it would have to be in CRB to make it clear it is an unsupported deliverable on the arches, but I'm not sure if it is possible to have a package in AppStream on 1 arch, and CRB on all other arches.

Presumably there might also be a need for 'edk2-ovmf' to be shipped on non-x86_64 arches too for parity (it only ships in AppStream on x86_64 platforms), which will face the same problems.

Comment 7 Vivek Goyal 2022-09-13 19:43:58 UTC
(In reply to Davide Cavalca from comment #0)
> edk2-aarch64 and edk2-tools are currently unshipped packages. I'd like to
> request them to be added to CRB so that they can be made available in future
> releases.

Is there more to it. What's the justification for shipping those packages. And why CRB repo.

Comment 10 Davide Cavalca 2022-09-14 09:58:18 UTC
> Is there more to it. What's the justification for shipping those packages. And why CRB repo.

There's work in https://bugzilla.redhat.com/show_bug.cgi?id=1995353 to build qemu in EPEL 8, which would require these packages being available. The CentOS Hyperscale SIG is also working on updated qemu packaging (as an incubator for the work that will eventually be incorporated in that BZ), and that requires these packages. See https://src.fedoraproject.org/rpms/qemu/pull-request/28#comment-115808 for some more details on that effort.

Specifically: we need -ovmf and -aarch64 on all arches for qemu packages to be installable, and be need -tools as a BR to be able to rebuild ipxe-roms (among other things). As for why CRB: because that's usually where unshipped packaged get added per policy (https://wiki.centos.org/FAQ/CentOS8/UnshippedPackages); I would also be fine having these in AppStream.

Comment 11 Daniel Berrangé 2022-09-16 11:46:13 UTC
(In reply to Daniel Berrangé from comment #6)
> This isn't a formal answer, but I think it is unlikely RHEL would be willing
> to ship edk2-aarch64 in AppStream for all architectures, because of the
> support criteria associated with shipping something in that channel. I think
> it would have to be in CRB to make it clear it is an unsupported deliverable
> on the arches, but I'm not sure if it is possible to have a package in
> AppStream on 1 arch, and CRB on all other arches.

I've raised this internally and have got confirmation that it IS possible to
have a package shipped in AppStream on 1 arch and CRB on other arches, so
that is not a blocking problem in making a decision whether to support
this request.

Comment 16 Miroslav Rezanina 2022-09-20 12:54:42 UTC
Created jira request for this change: https://issues.redhat.com/browse/RHELCMP-10007

Comment 17 Josh Boyer 2022-10-20 16:55:19 UTC
This is available in CentOS Stream now.

Comment 18 Miroslav Rezanina 2022-10-25 14:17:43 UTC
Packages are part of RHEL composes too now.

Comment 20 Xueqiang Wei 2022-10-31 04:16:37 UTC
This is now fixed in the RHEL-9.2.0-20221023.0 or newer composes.

Check the related packages in the RHEL-9.2.0-20221023.0 compose, all work as expected. So set status to VERIFIED.


Details:

1. For x86_64 platform:
edk2-ovmf in AppStream repo,
http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.2.0-20221023.0/compose/AppStream/x86_64/os/Packages/

edk2-aarch64 and edk2-tools in CRB repo,
http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.2.0-20221023.0/compose/CRB/x86_64/os/Packages/edk2-aarch64-20220826gitba0e0e4c6a-1.el9.noarch.rpm
http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.2.0-20221023.0/compose/CRB/x86_64/os/Packages/edk2-tools-20220826gitba0e0e4c6a-1.el9.x86_64.rpm
http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.2.0-20221023.0/compose/CRB/x86_64/os/Packages/edk2-tools-doc-20220826gitba0e0e4c6a-1.el9.noarch.rpm


2. For aarch64 platform:
edk2-aarch64 in AppStream repo,
http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.2.0-20221023.0/compose/AppStream/aarch64/os/Packages/edk2-aarch64-20220826gitba0e0e4c6a-1.el9.noarch.rpm

edk2-ovmf and edk2-tools in CRB repo,
http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.2.0-20221023.0/compose/CRB/aarch64/os/Packages/edk2-ovmf-20220826gitba0e0e4c6a-1.el9.noarch.rpm
http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.2.0-20221023.0/compose/CRB/aarch64/os/Packages/edk2-tools-20220826gitba0e0e4c6a-1.el9.aarch64.rpm
http://download.eng.pek2.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.2.0-20221023.0/compose/CRB/aarch64/os/Packages/edk2-tools-doc-20220826gitba0e0e4c6a-1.el9.noarch.rpm


3. install the packages successfully.
# yum install edk2-*

====================================================================================================
 Package                  Arch       Version                         Repository                Size
====================================================================================================
Installing:
 edk2-aarch64             noarch     20220826gitba0e0e4c6a-1.el9     beaker-CRB               5.3 M
 edk2-debugsource         x86_64     20220826gitba0e0e4c6a-1.el9     beaker-CRB-debuginfo     411 k
 edk2-ovmf                noarch     20220826gitba0e0e4c6a-1.el9     beaker-AppStream         4.3 M
 edk2-tools               x86_64     20220826gitba0e0e4c6a-1.el9     beaker-CRB               421 k
 edk2-tools-debuginfo     x86_64     20220826gitba0e0e4c6a-1.el9     beaker-CRB-debuginfo     1.2 M
 edk2-tools-doc           noarch     20220826gitba0e0e4c6a-1.el9     beaker-CRB                89 k

Transaction Summary
====================================================================================================
Install  6 Packages

Comment 22 errata-xmlrpc 2023-05-09 07:23:58 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 (Important: edk2 security, bug fix, and enhancement update), 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/RHSA-2023:2165


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