containers / buildah

A tool that facilitates building OCI images.
https://buildah.io
Apache License 2.0
7.24k stars 766 forks source link

container_linux.go:349: starting container process caused "process_linux.go:449: container init... #2750

Closed lc-thomas closed 3 years ago

lc-thomas commented 3 years ago

Description After updating podman following the website instructions : https://podman.io/getting-started/installation

# CentOS 8
sudo dnf -y module disable container-tools
sudo dnf -y install 'dnf-command(copr)'
sudo dnf -y copr enable rhcontainerbot/container-selinux
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/devel:kubic:libcontainers:stable.repo
sudo dnf -y install podman

I get those errors when building an image :

....
STEP 9: COPY requirements/dev.txt .
--> Using cache 41de995bda68ac72e058bbf2c478e1f145cb7973f034d76bd37305cc0d3e760e
--> 41de995bda6
STEP 10: RUN python3 -m pip install --user -r base.txt 
WARN[0000] exit status 1                                
ERRO[0000] container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"devpts\\\" to rootfs \\\"/var/tmp/buildah311199479/mnt/rootfs\\\" at \\\"/var/tmp/buildah311199479/mnt/rootfs/dev/pts\\\" caused \\\"invalid argument\\\"\"" 
container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"devpts\\\" to rootfs \\\"/var/tmp/buildah311199479/mnt/rootfs\\\" at \\\"/var/tmp/buildah311199479/mnt/rootfs/dev/pts\\\" caused \\\"invalid argument\\\"\""
error running container: error creating container for [/bin/sh -c python3 -m pip install --user -r base.txt]: : exit status 1
Error: error building at STEP "RUN python3 -m pip install --user -r base.txt": error while running runtime: exit status 1

Steps to reproduce the issue:

  1. Update podman on centOS 8 following instructions
  2. Install packages with pip inside your container

Describe the results you received: Not sure how to describe that, it just crashed.

Describe the results you expected: I expected pip to install those packages and the build to succeed

Output of rpm -q buildah or apt list buildah:

package buildah is not installed

Output of buildah version:

-bash: buildah: command not found

Output of podman version if reporting a podman build issue:

Version:      2.1.1
API Version:  2.0.0
Go Version:   go1.13.15
Built:        Fri Oct 30 23:23:30 2020
OS/Arch:      linux/amd64

*Output of `cat /etc/release`:**

CentOS Linux release 8.2.2004 (Core) 
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

CentOS Linux release 8.2.2004 (Core) 
CentOS Linux release 8.2.2004 (Core) 

Output of uname -a:

Linux staging_rc 4.18.0-193.19.1.el8_2.x86_64 #1 SMP Mon Sep 14 14:37:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Output of cat /etc/containers/storage.conf:

# This file is is the configuration file for all tools
# that use the containers/storage library.
# See man 5 containers-storage.conf for more information
# The "container storage" table contains all of the server options.
[storage]

# Default Storage Driver
driver = "overlay"

# Temporary storage location
runroot = "/var/run/containers/storage"

# Primary Read/Write location of container storage
graphroot = "/var/lib/containers/storage"

# Storage path for rootless users
#
# rootless_storage_path = "$HOME/.local/share/containers/storage"

[storage.options]
# Storage options to be passed to underlying storage drivers

# AdditionalImageStores is used to pass paths to additional Read/Only image stores
# Must be comma separated list.
additionalimagestores = [
]

# Remap-UIDs/GIDs is the mapping from UIDs/GIDs as they should appear inside of
# a container, to the UIDs/GIDs as they should appear outside of the container,
# and the length of the range of UIDs/GIDs.  Additional mapped sets can be
# listed and will be heeded by libraries, but there are limits to the number of
# mappings which the kernel will allow when you later attempt to run a
# container.
#
# remap-uids = 0:1668442479:65536
# remap-gids = 0:1668442479:65536

# Remap-User/Group is a user name which can be used to look up one or more UID/GID
# ranges in the /etc/subuid or /etc/subgid file.  Mappings are set up starting
# with an in-container ID of 0 and then a host-level ID taken from the lowest
# range that matches the specified name, and using the length of that range.
# Additional ranges are then assigned, using the ranges which specify the
# lowest host-level IDs first, to the lowest not-yet-mapped in-container ID,
# until all of the entries have been used for maps.
#
# remap-user = "containers"
# remap-group = "containers"

# Root-auto-userns-user is a user name which can be used to look up one or more UID/GID
# ranges in the /etc/subuid and /etc/subgid file.  These ranges will be partitioned
# to containers configured to create automatically a user namespace.  Containers
# configured to automatically create a user namespace can still overlap with containers
# having an explicit mapping set.
# This setting is ignored when running as rootless.
# root-auto-userns-user = "storage"
#
# Auto-userns-min-size is the minimum size for a user namespace created automatically.
# auto-userns-min-size=1024
#
# Auto-userns-max-size is the minimum size for a user namespace created automatically.
# auto-userns-max-size=65536

[storage.options.overlay]
# ignore_chown_errors can be set to allow a non privileged user running with
# a single UID within a user namespace to run containers. The user can pull
# and use any image even those with multiple uids.  Note multiple UIDs will be
# squashed down to the default uid in the container.  These images will have no
# separation between the users in the container. Only supported for the overlay
# and vfs drivers.
#ignore_chown_errors = "false"

# Path to an helper program to use for mounting the file system instead of mounting it
# directly.
#mount_program = "/usr/bin/fuse-overlayfs"

# mountopt specifies comma separated list of extra mount options
mountopt = "nodev,metacopy=on"

# Set to skip a PRIVATE bind mount on the storage home directory.
# skip_mount_home = "false"

# Size is used to set a maximum size of the container image.
# size = ""

[storage.options.thinpool]
# Storage Options for thinpool

# autoextend_percent determines the amount by which pool needs to be
# grown. This is specified in terms of % of pool size. So a value of 20 means
# that when threshold is hit, pool will be grown by 20% of existing
# pool size.
# autoextend_percent = "20"

# autoextend_threshold determines the pool extension threshold in terms
# of percentage of pool size. For example, if threshold is 60, that means when
# pool is 60% full, threshold has been hit.
# autoextend_threshold = "80"

# basesize specifies the size to use when creating the base device, which
# limits the size of images and containers.
# basesize = "10G"

# blocksize specifies a custom blocksize to use for the thin pool.
# blocksize="64k"

# directlvm_device specifies a custom block storage device to use for the
# thin pool. Required if you setup devicemapper.
# directlvm_device = ""

# directlvm_device_force wipes device even if device already has a filesystem.
# directlvm_device_force = "True"

# fs specifies the filesystem type to use for the base device.
# fs="xfs"

# log_level sets the log level of devicemapper.
# 0: LogLevelSuppress 0 (Default)
# 2: LogLevelFatal
# 3: LogLevelErr
# 4: LogLevelWarn
# 5: LogLevelNotice
# 6: LogLevelInfo
# 7: LogLevelDebug
# log_level = "7"

# min_free_space specifies the min free space percent in a thin pool require for
# new device creation to succeed. Valid values are from 0% - 99%.
# Value 0% disables
# min_free_space = "10%"

# mkfsarg specifies extra mkfs arguments to be used when creating the base
# device.
# mkfsarg = ""

# metadata_size is used to set the `pvcreate --metadatasize` options when
# creating thin devices. Default is 128k
# metadata_size = ""

# Size is used to set a maximum size of the container image.
# size = ""

# use_deferred_removal marks devicemapper block device for deferred removal.
# If the thinpool is in use when the driver attempts to remove it, the driver
# tells the kernel to remove it as soon as possible. Note this does not free
# up the disk space, use deferred deletion to fully remove the thinpool.
# use_deferred_removal = "True"

# use_deferred_deletion marks thinpool device for deferred deletion.
# If the device is busy when the driver attempts to delete it, the driver
# will attempt to delete device every 30 seconds until successful.
# If the program using the driver exits, the driver will continue attempting
# to cleanup the next time the driver is used. Deferred deletion permanently
# deletes the device and all data stored in device will be lost.
# use_deferred_deletion = "True"

# xfs_nospace_max_retries specifies the maximum number of retries XFS should
# attempt to complete IO when ENOSPC (no space) error is returned by
# underlying storage device.
# xfs_nospace_max_retries = "0"
rhatdan commented 3 years ago

We would need to know what podman command you executed?

What OS? What Version? Was this rootless or rootful?

haircommander commented 3 years ago

I have also hit this with rootless podman build on f33:

podman version
Version:      2.2.1
API Version:  2.1.0
Go Version:   go1.15.5
Built:        Tue Dec  8 09:37:50 2020
OS/Arch:      linux/amd64

Containerfile:

FROM docker.io/library/fedora@sha256:e59aca6fc3cbb83ef1a7c903c4c83b26be24c255b8e119cabc9a17726ad93859
RUN yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum
ADD .rpmmacros /root/.rpmmacros

runc:

 $ runc -v
runc version 1.0.0-rc92+dev
commit: b69070a5fcb0830b2ea77c637b63a55d4e3726a3
spec: 1.0.2-dev
go: go1.15
libseccomp: 2.5.0

output:

 podman build .
STEP 1: FROM docker.io/library/fedora@sha256:e59aca6fc3cbb83ef1a7c903c4c83b26be24c255b8e119cabc9a17726ad93859
STEP 2: RUN yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum
WARN[0000] exit status 1                                
ERRO[0000] container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "devpts" to rootfs at "/var/tmp/buildah833047874/mnt/rootfs/dev/pts" caused: invalid argument 
error running container: error creating container for [/bin/sh -c yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum]: : exit status 1
Error: error building at STEP "RUN yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum": error while running runtime: exit status 1
rhatdan commented 3 years ago

@giuseppe Thoughts?

rhatdan commented 3 years ago

@haircommander Are you sure you are using runc versus crun? Does this happen everytime?

giuseppe commented 3 years ago

I am not able to reproduce both with crun and runc.

What is the output for buildah unshare cat /proc/self/uid_map?

Could you run podman unshare strace -Z -v -f -e mount podman build . and show the output?

haircommander commented 3 years ago
[pehunt@localhost fedora-upstream]
 $ cat /proc/self/uid_map 
         0          0 4294967295
[pehunt@localhost fedora-upstream]
 $ podman unshare strace -Z -v -f -e mount podman build .
strace: Process 439618 attached
strace: Process 439619 attached
strace: Process 439620 attached
strace: Process 439621 attached
strace: Process 439622 attached
strace: Process 439623 attached
[pid 439621] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439621] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439624 attached
strace: Process 439625 attached
[pid 439617] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439617] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439617] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439617] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439626 attached
[pid 439617] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439617] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439617] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439627 attached
[pid 439627] +++ exited with 0 +++
[pid 439620] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439627, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
STEP 1: FROM docker.io/library/fedora@sha256:e59aca6fc3cbb83ef1a7c903c4c83b26be24c255b8e119cabc9a17726ad93859
[pid 439620] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439626] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439628 attached
[pid 439626] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439623] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439620] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439620] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439624] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439623] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439628] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439624] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439629 attached
[pid 439621] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439623] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439621] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439621] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439621] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439630 attached
strace: Process 439631 attached
[pid 439630] +++ exited with 0 +++
[pid 439619] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439630, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
STEP 2: RUN yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum
[pid 439619] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439633 attached
strace: Process 439634 attached
strace: Process 439635 attached
strace: Process 439636 attached
strace: Process 439637 attached
strace: Process 439638 attached
strace: Process 439639 attached
strace: Process 439640 attached
[pid 439637] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
strace: Process 439641 attached
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439635] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
strace: Process 439642 attached
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439639] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439637] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439641] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439635] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439637] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439635] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439637] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439635] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
strace: Process 439643 attached
[pid 439641] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439642] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439640] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439635] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439639] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
strace: Process 439644 attached
[pid 439641] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439635] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439633] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439633, si_uid=0} ---
[pid 439644] +++ exited with 0 +++
[pid 439643] +++ exited with 0 +++
[pid 439642] +++ exited with 0 +++
[pid 439641] +++ exited with 0 +++
[pid 439640] +++ exited with 0 +++
[pid 439639] +++ exited with 0 +++
[pid 439638] +++ exited with 0 +++
[pid 439637] +++ exited with 0 +++
[pid 439636] +++ exited with 0 +++
[pid 439635] +++ exited with 0 +++
[pid 439634] +++ exited with 0 +++
[pid 439633] +++ exited with 0 +++
[pid 439621] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439633, si_uid=0, si_status=0, si_utime=3, si_stime=6} ---
strace: Process 439645 attached
strace: Process 439646 attached
strace: Process 439647 attached
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
strace: Process 439648 attached
strace: Process 439649 attached
strace: Process 439650 attached
strace: Process 439651 attached
[pid 439648] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
strace: Process 439652 attached
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
strace: Process 439653 attached
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439653] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
strace: Process 439655 attached
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439653] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439648] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439653] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439653] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439653] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439645] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439645, si_uid=0} ---
[pid 439655] +++ exited with 0 +++
[pid 439653] +++ exited with 0 +++
[pid 439652] +++ exited with 0 +++
[pid 439651] +++ exited with 0 +++
[pid 439649] +++ exited with 0 +++
[pid 439648] +++ exited with 0 +++
[pid 439647] +++ exited with 0 +++
[pid 439646] +++ exited with 0 +++
[pid 439650] +++ exited with 0 +++
[pid 439645] +++ exited with 0 +++
[pid 439621] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439645, si_uid=0, si_status=0, si_utime=3, si_stime=7} ---
strace: Process 439656 attached
strace: Process 439657 attached
strace: Process 439658 attached
strace: Process 439659 attached
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
strace: Process 439660 attached
strace: Process 439661 attached
strace: Process 439662 attached
[pid 439659] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439659] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
strace: Process 439663 attached
strace: Process 439664 attached
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439662] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439660] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
strace: Process 439665 attached
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439659] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
strace: Process 439666 attached
[pid 439664] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439662] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439659] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439656] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439656, si_uid=0} ---
[pid 439663] +++ exited with 0 +++
[pid 439660] +++ exited with 0 +++
[pid 439666] +++ exited with 0 +++
[pid 439664] +++ exited with 0 +++
[pid 439662] +++ exited with 0 +++
[pid 439661] +++ exited with 0 +++
[pid 439659] +++ exited with 0 +++
[pid 439658] +++ exited with 0 +++
[pid 439657] +++ exited with 0 +++
[pid 439665] +++ exited with 0 +++
[pid 439656] +++ exited with 0 +++
[pid 439618] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439656, si_uid=0, si_status=0, si_utime=3, si_stime=7} ---
strace: Process 439667 attached
strace: Process 439668 attached
strace: Process 439669 attached
strace: Process 439670 attached
strace: Process 439671 attached
strace: Process 439672 attached
strace: Process 439673 attached
strace: Process 439674 attached
[pid 439673] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439673] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
strace: Process 439675 attached
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
strace: Process 439676 attached
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439671] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439670] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439671] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439671] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439670] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439676] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439670] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439671] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439671] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439676] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439674] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439671] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439667] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439667, si_uid=0} ---
[pid 439672] +++ exited with 0 +++
[pid 439673] +++ exited with 0 +++
[pid 439676] +++ exited with 0 +++
[pid 439675] +++ exited with 0 +++
[pid 439674] +++ exited with 0 +++
[pid 439671] +++ exited with 0 +++
[pid 439670] +++ exited with 0 +++
[pid 439669] +++ exited with 0 +++
[pid 439668] +++ exited with 0 +++
[pid 439667] +++ exited with 0 +++
[pid 439629] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439667, si_uid=0, si_status=0, si_utime=3, si_stime=6} ---
strace: Process 439677 attached
strace: Process 439678 attached
strace: Process 439679 attached
strace: Process 439680 attached
strace: Process 439681 attached
strace: Process 439682 attached
strace: Process 439683 attached
strace: Process 439684 attached
[pid 439683] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
strace: Process 439685 attached
[pid 439681] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
strace: Process 439686 attached
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439683] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
strace: Process 439687 attached
[pid 439683] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439679] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439685] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439677] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439677, si_uid=0} ---
[pid 439686] +++ exited with 0 +++
[pid 439687] +++ exited with 0 +++
[pid 439685] +++ exited with 0 +++
[pid 439684] +++ exited with 0 +++
[pid 439682] +++ exited with 0 +++
[pid 439681] +++ exited with 0 +++
[pid 439679] +++ exited with 0 +++
[pid 439678] +++ exited with 0 +++
[pid 439683] +++ exited with 0 +++
[pid 439680] +++ exited with 0 +++
[pid 439677] +++ exited with 0 +++
[pid 439629] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439677, si_uid=0, si_status=0, si_utime=2, si_stime=6} ---
[pid 439621] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439688 attached
strace: Process 439689 attached
strace: Process 439690 attached
strace: Process 439691 attached
strace: Process 439692 attached
strace: Process 439693 attached
strace: Process 439694 attached
[pid 439691] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
strace: Process 439695 attached
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439690] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
strace: Process 439696 attached
strace: Process 439697 attached
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439691] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439691] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439691] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
strace: Process 439698 attached
[pid 439695] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439690] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
[pid 439688] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439688, si_uid=0} ---
strace: Process 439699 attached
strace: Process 439700 attached
strace: Process 439701 attached
[pid 439699] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439699, si_uid=0} ---
strace: Process 439702 attached
strace: Process 439703 attached
strace: Process 439704 attached
[pid 439699] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439699, si_uid=0} ---
strace: Process 439705 attached
strace: Process 439706 attached
strace: Process 439707 attached
strace: Process 439708 attached
[pid 439707] +++ exited with 0 +++
[pid 439705] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439707, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
[pid 439706] +++ exited with 0 +++
[pid 439705] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439706, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
strace: Process 439709 attached
strace: Process 439710 attached
strace: Process 439711 attached
strace: Process 439712 attached
strace: Process 439713 attached
strace: Process 439714 attached
[pid 439708] mount("devpts", "/var/tmp/buildah669542431/mnt/rootfs/dev/pts", "devpts", MS_NOSUID|MS_NOEXEC, "newinstance,ptmxmode=0666,mode=0"...) = -1 EINVAL (Invalid argument)
[pid 439705] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439699, si_uid=0} ---
[pid 439714] +++ exited with 1 +++
[pid 439713] +++ exited with 1 +++
[pid 439712] +++ exited with 1 +++
[pid 439711] +++ exited with 1 +++
[pid 439710] +++ exited with 1 +++
[pid 439709] +++ exited with 1 +++
[pid 439708] +++ exited with 1 +++
[pid 439703] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439708, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
WARN[0000] exit status 1                                
ERRO[0000] container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "devpts" to rootfs at "/var/tmp/buildah669542431/mnt/rootfs/dev/pts" caused: invalid argument 
[pid 439705] +++ exited with 1 +++
[pid 439704] +++ exited with 1 +++
[pid 439703] +++ exited with 1 +++
[pid 439702] +++ exited with 1 +++
[pid 439701] +++ exited with 1 +++
[pid 439700] +++ exited with 1 +++
[pid 439699] +++ exited with 1 +++
[pid 439688] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439699, si_uid=0, si_status=1, si_utime=0, si_stime=2} ---
error running container: error creating container for [/bin/sh -c yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum]: : exit status 1
[pid 439696] +++ exited with 1 +++
[pid 439698] +++ exited with 1 +++
[pid 439693] +++ exited with 1 +++
[pid 439692] +++ exited with 1 +++
[pid 439697] +++ exited with 1 +++
[pid 439695] +++ exited with 1 +++
[pid 439694] +++ exited with 1 +++
[pid 439691] +++ exited with 1 +++
[pid 439689] +++ exited with 1 +++
[pid 439690] +++ exited with 1 +++
[pid 439688] +++ exited with 1 +++
[pid 439619] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439688, si_uid=0, si_status=1, si_utime=3, si_stime=6} ---
[pid 439619] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439626] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439621] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439716 attached
[pid 439626] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439620] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439620] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439628] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439717 attached
[pid 439626] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439620] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439628] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439629] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
[pid 439626] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=439617, si_uid=0} ---
strace: Process 439718 attached
[pid 439718] +++ exited with 0 +++
[pid 439716] +++ exited with 0 +++
[pid 439717] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=439716, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
[pid 439631] +++ exited with 0 +++
Error: error building at STEP "RUN yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum": error while running runtime: exit status 1
[pid 439629] +++ exited with 125 +++
[pid 439626] +++ exited with 125 +++
[pid 439624] +++ exited with 125 +++
[pid 439717] +++ exited with 125 +++
[pid 439623] +++ exited with 125 +++
[pid 439622] +++ exited with 125 +++
[pid 439621] +++ exited with 125 +++
[pid 439620] +++ exited with 125 +++
[pid 439618] +++ exited with 125 +++
[pid 439625] +++ exited with 125 +++
[pid 439628] +++ exited with 125 +++
[pid 439619] +++ exited with 125 +++
+++ exited with 125 +++
Error: exit status 125
giuseppe commented 3 years ago

thanks for the additional information.

 mount("devpts", "/var/tmp/buildah669542431/mnt/rootfs/dev/pts", "devpts", MS_NOSUID|MS_NOEXEC, "newinstance,ptmxmode=0666,mode=0"...) = -1 EINVAL (Invalid argument)

the last argument was truncated :( Could you try adding -s 10000 to the same strace command?

Could you please run the cat /proc/self/uid_map command in a podman unshare session: podman unshare cat /proc/self/uid_map)?

I'd like to check we are not passing gid=5 when a single ID is available

haircommander commented 3 years ago
[pehunt@localhost fedora-upstream]
 $ podman unshare cat /proc/self/uid_map
         0       1000          1
[pehunt@localhost fedora-upstream]
 $ podman unshare  strace -s 10000 -Z -v -f -e mount podman build .
strace: Process 447933 attached
strace: Process 447934 attached
strace: Process 447935 attached
strace: Process 447936 attached
strace: Process 447937 attached
strace: Process 447938 attached
[pid 447937] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 447939 attached
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447934] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447934] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447932] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447932] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 447940 attached
strace: Process 447941 attached
[pid 447932] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447932] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 447942 attached
[pid 447932] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447934] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447932] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447932] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447932] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 447943 attached
[pid 447943] +++ exited with 0 +++
[pid 447936] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=447943, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
STEP 1: FROM docker.io/library/fedora@sha256:e59aca6fc3cbb83ef1a7c903c4c83b26be24c255b8e119cabc9a17726ad93859
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447937] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447941] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 447944 attached
strace: Process 447945 attached
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 447946 attached
[pid 447945] +++ exited with 0 +++
[pid 447940] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=447945, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
STEP 2: RUN yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum
[pid 447940] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 447948 attached
strace: Process 447949 attached
strace: Process 447950 attached
strace: Process 447951 attached
strace: Process 447952 attached
strace: Process 447953 attached
strace: Process 447954 attached
strace: Process 447955 attached
[pid 447955] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
strace: Process 447956 attached
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
strace: Process 447957 attached
[pid 447955] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
strace: Process 447958 attached
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447948] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447948, si_uid=0} ---
[pid 447958] +++ exited with 0 +++
[pid 447955] +++ exited with 0 +++
[pid 447957] +++ exited with 0 +++
[pid 447956] +++ exited with 0 +++
[pid 447954] +++ exited with 0 +++
[pid 447953] +++ exited with 0 +++
[pid 447952] +++ exited with 0 +++
[pid 447951] +++ exited with 0 +++
[pid 447950] +++ exited with 0 +++
[pid 447949] +++ exited with 0 +++
[pid 447948] +++ exited with 0 +++
[pid 447940] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=447948, si_uid=0, si_status=0, si_utime=3, si_stime=6} ---
strace: Process 447959 attached
strace: Process 447960 attached
strace: Process 447961 attached
strace: Process 447962 attached
strace: Process 447963 attached
strace: Process 447964 attached
strace: Process 447965 attached
[pid 447961] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
strace: Process 447966 attached
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
strace: Process 447967 attached
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
strace: Process 447968 attached
strace: Process 447969 attached
[pid 447967] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447968] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447961] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447959] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447959, si_uid=0} ---
[pid 447969] +++ exited with 0 +++
[pid 447968] +++ exited with 0 +++
[pid 447967] +++ exited with 0 +++
[pid 447965] +++ exited with 0 +++
[pid 447964] +++ exited with 0 +++
[pid 447963] +++ exited with 0 +++
[pid 447962] +++ exited with 0 +++
[pid 447961] +++ exited with 0 +++
[pid 447960] +++ exited with 0 +++
[pid 447966] +++ exited with 0 +++
[pid 447959] +++ exited with 0 +++
[pid 447936] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=447959, si_uid=0, si_status=0, si_utime=3, si_stime=5} ---
strace: Process 447970 attached
strace: Process 447971 attached
strace: Process 447972 attached
strace: Process 447973 attached
strace: Process 447974 attached
strace: Process 447975 attached
strace: Process 447976 attached
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447972] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447974] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
strace: Process 447977 attached
[pid 447974] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447972] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
strace: Process 447978 attached
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
strace: Process 447979 attached
[pid 447978] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447977] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447970] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447970, si_uid=0} ---
[pid 447979] +++ exited with 0 +++
[pid 447976] +++ exited with 0 +++
[pid 447975] +++ exited with 0 +++
[pid 447974] +++ exited with 0 +++
[pid 447973] +++ exited with 0 +++
[pid 447972] +++ exited with 0 +++
[pid 447978] +++ exited with 0 +++
[pid 447977] +++ exited with 0 +++
[pid 447971] +++ exited with 0 +++
[pid 447970] +++ exited with 0 +++
[pid 447944] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=447970, si_uid=0, si_status=0, si_utime=4, si_stime=5} ---
strace: Process 447980 attached
strace: Process 447981 attached
strace: Process 447982 attached
strace: Process 447983 attached
strace: Process 447984 attached
strace: Process 447985 attached
strace: Process 447986 attached
[pid 447982] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
strace: Process 447987 attached
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
strace: Process 447988 attached
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447987] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
strace: Process 447989 attached
strace: Process 447990 attached
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447982] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447982] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447980] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447980, si_uid=0} ---
[pid 447990] +++ exited with 0 +++
[pid 447989] +++ exited with 0 +++
[pid 447988] +++ exited with 0 +++
[pid 447987] +++ exited with 0 +++
[pid 447985] +++ exited with 0 +++
[pid 447984] +++ exited with 0 +++
[pid 447983] +++ exited with 0 +++
[pid 447982] +++ exited with 0 +++
[pid 447981] +++ exited with 0 +++
[pid 447986] +++ exited with 0 +++
[pid 447980] +++ exited with 0 +++
[pid 447944] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=447980, si_uid=0, si_status=0, si_utime=3, si_stime=5} ---
strace: Process 447991 attached
strace: Process 447992 attached
strace: Process 447993 attached
strace: Process 447994 attached
strace: Process 447995 attached
strace: Process 447996 attached
strace: Process 447997 attached
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447994] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447994] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
strace: Process 447998 attached
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447994] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447995] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447993] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
strace: Process 447999 attached
strace: Process 448000 attached
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447999] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
strace: Process 448001 attached
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447994] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447991] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447991, si_uid=0} ---
[pid 447998] +++ exited with 0 +++
[pid 448001] +++ exited with 0 +++
[pid 448000] +++ exited with 0 +++
[pid 447996] +++ exited with 0 +++
[pid 447997] +++ exited with 0 +++
[pid 447995] +++ exited with 0 +++
[pid 447994] +++ exited with 0 +++
[pid 447993] +++ exited with 0 +++
[pid 447992] +++ exited with 0 +++
[pid 447999] +++ exited with 0 +++
[pid 447991] +++ exited with 0 +++
[pid 447936] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=447991, si_uid=0, si_status=0, si_utime=3, si_stime=5} ---
[pid 447944] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447942] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447941] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447940] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447936] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447940] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447944] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 448002 attached
strace: Process 448003 attached
[pid 447939] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
[pid 447939] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=447932, si_uid=0} ---
strace: Process 448004 attached
strace: Process 448005 attached
strace: Process 448006 attached
strace: Process 448007 attached
strace: Process 448008 attached
strace: Process 448009 attached
strace: Process 448010 attached
[pid 448010] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
strace: Process 448011 attached
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448006] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
strace: Process 448012 attached
[pid 448010] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448006] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448010] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448011] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
strace: Process 448013 attached
strace: Process 448014 attached
strace: Process 448015 attached
strace: Process 448016 attached
strace: Process 448017 attached
strace: Process 448018 attached
strace: Process 448019 attached
strace: Process 448020 attached
[pid 448016] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448013, si_uid=0} ---
strace: Process 448021 attached
strace: Process 448022 attached
[pid 448021] +++ exited with 0 +++
[pid 448016] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=448021, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
[pid 448020] +++ exited with 0 +++
[pid 448016] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=448020, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
strace: Process 448023 attached
strace: Process 448024 attached
[pid 448022] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=1, si_uid=0} ---
strace: Process 448025 attached
strace: Process 448026 attached
strace: Process 448027 attached
strace: Process 448028 attached
[pid 448022] mount("devpts", "/var/tmp/buildah997280772/mnt/rootfs/dev/pts", "devpts", MS_NOSUID|MS_NOEXEC, "newinstance,ptmxmode=0666,mode=0620,gid=5,context=\"system_u:object_r:container_file_t:s0:c319,c840\"") = -1 EINVAL (Invalid argument)
[pid 448016] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448013, si_uid=0} ---
[pid 448027] +++ exited with 1 +++
[pid 448026] +++ exited with 1 +++
[pid 448023] +++ exited with 1 +++
[pid 448025] +++ exited with 1 +++
[pid 448028] +++ exited with 1 +++
[pid 448024] +++ exited with 1 +++
[pid 448022] +++ exited with 1 +++
[pid 448017] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=448022, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
WARN[0000] exit status 1                                
ERRO[0000] container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "devpts" to rootfs at "/var/tmp/buildah997280772/mnt/rootfs/dev/pts" caused: invalid argument 
[pid 448019] +++ exited with 1 +++
[pid 448018] +++ exited with 1 +++
[pid 448017] +++ exited with 1 +++
[pid 448016] +++ exited with 1 +++
[pid 448015] +++ exited with 1 +++
[pid 448014] +++ exited with 1 +++
[pid 448013] +++ exited with 1 +++
[pid 448002] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=448013, si_uid=0, si_status=1, si_utime=0, si_stime=2} ---
[pid 448002] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=448002, si_uid=0} ---
error running container: error creating container for [/bin/sh -c yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum]: : exit status 1
[pid 448012] +++ exited with 1 +++
[pid 448011] +++ exited with 1 +++
[pid 448010] +++ exited with 1 +++
[pid 448009] +++ exited with 1 +++
[pid 448008] +++ exited with 1 +++
[pid 448007] +++ exited with 1 +++
[pid 448006] +++ exited with 1 +++
[pid 448005] +++ exited with 1 +++
[pid 448004] +++ exited with 1 +++
[pid 448002] +++ exited with 1 +++
[pid 447939] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=448002, si_uid=0, si_status=1, si_utime=4, si_stime=7} ---
strace: Process 448029 attached
strace: Process 448030 attached
[pid 448030] +++ exited with 0 +++
[pid 448029] +++ exited with 0 +++
[pid 447939] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=448029, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
[pid 447946] +++ exited with 0 +++
Error: error building at STEP "RUN yum update && yum install -y 'dnf-command(builddep)' rpmdevtools && yum clean all && rm -rf /var/cache/yum": error while running runtime: exit status 1
[pid 447938] +++ exited with 125 +++
[pid 447937] +++ exited with 125 +++
[pid 447944] +++ exited with 125 +++
[pid 447936] +++ exited with 125 +++
[pid 448003] +++ exited with 125 +++
[pid 447940] +++ exited with 125 +++
[pid 447934] +++ exited with 125 +++
[pid 447942] +++ exited with 125 +++
[pid 447941] +++ exited with 125 +++
[pid 447939] +++ exited with 125 +++
[pid 447935] +++ exited with 125 +++
[pid 447933] +++ exited with 125 +++
+++ exited with 125 +++
giuseppe commented 3 years ago

yes, the issue seems to be with gid=5 even if we have only one uid available.

Is the BUILDAH_ISOLATION variable defined in your environment?

Does it work if you force it to rootless (podman build --isolation rootless)?

haircommander commented 3 years ago

yes that does work! and no, the env var is not defined

giuseppe commented 3 years ago

thanks for confirming it! PR here: https://github.com/containers/buildah/pull/2854