-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-10.1
-
None
-
No
-
None
-
rhel-image-mode
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
When trying to create a testing image including golang-tests rpm package using images.paas.redhat.com/bootc/rhel-bootc:latest-10.1 (which contains bootc-1.5.1-2.el10), bootc install fails with the following:
[root@vm-10-0-187-126 tmp]# cp -r /etc/yum.repos.d/ . [root@vm-10-0-187-126 tmp]# cp /etc/resolv.conf . [root@vm-10-0-187-126 tmp]# cat Containerfile FROM images.paas.redhat.com/bootc/rhel-bootc:latest-10.1 COPY resolv.conf /etc/resolv.conf COPY yum.repos.d/* /etc/yum.repos.d RUN touch /var/tmp/bootc_test_prepare-rebooted && dnf -y install --nogpgcheck golang-tests && ( [ -z "" ] || dnf -y debuginfo-install --nogpgcheck ) && ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants RUN bootc container lint [root@vm-10-0-187-126 tmp]# podman build --layers=false -t localhost/bootc_setup_image . STEP 1/5: FROM images.paas.redhat.com/bootc/rhel-bootc:latest-10.1 STEP 2/5: COPY resolv.conf /etc/resolv.conf STEP 3/5: COPY yum.repos.d/* /etc/yum.repos.d STEP 4/5: RUN touch /var/tmp/bootc_test_prepare-rebooted && dnf -y install --nogpgcheck golang-tests && ( [ -z "" ] || dnf -y debuginfo-install --nogpgcheck ) && ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register. Beaker Client - RedHatEnterpriseLinux10 22 kB/s | 2.7 kB 00:00 Beaker harness 165 kB/s | 21 kB 00:00 Copr repo for beakerlib-libraries owned by bgon 49 kB/s | 889 B 00:00 Copr repo for qa-tools owned by lpol 907 kB/s | 21 kB 00:00 rhel 54 MB/s | 1.5 MB 00:00 rhel-AppStream 86 MB/s | 1.5 MB 00:00 rhel-HighAvailability 1.7 MB/s | 15 kB 00:00 rhel-HighAvailability-debuginfo 659 kB/s | 5.0 kB 00:00 rhel-NFV 64 MB/s | 814 kB 00:00 rhel-NFV-debuginfo 151 kB/s | 1.3 kB 00:00 rhel-RT 56 MB/s | 814 kB 00:00 rhel-RT-debuginfo 171 kB/s | 1.3 kB 00:00 rhel-SAP 473 kB/s | 4.1 kB 00:00 rhel-SAP-debuginfo 164 kB/s | 1.2 kB 00:00 rhel-SAPHANA 531 kB/s | 4.7 kB 00:00 rhel-SAPHANA-debuginfo 169 kB/s | 1.2 kB 00:00 Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: golang-tests noarch 1.24.6-1.el10 rhel-AppStream 12 M Installing dependencies: apr x86_64 1.7.5-2.el10 rhel-AppStream 132 k apr-util x86_64 1.6.3-21.el10 rhel-AppStream 101 k cpp x86_64 14.3.1-2.1.el10 rhel-AppStream 13 M (...) Complete! STEP 5/5: RUN bootc container lint Lint warning: var-log: Found non-empty logfiles: /var/log/dnf.librepo.log /var/log/dnf.log /var/log/dnf.rpm.log /var/log/hawkey.log /var/log/rhsm/rhsm.log Lint warning: var-tmpfiles: Found content in /var missing systemd tmpfiles.d entries: d /var/cache/dnf/beaker-client-2669c8e8d0410e9b 0755 root root - - d /var/cache/dnf/beaker-client-2669c8e8d0410e9b/repodata 0755 root root - - d /var/cache/dnf/beaker-harness-1b360430c649bdc3 0755 root root - - d /var/cache/dnf/beaker-harness-1b360430c649bdc3/repodata 0755 root root - - d /var/cache/dnf/beakerlib-libraries-0bffd22535aea8a4 0755 root root - - ...and 30 more Found non-directory/non-symlink files in /var: var/lib/rhsm/repo_server_val/redhat.repo var/lib/rhsm/productid.js var/lib/rhsm/cache/productid_repo_mapping.json var/lib/dnf/history.sqlite var/lib/dnf/history.sqlite-wal ...and 73 more Checks passed: 10 Checks skipped: 1 Warnings: 2 COMMIT localhost/bootc_setup_image Getting image source signatures Copying blob 95c82a67fbe3 skipped: already exists (...) Copying blob 3e92dc1357f8 skipped: already exists Copying blob 87f1b068920f done | Copying config 5f72a084cf done | Writing manifest to image destination --> 5f72a084cf34 Successfully tagged localhost/bootc_setup_image:latest 5f72a084cf345ecd0cbb05df232e368e3a133f8dfadcb3016363996506e83a58 [root@vm-10-0-187-126 tmp]# podman run --rm --tls-verify=false --privileged --pid=host -v /:/target -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v /root/.ssh:/output --security-opt label=type:unconfined_t localhost/bootc_setup_image:latest bootc install to-existing-root --target-transport containers-storage Installing image: ostree-unverified-image:containers-storage:localhost/bootc_setup_image:latest Digest: sha256:4195f4ceb1c4f92fb38067b12ab91baa3cb776c22156164af62e326673cb80cd ---------------------------- WARNING: This operation will OVERWRITE THE BOOTED HOST ROOT FILESYSTEM and is NOT REVERSIBLE. Waiting 20s to continue; interrupt (Control-C) to cancel. ---------------------------- Reusing extant ostree layout layers already present: 66; layers needed: 1 (649.7 MB) error: Installing to filesystem: Creating ostree deployment: Pulling: Importing: Parsing layer blob sha256:87f1b068920fa8de7f1f87f4f4a8818e4becf8526bb80d0659831404951a82ad: error: Pathname can't be converted from UTF-8 to current locale.: Processing tar: Failed to commit tar: ExitStatus(unix_wait_status(256))
It can be worked around by setting LC_ALL:
[root@vm-10-0-187-126 tmp]# podman run --rm --tls-verify=false --privileged --pid=host -v /:/target -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v /root/.ssh:/output --security-opt label=type:unconfined_t localhost/bootc_setup_image:latest locale LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= [root@vm-10-0-187-126 tmp]# podman run -e LC_ALL=C.UTF-8 --rm --tls-verify=false --privileged --pid=host -v /:/target -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v /root/.ssh:/output --security-opt label=type:unconfined_t localhost/bootc_setup_image:latest bootc install to-existing-root --target-transport containers-storage Installing image: ostree-unverified-image:containers-storage:localhost/bootc_setup_image:latest Digest: sha256:4195f4ceb1c4f92fb38067b12ab91baa3cb776c22156164af62e326673cb80cd ---------------------------- WARNING: This operation will OVERWRITE THE BOOTED HOST ROOT FILESYSTEM and is NOT REVERSIBLE. Waiting 20s to continue; interrupt (Control-C) to cancel. ---------------------------- Reusing extant ostree layout layers already present: 66; layers needed: 1 (649.7 MB) Deploying container image...done (11 seconds) Running bootupctl to install bootloader > bootupctl backend install --write-uuid --update-firmware --auto --device /dev/vda /target Added 01_users.cfg Added 10_blscfg.cfg Added 14_menu_show_once.cfg Added 30_uefi-firmware.cfg Added 41_custom.cfg Installed: grub.cfg Installed: bootuuid.cfg Installation complete! [root@vm-10-0-187-126 tmp]#