Buildah installation instructions for RHEL8 are not working, at least not with official UBI8 images where attempting to run them gives:
yum module enable -y container-tools:1.0
missing groups or modules: container-tools:1.0
@lsm5 @fatherlinux PTAL
Any movement on this? @lsm5 @fatherlinux
I'm seeing this on ubi8 docker images.
We prefer to call them container images :^)
@jnovy PTAL
@ssbarnea at this time, we don't have any movement on this. If you need Buildah on UBI, I suggest using a subscribed Red Hat Enterprise Linux subscription, which will allow you to do this. We are targeting an official Buildah image for the quarterly release in between RHEL 8.1 and RHEL 8.2, but it will not be released with the UBI EULA. I am still gathering customer requirements on redistribution and trying to build a business case on why/if buildah/skopeo/podman should be released under the UBI EULA.
Any info you can give me on your use case would really help us make a better decision...
My company are currently using Docker in Docker build slaves on openshift to build container images. This has been quite complex to set up and unstable to operate.
I was investigating whether buildah/podman would be simpler and more reliable. Given that it appears the resulting images are compatible it seemed like an easy win.
The alternative I'm now looking at is source-2-image, but I'd obviously be keen to avoid depending on OpenShift to create containers which is quite a seperate issue really.
Seems we have a releng issue with 1.0 stream. I was able to reproduce this. But only with 1.0 stream. The rhel8 stream finishes successfully with:
# yum module enable container-tools:rhel8
Updating Subscription Management repositories.
Last metadata expiration check: 0:05:05 ago on Tue 27 Aug 2019 04:44:03 AM EDT.
Dependencies resolved.
Nothing to do.
Complete!
Switching module streams does not alter installed packages (see 'module enable' in dnf(8) for details)
I will follow-up internally with rel-eng to clarify this.
Didn't worked on RHEL 8.1, error mentioned below
cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.1 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.1"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.1 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.1:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.1
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.1"
STEPS FOLLOWED:-
# sudo su -
# dnf module reset container-tools:1.0
# yum module enable -y container-tools:1.0
# yum module install -y buildah
Last metadata expiration check: 0:17:36 ago on Mon 30 Mar 2020 11:49:21 AM UTC.
Error: Problems in request:
missing groups or modules: buildah
_Note:- Commands are after hash(#)._
Appreciate your assistance.
Thanks,
Sumedh Alshi
This is not a buildah issue, but an issue with a distribution, Please open a bugzilla with the distro for this fix, if it has not been fixed yet.
Hello, I still see this issue with the UBI 8 buildah image. Was there ever a bugzilla created to follow up?
I do not see the container-tools in dnf module list.
The buildah image is not in the ubi8 namespace, but in the entitled registry in the rhel8 namespace only available to fully entitled RHEL customers. The container-tools modules are also only available in the entitled RHEL repositories, not the publicly accessible ubi repositories.
@lazy-developer you have a bug in your commands as well, in that you want to use 'yum install -y buildah' after enabling the container-tools:1.0 module. Not 'yum module install'. Here's an example of this working inside of a ubi8 container on a fully entitled RHEL 8.3 machine:
[jwboyer@vader data2]$ podman run -it --rm ubi8
Trying to pull registry.access.redhat.com/ubi8...
Getting image source signatures
Copying blob d9e72d058dc5 [--------------------------------------] 0.0b / 0.0b
Copying blob cca21acb641a [--------------------------------------] 0.0b / 0.0b
Copying config 3269c37eae done
Writing manifest to image destination
Storing signatures
[root@ff9c6c07039b /]# yum module enable -y container-tools:1.0
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS 15 MB/s | 26 MB 00:01
Red Hat Enterprise Linux 8 for x86_64 - AppStre 14 MB/s | 25 MB 00:01
Red Hat Universal Base Image 8 (RPMs) - BaseOS 965 kB/s | 773 kB 00:00
Red Hat Universal Base Image 8 (RPMs) - AppStre 889 kB/s | 4.9 MB 00:05
Red Hat Universal Base Image 8 (RPMs) - CodeRea 25 kB/s | 13 kB 00:00
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Enabling module streams:
container-tools 1.0
Transaction Summary
================================================================================
Complete!
[root@ff9c6c07039b /]# yum install -y buildah
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Last metadata expiration check: 0:00:19 ago on Fri Dec 18 17:08:48 2020.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
buildah x86_64 1.5-8.gite94b4f9.module+el8.3.0+8236+8e428216
rhel-8-for-x86_64-appstream-rpms 5.7 M
Installing dependencies:
checkpolicy x86_64 2.9-1.el8 rhel-8-for-x86_64-baseos-rpms 346 k
container-selinux noarch 2:2.124.0-1.gitf958d0c.module+el8.3.0+8236+8e428216
rhel-8-for-x86_64-appstream-rpms 45 k
containers-common x86_64 1:0.1.32-6.git1715c90.module+el8.3.0+8236+8e428216
rhel-8-for-x86_64-appstream-rpms 32 k
criu x86_64 3.12-9.module+el8.3.0+8236+8e428216
rhel-8-for-x86_64-appstream-rpms 482 k
diffutils x86_64 3.6-6.el8 rhel-8-for-x86_64-baseos-rpms 359 k
fuse3-libs x86_64 3.2.1-12.el8 rhel-8-for-x86_64-baseos-rpms 94 k
libnet x86_64 1.1.6-15.el8 rhel-8-for-x86_64-appstream-rpms 67 k
libselinux-utils x86_64 2.9-4.el8_3 rhel-8-for-x86_64-baseos-rpms 243 k
ostree-libs x86_64 2020.5-4.el8 rhel-8-for-x86_64-appstream-rpms 414 k
policycoreutils x86_64 2.9-9.el8 rhel-8-for-x86_64-baseos-rpms 377 k
policycoreutils-python-utils
noarch 2.9-9.el8 rhel-8-for-x86_64-baseos-rpms 251 k
protobuf-c x86_64 1.3.0-4.el8 rhel-8-for-x86_64-appstream-rpms 37 k
python3-audit x86_64 3.0-0.17.20191104git1c2f876.el8
rhel-8-for-x86_64-baseos-rpms 86 k
python3-libselinux x86_64 2.9-4.el8_3 rhel-8-for-x86_64-baseos-rpms 283 k
python3-libsemanage
x86_64 2.9-3.el8 rhel-8-for-x86_64-baseos-rpms 127 k
python3-policycoreutils
noarch 2.9-9.el8 rhel-8-for-x86_64-baseos-rpms 2.2 M
python3-setools x86_64 4.3.0-2.el8 rhel-8-for-x86_64-baseos-rpms 626 k
rpm-plugin-selinux x86_64 4.14.3-4.el8 rhel-8-for-x86_64-baseos-rpms 75 k
runc x86_64 1.0.0-56.rc5.dev.git2abd837.module+el8.3.0+8236+8e428216
rhel-8-for-x86_64-appstream-rpms 2.5 M
selinux-policy noarch 3.14.3-54.el8 rhel-8-for-x86_64-baseos-rpms 622 k
selinux-policy-targeted
noarch 3.14.3-54.el8 rhel-8-for-x86_64-baseos-rpms 15 M
Installing weak dependencies:
fuse-overlayfs x86_64 0.3-5.module+el8.3.0+8236+8e428216
rhel-8-for-x86_64-appstream-rpms 48 k
slirp4netns x86_64 0.1-5.dev.gitc4e1bc5.module+el8.3.0+8236+8e428216
rhel-8-for-x86_64-appstream-rpms 55 k
Transaction Summary
================================================================================
Install 24 Packages
Total download size: 30 M
Installed size: 94 M
Downloading Packages:
(1/24): fuse3-libs-3.2.1-12.el8.x86_64.rpm 216 kB/s | 94 kB 00:00
(2/24): checkpolicy-2.9-1.el8.x86_64.rpm 710 kB/s | 346 kB 00:00
(3/24): policycoreutils-python-utils-2.9-9.el8. 2.4 MB/s | 251 kB 00:00
(4/24): diffutils-3.6-6.el8.x86_64.rpm 1.9 MB/s | 359 kB 00:00
(5/24): python3-policycoreutils-2.9-9.el8.noarc 3.4 MB/s | 2.2 MB 00:00
(6/24): policycoreutils-2.9-9.el8.x86_64.rpm 2.6 MB/s | 377 kB 00:00
(7/24): python3-libsemanage-2.9-3.el8.x86_64.rp 1.4 MB/s | 127 kB 00:00
(8/24): python3-audit-3.0-0.17.20191104git1c2f8 662 kB/s | 86 kB 00:00
(9/24): selinux-policy-3.14.3-54.el8.noarch.rpm 4.1 MB/s | 622 kB 00:00
(10/24): python3-setools-4.3.0-2.el8.x86_64.rpm 3.0 MB/s | 626 kB 00:00
(11/24): rpm-plugin-selinux-4.14.3-4.el8.x86_64 568 kB/s | 75 kB 00:00
(12/24): python3-libselinux-2.9-4.el8_3.x86_64. 2.3 MB/s | 283 kB 00:00
(13/24): libselinux-utils-2.9-4.el8_3.x86_64.rp 2.0 MB/s | 243 kB 00:00
(14/24): libnet-1.1.6-15.el8.x86_64.rpm 646 kB/s | 67 kB 00:00
(15/24): protobuf-c-1.3.0-4.el8.x86_64.rpm 474 kB/s | 37 kB 00:00
(16/24): container-selinux-2.124.0-1.gitf958d0c 316 kB/s | 45 kB 00:00
(17/24): slirp4netns-0.1-5.dev.gitc4e1bc5.modul 551 kB/s | 55 kB 00:00
(18/24): selinux-policy-targeted-3.14.3-54.el8. 20 MB/s | 15 MB 00:00
(19/24): containers-common-0.1.32-6.git1715c90. 408 kB/s | 32 kB 00:00
(20/24): fuse-overlayfs-0.3-5.module+el8.3.0+82 575 kB/s | 48 kB 00:00
(21/24): buildah-1.5-8.gite94b4f9.module+el8.3. 14 MB/s | 5.7 MB 00:00
(22/24): criu-3.12-9.module+el8.3.0+8236+8e4282 4.0 MB/s | 482 kB 00:00
(23/24): ostree-libs-2020.5-4.el8.x86_64.rpm 4.7 MB/s | 414 kB 00:00
(24/24): runc-1.0.0-56.rc5.dev.git2abd837.modul 13 MB/s | 2.5 MB 00:00
--------------------------------------------------------------------------------
Total 17 MB/s | 30 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : python3-libselinux-2.9-4.el8_3.x86_64 1/24
Installing : libselinux-utils-2.9-4.el8_3.x86_64 2/24
Installing : python3-libsemanage-2.9-3.el8.x86_64 3/24
Installing : python3-setools-4.3.0-2.el8.x86_64 4/24
Installing : ostree-libs-2020.5-4.el8.x86_64 5/24
Installing : slirp4netns-0.1-5.dev.gitc4e1bc5.module+el8.3.0+82 6/24
Installing : protobuf-c-1.3.0-4.el8.x86_64 7/24
Installing : libnet-1.1.6-15.el8.x86_64 8/24
Running scriptlet: libnet-1.1.6-15.el8.x86_64 8/24
Installing : criu-3.12-9.module+el8.3.0+8236+8e428216.x86_64 9/24
Installing : python3-audit-3.0-0.17.20191104git1c2f876.el8.x86_ 10/24
Installing : diffutils-3.6-6.el8.x86_64 11/24
Running scriptlet: diffutils-3.6-6.el8.x86_64 11/24
Installing : policycoreutils-2.9-9.el8.x86_64 12/24
Running scriptlet: policycoreutils-2.9-9.el8.x86_64 12/24
Installing : rpm-plugin-selinux-4.14.3-4.el8.x86_64 13/24
Installing : selinux-policy-3.14.3-54.el8.noarch 14/24
Running scriptlet: selinux-policy-3.14.3-54.el8.noarch 14/24
Running scriptlet: selinux-policy-targeted-3.14.3-54.el8.noarch 15/24
Installing : selinux-policy-targeted-3.14.3-54.el8.noarch 15/24
Running scriptlet: selinux-policy-targeted-3.14.3-54.el8.noarch 15/24
Installing : checkpolicy-2.9-1.el8.x86_64 16/24
Installing : python3-policycoreutils-2.9-9.el8.noarch 17/24
Installing : policycoreutils-python-utils-2.9-9.el8.noarch 18/24
Running scriptlet: container-selinux-2:2.124.0-1.gitf958d0c.module+el 19/24
Installing : container-selinux-2:2.124.0-1.gitf958d0c.module+el 19/24
Running scriptlet: container-selinux-2:2.124.0-1.gitf958d0c.module+el 19/24
Installing : runc-1.0.0-56.rc5.dev.git2abd837.module+el8.3.0+82 20/24
Installing : fuse3-libs-3.2.1-12.el8.x86_64 21/24
Running scriptlet: fuse3-libs-3.2.1-12.el8.x86_64 21/24
Installing : fuse-overlayfs-0.3-5.module+el8.3.0+8236+8e428216. 22/24
Installing : containers-common-1:0.1.32-6.git1715c90.module+el8 23/24
Installing : buildah-1.5-8.gite94b4f9.module+el8.3.0+8236+8e428 24/24
Running scriptlet: container-selinux-2:2.124.0-1.gitf958d0c.module+el 24/24
Running scriptlet: buildah-1.5-8.gite94b4f9.module+el8.3.0+8236+8e428 24/24
Verifying : fuse3-libs-3.2.1-12.el8.x86_64 1/24
Verifying : checkpolicy-2.9-1.el8.x86_64 2/24
Verifying : python3-policycoreutils-2.9-9.el8.noarch 3/24
Verifying : diffutils-3.6-6.el8.x86_64 4/24
Verifying : policycoreutils-python-utils-2.9-9.el8.noarch 5/24
Verifying : policycoreutils-2.9-9.el8.x86_64 6/24
Verifying : python3-audit-3.0-0.17.20191104git1c2f876.el8.x86_ 7/24
Verifying : python3-libsemanage-2.9-3.el8.x86_64 8/24
Verifying : selinux-policy-3.14.3-54.el8.noarch 9/24
Verifying : selinux-policy-targeted-3.14.3-54.el8.noarch 10/24
Verifying : python3-setools-4.3.0-2.el8.x86_64 11/24
Verifying : rpm-plugin-selinux-4.14.3-4.el8.x86_64 12/24
Verifying : python3-libselinux-2.9-4.el8_3.x86_64 13/24
Verifying : libselinux-utils-2.9-4.el8_3.x86_64 14/24
Verifying : libnet-1.1.6-15.el8.x86_64 15/24
Verifying : protobuf-c-1.3.0-4.el8.x86_64 16/24
Verifying : buildah-1.5-8.gite94b4f9.module+el8.3.0+8236+8e428 17/24
Verifying : container-selinux-2:2.124.0-1.gitf958d0c.module+el 18/24
Verifying : slirp4netns-0.1-5.dev.gitc4e1bc5.module+el8.3.0+82 19/24
Verifying : containers-common-1:0.1.32-6.git1715c90.module+el8 20/24
Verifying : fuse-overlayfs-0.3-5.module+el8.3.0+8236+8e428216. 21/24
Verifying : criu-3.12-9.module+el8.3.0+8236+8e428216.x86_64 22/24
Verifying : runc-1.0.0-56.rc5.dev.git2abd837.module+el8.3.0+82 23/24
Verifying : ostree-libs-2020.5-4.el8.x86_64 24/24
Installed products updated.
Installed:
buildah-1.5-8.gite94b4f9.module+el8.3.0+8236+8e428216.x86_64
checkpolicy-2.9-1.el8.x86_64
container-selinux-2:2.124.0-1.gitf958d0c.module+el8.3.0+8236+8e428216.noarch
containers-common-1:0.1.32-6.git1715c90.module+el8.3.0+8236+8e428216.x86_64
criu-3.12-9.module+el8.3.0+8236+8e428216.x86_64
diffutils-3.6-6.el8.x86_64
fuse-overlayfs-0.3-5.module+el8.3.0+8236+8e428216.x86_64
fuse3-libs-3.2.1-12.el8.x86_64
libnet-1.1.6-15.el8.x86_64
libselinux-utils-2.9-4.el8_3.x86_64
ostree-libs-2020.5-4.el8.x86_64
policycoreutils-2.9-9.el8.x86_64
policycoreutils-python-utils-2.9-9.el8.noarch
protobuf-c-1.3.0-4.el8.x86_64
python3-audit-3.0-0.17.20191104git1c2f876.el8.x86_64
python3-libselinux-2.9-4.el8_3.x86_64
python3-libsemanage-2.9-3.el8.x86_64
python3-policycoreutils-2.9-9.el8.noarch
python3-setools-4.3.0-2.el8.x86_64
rpm-plugin-selinux-4.14.3-4.el8.x86_64
runc-1.0.0-56.rc5.dev.git2abd837.module+el8.3.0+8236+8e428216.x86_64
selinux-policy-3.14.3-54.el8.noarch
selinux-policy-targeted-3.14.3-54.el8.noarch
slirp4netns-0.1-5.dev.gitc4e1bc5.module+el8.3.0+8236+8e428216.x86_64
Complete!
[root@ff9c6c07039b /]#
Most helpful comment
We prefer to call them
container images:^)