Bug 1185767 - zypper fails installing packages inside docker image
Summary: zypper fails installing packages inside docker image
Status: RESOLVED DUPLICATE of bug 1182451
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Leap 15.2
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Aleksa Sarai
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-07 10:12 UTC by Konstantin Malanchev
Modified: 2021-06-08 10:59 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Malanchev 2021-05-07 10:12:57 UTC
I meet some issues with zypper insize the latest opensuse/tumbleweed docker container. For some packages their installation fails with a message "ERROR: neither groupadd nor busybox found!", please see an example bellow

$ docker-run --rm -ti opensuse/tumbleweed
# zypper --non-interactive install util-linux
Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata .............[done]
Building repository 'openSUSE-Tumbleweed-Non-Oss' cache ..................[done]
Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata .................[done]
Building repository 'openSUSE-Tumbleweed-Oss' cache ......................[done]
Retrieving repository 'openSUSE-Tumbleweed-Update' metadata ..............[done]
Building repository 'openSUSE-Tumbleweed-Update' cache ...................[done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 23 NEW packages are going to be installed:
  chkstat libaudit1 libblkid1 libcap-ng0 libcrypt1 libeconf0 libfdisk1 libmount1
  libsemanage-conf libsemanage2 libsepol2 libsmartcols1 libutempter0 libuuid1
  login_defs pam pam_unix permissions permissions-config shadow
  system-group-hardware sysuser-shadow util-linux

23 new packages to install.
Overall download size: 4.5 MiB. Already cached: 0 B. After the operation,
additional 12.2 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package chkstat-1550_20210125-27.3.x86_64
                                          (1/23), 413.7 KiB (  1.2 MiB unpacked)
Retrieving: chkstat-1550_20210125-27.3.x86_64.rpm ........................[done]
Retrieving package libaudit1-2.8.5-5.3.x86_64
                                          (2/23),  91.7 KiB (114.8 KiB unpacked)
Retrieving: libaudit1-2.8.5-5.3.x86_64.rpm ...............................[done]
Retrieving package libblkid1-2.36.2-1.5.x86_64
                                          (3/23), 223.4 KiB (207.0 KiB unpacked)
Retrieving: libblkid1-2.36.2-1.5.x86_64.rpm ..............................[done]
Retrieving package libcap-ng0-0.7.10-1.18.x86_64
                                          (4/23),  29.9 KiB ( 52.4 KiB unpacked)
Retrieving: libcap-ng0-0.7.10-1.18.x86_64.rpm ............................[done]
Retrieving package libcrypt1-4.4.19-1.1.x86_64
                                          (5/23), 114.5 KiB (260.9 KiB unpacked)
Retrieving: libcrypt1-4.4.19-1.1.x86_64.rpm ..............................[done]
Retrieving package libeconf0-0.4.0+git20210413.fdb8025-1.1.x86_64
                                          (6/23),  32.6 KiB ( 39.7 KiB unpacked)
Retrieving: libeconf0-0.4.0+git20210413.fdb8025-1.1.x86_64.rpm ...........[done]
Retrieving package libsemanage-conf-3.2-1.3.x86_64
                                          (7/23),  19.8 KiB (  2.3 KiB unpacked)
Retrieving: libsemanage-conf-3.2-1.3.x86_64.rpm ..........................[done]
Retrieving package libsepol2-3.2-1.1.x86_64
                                          (8/23), 284.9 KiB (713.4 KiB unpacked)
Retrieving: libsepol2-3.2-1.1.x86_64.rpm .................................[done]
Retrieving package libsmartcols1-2.36.2-1.5.x86_64
                                          (9/23), 176.5 KiB ( 98.2 KiB unpacked)
Retrieving: libsmartcols1-2.36.2-1.5.x86_64.rpm ..........................[done]
Retrieving package libuuid1-2.36.2-1.5.x86_64
                                         (10/23), 150.0 KiB ( 30.2 KiB unpacked)
Retrieving: libuuid1-2.36.2-1.5.x86_64.rpm ...............................[done]
Retrieving package login_defs-4.8.1-6.2.noarch
                                         (11/23),  33.9 KiB ( 16.8 KiB unpacked)
Retrieving: login_defs-4.8.1-6.2.noarch.rpm .................[done (56.3 KiB/s)]
Retrieving package permissions-config-1550_20210125-27.3.x86_64
                                         (12/23),  59.2 KiB ( 46.4 KiB unpacked)
Retrieving: permissions-config-1550_20210125-27.3.x86_64.rpm .............[done]
Retrieving package libmount1-2.36.2-1.5.x86_64
                                         (13/23), 245.4 KiB (262.7 KiB unpacked)
Retrieving: libmount1-2.36.2-1.5.x86_64.rpm ..............................[done]
Retrieving package libsemanage2-3.2-1.3.x86_64
                                         (14/23), 110.3 KiB (267.4 KiB unpacked)
Retrieving: libsemanage2-3.2-1.3.x86_64.rpm ..............................[done]
Retrieving package libfdisk1-2.36.2-1.5.x86_64
                                         (15/23), 266.6 KiB (322.5 KiB unpacked)
Retrieving: libfdisk1-2.36.2-1.5.x86_64.rpm ..............................[done]
Retrieving package permissions-20210125.1550-27.3.x86_64
                                         (16/23),  23.4 KiB (    0   B unpacked)
Retrieving: permissions-20210125.1550-27.3.x86_64.rpm ....................[done]
Retrieving package pam_unix-1.5.1-4.2.x86_64
                                         (17/23),  68.0 KiB ( 54.8 KiB unpacked)
Retrieving: pam_unix-1.5.1-4.2.x86_64.rpm ................................[done]
Retrieving package pam-1.5.1-4.2.x86_64  (18/23), 430.4 KiB (  1.6 MiB unpacked)
Retrieving: pam-1.5.1-4.2.x86_64.rpm .....................................[done]
Retrieving package shadow-4.8.1-6.2.x86_64
                                         (19/23), 655.1 KiB (  3.0 MiB unpacked)
Retrieving: shadow-4.8.1-6.2.x86_64.rpm ..................................[done]
Retrieving package sysuser-shadow-3.0-10.2.noarch
                                         (20/23),  11.9 KiB (  2.3 KiB unpacked)
Retrieving: sysuser-shadow-3.0-10.2.noarch.rpm .............[done (310.3 KiB/s)]
Retrieving package system-group-hardware-20170617-21.2.noarch
                                         (21/23),  12.9 KiB (  340   B unpacked)
Retrieving: system-group-hardware-20170617-21.2.noarch.rpm ...............[done]
Retrieving package libutempter0-1.2.0-3.3.x86_64
                                         (22/23),  26.3 KiB ( 54.8 KiB unpacked)
Retrieving: libutempter0-1.2.0-3.3.x86_64.rpm ............................[done]
Retrieving package util-linux-2.36.2-1.5.x86_64
                                         (23/23),   1.1 MiB (  3.9 MiB unpacked)
Retrieving: util-linux-2.36.2-1.5.x86_64.rpm .............................[done]

Checking for file conflicts: .............................................[done]
( 1/23) Installing: chkstat-1550_20210125-27.3.x86_64 ....................[done]
( 2/23) Installing: libaudit1-2.8.5-5.3.x86_64 ...........................[done]
( 3/23) Installing: libblkid1-2.36.2-1.5.x86_64 ..........................[done]
( 4/23) Installing: libcap-ng0-0.7.10-1.18.x86_64 ........................[done]
( 5/23) Installing: libcrypt1-4.4.19-1.1.x86_64 ..........................[done]
( 6/23) Installing: libeconf0-0.4.0+git20210413.fdb8025-1.1.x86_64 .......[done]
( 7/23) Installing: libsemanage-conf-3.2-1.3.x86_64 ......................[done]
( 8/23) Installing: libsepol2-3.2-1.1.x86_64 .............................[done]
( 9/23) Installing: libsmartcols1-2.36.2-1.5.x86_64 ......................[done]
(10/23) Installing: libuuid1-2.36.2-1.5.x86_64 ...........................[done]
(11/23) Installing: login_defs-4.8.1-6.2.noarch ..........................[done]
(12/23) Installing: permissions-config-1550_20210125-27.3.x86_64 .........[done]
Additional rpm output:
ERROR: fillup not found. This should not happen. Please compare
/etc/sysconfig/security and /sysconfig.security and
update by hand.
error opening /etc/sysconfig/security: No such file or directory


(13/23) Installing: libmount1-2.36.2-1.5.x86_64 ..........................[done]
(14/23) Installing: libsemanage2-3.2-1.3.x86_64 ..........................[done]
(15/23) Installing: libfdisk1-2.36.2-1.5.x86_64 ..........................[done]
(16/23) Installing: permissions-20210125.1550-27.3.x86_64 ................[done]
(17/23) Installing: pam_unix-1.5.1-4.2.x86_64 ............................[done]
(18/23) Installing: pam-1.5.1-4.2.x86_64 .................................[done]
(19/23) Installing: shadow-4.8.1-6.2.x86_64 ..............................[done]
(20/23) Installing: sysuser-shadow-3.0-10.2.noarch .......................[done]
(21/23) Installing: system-group-hardware-20170617-21.2.noarch ..........[error]
Installation of system-group-hardware-20170617-21.2.noarch failed:
Error: Subprocess failed. Error: RPM failed: ERROR: neither groupadd nor busybox found!
error: %prein(system-group-hardware-20170617-21.2.noarch) scriptlet failed, exit status 1
error: system-group-hardware-20170617-21.2.noarch: install failed

Abort, retry, ignore? [a/r/i] (a): a
Warning: %posttrans scripts skipped while aborting:
    login_defs-4.8.1-6.2.noarch.rpm
    pam-1.5.1-4.2.x86_64.rpm
    shadow-4.8.1-6.2.x86_64.rpm

Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.
Comment 2 Thorsten Kukuk 2021-05-07 12:26:58 UTC
This is not a base container problem, but a well known problem of container runtimes blocking syscalls wrongly.

So the most important information is missing: which container runtime on which system?
Comment 3 Konstantin Malanchev 2021-05-07 13:20:00 UTC
Thank you for the quick answer!

I haven't meet this behaviour with any other image before...

My "host" system details:

# uname -a
Linux sai 5.3.18-lp152.33-default #1 SMP Wed Jul 22 06:32:33 UTC 2020 (e5a8383) x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.2"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.2"
PRETTY_NAME="openSUSE Leap 15.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

# zypper info docker
Repository 'Main Update Repository' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Reading installed packages...


Information for package docker:
-------------------------------
Repository     : Main Update Repository
Name           : docker
Version        : 19.03.15_ce-lp152.2.9.1
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 158.3 MiB
Installed      : Yes
Status         : up-to-date
Source package : docker-19.03.15_ce-lp152.2.9.1.src
Summary        : The Moby-project Linux container runtime
Comment 4 Thorsten Kukuk 2021-05-07 13:49:22 UTC
Ok, you are using openSUSE Leap, not Tumbleweed.
The runc update for Leap 15.x is still somewhere in maintenance.
Comment 5 Marcus Meissner 2021-05-07 15:04:41 UTC
(looks more like a dependency problem however)
Comment 6 Konstantin Malanchev 2021-05-09 08:40:15 UTC
Does it mean that I cannot use Tumbleweed docker images on Leap? Because for me it sounds like a typical case: I use the stable release for the system and the unstable OS for some containers, it doesn't look like a good idea to run the main system on Tumbleweed
Comment 7 Matwey Kornilov 2021-05-26 19:22:38 UTC
touch /.buildenv

before

zypper --non-interactive install util-linux

helps to overcome the issue with %postin script of system-group-hardware.
Comment 8 Fabian Vogt 2021-06-08 09:37:39 UTC
(In reply to Marcus Meissner from comment #5)
> (looks more like a dependency problem however)

No, this is because "faccessat2" is blocked by the container runtime.
The fix for that is part of https://maintenance.suse.de/incident/19368/ (aka bsc#1184962).

*** This bug has been marked as a duplicate of bug 1182451 ***
Comment 9 Matwey Kornilov 2021-06-08 10:59:49 UTC
Fabian, do you have the estimate when the fix will be released for Leap 15.2?