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 2142494 - buildah installation includes runc as a dependency [RHEL 9.2]
Summary: buildah installation includes runc as a dependency [RHEL 9.2]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: buildah
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Joy Pu
URL:
Whiteboard:
Depends On:
Blocks: 2150525
TreeView+ depends on / blocked
 
Reported: 2022-11-14 08:43 UTC by Aviad Nahtomi
Modified: 2023-05-09 08:45 UTC (History)
8 users (show)

Fixed In Version: buildah-1.28.0-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2150525 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:39:04 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-139252 0 None None None 2022-11-14 08:56:47 UTC
Red Hat Product Errata RHSA-2023:2253 0 None None None 2023-05-09 07:53:15 UTC

Description Aviad Nahtomi 2022-11-14 08:43:57 UTC
Description of problem:
While 'crun' is the default runtime, when installing 'buildah' it still marks the 'runc' package as a dependency, thus installing both runtime packages.


Version-Release number of selected component (if applicable):
buildah-1.26.X (GA)
buildah-1.27.X (9.1 Beta)


How reproducible:
Fully


Steps to Reproduce:
1. Create RHEL 9.0 GA / 9.1 Beta virtual machine
2. Run the "repoquery" command:
~~~
  # dnf repoquery --requires buildah | grep -i run
Last metadata expiration check: 0:01:16 ago on Mon 14 Nov 2022 09:16:43 AM IST.
runc >= 1.0.0-26
~~~
3. Install 'buildah' and examine the installed packages:
~~~
 # dnf install buildah
...
Installing:
 buildah                        x86_64   1:1.26.2-1.el9_0       rhel-9-for-x86_64-appstream-rpms   7.9 M
Installing dependencies:
 checkpolicy                    x86_64   3.3-1.el9              rhel-9-for-x86_64-appstream-rpms   343 k
...
 crun                           x86_64   1.4.5-2.el9_0          rhel-9-for-x86_64-appstream-rpms   189 k
...
 runc     
~~~


Actual results:
The 'runc' package is marked as a dependency and installed (along with the default 'crun').


Expected results:
Do not install 'runc'


Additional info:
A similar bug (BZ #2092798) has occurred in 'podman' and has been resolved.
A merge request has already been submitted on Git by the reporting customer:
 Don't require runc and Recommends: crun - https://gitlab.com/redhat/centos-stream/rpms/buildah/-/merge_requests/140

Comment 2 Jindrich Novy 2022-11-14 09:50:44 UTC
Yes, this one needs ot be fixed.

Comment 4 Joy Pu 2022-11-18 03:43:38 UTC
Checked with  buildah-1.28.0-2.el9.x86_64.rpm it is already changed to oci-runtime and will install crun in RHEL 9 system. So add Tested flag.
# yum install buildah-1.28.0-2.el9.x86_64.rpm
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 2:15:48 ago on Thu 17 Nov 2022 08:26:34 PM EST.
Dependencies resolved.
==================================================================================================================================================
 Package                               Architecture               Version                              Repository                            Size
==================================================================================================================================================
Installing:
 buildah                               x86_64                     1:1.28.0-2.el9                       @commandline                         7.9 M
Installing dependencies:
 container-selinux                     noarch                     3:2.191.0-1.el9                      beaker-AppStream                      48 k
 containers-common                     x86_64                     2:1-46.el9                           beaker-AppStream                     110 k
 criu                                  x86_64                     3.17-4.el9                           beaker-AppStream                     544 k
 criu-libs                             x86_64                     3.17-4.el9                           beaker-AppStream                      32 k
 crun                                  x86_64                     1.5-1.el9                            beaker-AppStream                     188 k
 fuse3                                 x86_64                     3.10.2-5.el9                         beaker-AppStream                      53 k
 fuse3-libs                            x86_64                     3.10.2-5.el9                         beaker-AppStream                      91 k
 libnet                                x86_64                     1.2-6.el9                            beaker-AppStream                      58 k
 libslirp                              x86_64                     4.4.0-7.el9                          beaker-AppStream                      68 k
 netavark                              x86_64                     2:1.1.0-6.el9                        beaker-AppStream                     2.1 M
 protobuf-c                            x86_64                     1.3.3-12.el9                         beaker-BaseOS                         35 k
 slirp4netns                           x86_64                     1.2.0-2.el9                          beaker-AppStream                      46 k
 yajl                                  x86_64                     2.1.0-21.el9                         beaker-AppStream                      37 k
Installing weak dependencies:
 aardvark-dns                          x86_64                     2:1.1.0-4.el9                        beaker-AppStream                     996 k
 fuse-overlayfs                        x86_64                     1.9-1.el9                            beaker-AppStream                      71 k

Transaction Summary
==================================================================================================================================================
Install  16 Packages

Total size: 12 M
Total download size: 4.4 M
Installed size: 42 M
Is this ok [y/N]:

Comment 7 Joy Pu 2022-11-28 15:59:54 UTC
Test with buildah-1.28.2-1.el9.x86_64.rpm and the runtime installed with dependency is already changed to crun, so move it to verified:

# yum install buildah-1.28.2-1.el9.x86_64.rpm 
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:36:05 ago on Mon 28 Nov 2022 10:21:50 AM EST.
Dependencies resolved.
==================================================================================================================================================
 Package                               Architecture               Version                              Repository                            Size
==================================================================================================================================================
Installing:
 buildah                               x86_64                     1:1.28.2-1.el9                       @commandline                         7.9 M
Installing dependencies:
 container-selinux                     noarch                     3:2.191.0-1.el9                      beaker-AppStream                      53 k
 containers-common                     x86_64                     2:1-46.el9                           beaker-AppStream                     119 k
 criu                                  x86_64                     3.17-4.el9                           beaker-AppStream                     547 k
 criu-libs                             x86_64                     3.17-4.el9                           beaker-AppStream                      34 k
 crun                                  x86_64                     1.5-1.el9                            beaker-AppStream                     191 k
 fuse3                                 x86_64                     3.10.2-5.el9                         beaker-AppStream                      58 k

Comment 12 errata-xmlrpc 2023-05-09 07:39:04 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 (Moderate: buildah security and bug fix 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:2253

Comment 13 errata-xmlrpc 2023-05-09 07:53:04 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 (Moderate: buildah security and bug fix 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:2253


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