Bug 2142494

Summary: buildah installation includes runc as a dependency [RHEL 9.2]
Product: Red Hat Enterprise Linux 9 Reporter: Aviad Nahtomi <anahtomi>
Component: buildahAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Joy Pu <ypu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.1CC: jnovy, lsm5, mboddu, pthomas, snanda, tsweeney, umohnani, ypu
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: buildah-1.28.0-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2150525 (view as bug list) Environment:
Last Closed: 2023-05-09 07:39:04 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: 2150525    

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