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 1811762 - rootless: failed to build sleepy container images
Summary: rootless: failed to build sleepy container images
Keywords:
Status: CLOSED DUPLICATE of bug 1811759
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: fuse-overlayfs
Version: 7.8
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks: 1186913
TreeView+ depends on / blocked
 
Reported: 2020-03-09 17:31 UTC by Alex Jia
Modified: 2023-10-06 19:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-04 07:12:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alex Jia 2020-03-09 17:31:05 UTC
Description of problem:
Failed to build sleepy container images in fuse-overlayfs-0.7.2-6.el7_8.x86_64 w/ buildah-1.11.6-8.el7_8.x86_64.

Version-Release number of selected component (if applicable):
[root@hpe-bl460cgen8-01 ~]# rpm -q fuse-overlayfs buildah 
fuse-overlayfs-0.7.2-6.el7_8.x86_64
buildah-1.11.6-8.el7_8.x86_64

How reproducible:
always

Steps to Reproduce:
1. $ git clone https://gitlab.com/acdingman/sleepy-container.git
2. $ buildah bud -t sleepy:rhel8.1 sleepy-container

Actual results:

[ajia@hpe-bl460cgen8-01 ~]$ id
uid=1001(ajia) gid=1001(ajia) groups=1001(ajia) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[ajia@hpe-bl460cgen8-01 ~]$ podman unshare cat /proc/self/uid_map 
         0       1001          1
         1     165536      65536

[ajia@hpe-bl460cgen8-01 ~]$ git clone https://gitlab.com/acdingman/sleepy-container.git
Cloning into 'sleepy-container'...
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 15 (delta 3), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (15/15), done.
[ajia@hpe-bl460cgen8-01 ~]$ buildah bud -t sleepy:rhel8.1 sleepy-container
-bash: buildah: command not found
[ajia@hpe-bl460cgen8-01 ~]$ buildah bud -t sleepy:rhel8.1 sleepy-container
STEP 1: FROM registry.access.redhat.com/ubi8/ubi
Getting image source signatures
Copying blob 941e1e2b31a8 done
Copying blob 0bb54aa5e977 done
Copying config 0c46e5c7a8 done
Writing manifest to image destination
Storing signatures
STEP 2: USER root
STEP 3: ENV SRVUSR=sleepy
STEP 4: ENV SRVGRP=sleepy
STEP 5: LABEL maintainer="Me <me>"
STEP 6: LABEL description="A trivial Dockerfile to reproduce failure to add service users in rootless buildah/podman"
STEP 7: LABEL io.k8s.description="A trivial Dockerfile to reproduce failure to add service users in rootless buildah/podman"
STEP 8: LABEL io.k8s.dispaly-name="User fail on RHEL UBI 8"
STEP 9: ENV YUM="yum -y --disablerepo=rhel*"
STEP 10: ADD sleepy /usr/local/bin
STEP 11: ADD sleepy.conf /etc
STEP 12: RUN groupadd -r ${SRVGRP} || true
STEP 13: RUN useradd -r -g ${SRVGRP} ${SRVUSR} || true
STEP 14: RUN chmod +x /usr/local/bin/sleepy || true
STEP 15: RUN chown root:${SRVGRP} /etc/sleepy.conf ; chmod 640 /etc/sleepy.conf || true
STEP 16: RUN mkdir /var/local/sleepy
STEP 17: RUN chmod 2750 /var/local/sleepy && chown ${SRVUSR}:${SRVGRP} /var/local/sleepy || true
STEP 18: RUN ${YUM} install procps-ng iproute nmap-ncat
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
No repository match: rhel*
Red Hat Universal Base Image 8 (RPMs) - BaseOS                                                                                                                                                                1.1 MB/s | 761 kB     00:00    
Red Hat Universal Base Image 8 (RPMs) - AppStream                                                                                                                                                             2.4 MB/s | 3.4 MB     00:01    
Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder                                                                                                                                                      10 kB/s | 9.1 kB     00:00    
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                                 Architecture                                         Version                                                     Repository                                                     Size
==============================================================================================================================================================================================================================================
Installing:
 iproute                                                 x86_64                                               4.18.0-15.el8                                               ubi-8-baseos                                                  616 k
 procps-ng                                               x86_64                                               3.3.15-1.el8                                                ubi-8-baseos                                                  328 k
 nmap-ncat                                               x86_64                                               2:7.70-5.el8                                                ubi-8-appstream                                               237 k
Installing dependencies:
 libmnl                                                  x86_64                                               1.0.4-6.el8                                                 ubi-8-baseos                                                   30 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  4 Packages

Total download size: 1.2 M
Installed size: 3.7 M
Downloading Packages:
(1/4): procps-ng-3.3.15-1.el8.x86_64.rpm                                                                                                                                                                      689 kB/s | 328 kB     00:00    
(2/4): nmap-ncat-7.70-5.el8.x86_64.rpm                                                                                                                                                                        1.9 MB/s | 237 kB     00:00    
(3/4): libmnl-1.0.4-6.el8.x86_64.rpm                                                                                                                                                                           33 kB/s |  30 kB     00:00    
(4/4): iproute-4.18.0-15.el8.x86_64.rpm                                                                                                                                                                       493 kB/s | 616 kB     00:01    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                         966 kB/s | 1.2 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                      1/1 
  Installing       : libmnl-1.0.4-6.el8.x86_64                                                                                                                                                                                            1/4 
Error unpacking rpm package libmnl-1.0.4-6.el8.x86_64
  Installing       : iproute-4.18.0-15.el8.x86_64                                                                                                                                                                                         2/4 
error: unpacking of archive failed on file /usr/lib/.build-id/6a/0a212b66cb1bbcf9ca9135cfe9608e737bfa1a;5e667ac5: cpio: utime
error: libmnl-1.0.4-6.el8.x86_64: install failed

Error unpacking rpm package iproute-4.18.0-15.el8.x86_64
  Installing       : nmap-ncat-2:7.70-5.el8.x86_64                                                                                                                                                                                        3/4 
error: unpacking of archive failed on file /usr/lib/.build-id/03/75a321fca7a7f8506f15dba81052ab2c7244be;5e667ac5: cpio: utime
error: iproute-4.18.0-15.el8.x86_64: install failed

Error unpacking rpm package nmap-ncat-2:7.70-5.el8.x86_64
  Installing       : procps-ng-3.3.15-1.el8.x86_64                                                                                                                                                                                        4/4 
error: unpacking of archive failed on file /usr/lib/.build-id/dc/75a09c17dfc99305bcb1db16f1a5901ab69002;5e667ac5: cpio: utime
error: nmap-ncat-2:7.70-5.el8.x86_64: install failed

Error unpacking rpm package procps-ng-3.3.15-1.el8.x86_64
  Verifying        : iproute-4.18.0-15.el8.x86_64                                                                                                                                                                                         1/4 
  Verifying        : libmnl-1.0.4-6.el8.x86_64                                                                                                                                                                                            2/4 
  Verifying        : procps-ng-3.3.15-1.el8.x86_64                                                                                                                                                                                        3/4 
  Verifying        : nmap-ncat-2:7.70-5.el8.x86_64                                                                                                                                                                                        4/4 
Installed products updated.

Failed:
  iproute-4.18.0-15.el8.x86_64                               libmnl-1.0.4-6.el8.x86_64                               procps-ng-3.3.15-1.el8.x86_64                               nmap-ncat-2:7.70-5.el8.x86_64                              

Error: Transaction failed
error building at STEP "RUN ${YUM} install procps-ng iproute nmap-ncat": error while running runtime: exit status 1
ERRO exit status 1                                


Expected results:


Additional info:

Comment 6 Jindrich Novy 2020-06-04 07:12:06 UTC

*** This bug has been marked as a duplicate of bug 1811759 ***


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