Bug 1803240 - Cannot install systemd-245~rc1-2.fc32 in container
Summary: Cannot install systemd-245~rc1-2.fc32 in container
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-14 19:04 UTC by Lukas Slebodnik
Modified: 2020-04-01 18:26 UTC (History)
7 users (show)

Fixed In Version: systemd-245.2-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-01 18:26:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Slebodnik 2020-02-14 19:04:01 UTC
Description of problem:
I use containers to run various tests for different reproducer and one of tests is to rebuilds src.rpm in mock. I use `/usr/bin/mock --old-chroot` + necesary capabilities.
And I failed to rebuild some src.rpm in rawhide container.

After some time I managed to reduce issue to installing a systemd in container.  

Version-Release number of selected component (if applicable):
systemd-245~rc1-2.fc32.x86_64

How reproducible:
Deterministic

Steps to Reproduce:
1. dnf install -y podman
2. podman pull docker.io/fedora:rawhide
3. podman run --rm -ti docker.io/fedora:rawhide bash -c '/usr/bin/dnf install --installroot /var/tmp/  --setopt=deltarpm=False -y --nogpgcheck systemd' && echo OK

Actual results:

sh# podman run --rm -ti docker.io/fedora:rawhide bash -c '/usr/bin/dnf install --installroot /var/tmp/  --setopt=deltarpm=False -y --nogpgcheck systemd' && echo OK
Unable to detect release version (use '--releasever' to specify release version)
Fedora - Modular Rawhide - Developmental packages for the next Fedora rel 4.1 MB/s | 4.4 MB     00:01    
Fedora - Rawhide - Developmental packages for the next Fedora release      21 MB/s |  70 MB     00:03    
Last metadata expiration check: 0:00:01 ago on Fri Feb 14 18:46:09 2020.
Dependencies resolved.
==========================================================================================================
 Package                          Arch        Version                                  Repository    Size
==========================================================================================================
Installing:
 systemd                          x86_64      245~rc1-2.fc32                           rawhide      4.2 M
Installing dependencies:
 acl                              x86_64      2.2.53-5.fc32                            rawhide       72 k

//snip

 openssl-pkcs11                   x86_64      0.4.10-5.fc32                            rawhide       70 k
 python-unversioned-command       noarch      3.8.1-2.fc32                             rawhide       14 k
 python3-pip                      noarch      19.3.1-2.fc32                            rawhide      1.7 M
 python3-setuptools               noarch      41.6.0-2.fc32                            rawhide      588 k
 trousers                         x86_64      0.3.13-13.fc31                           rawhide      150 k

Transaction Summary
==========================================================================================================
Install  126 Packages

Total download size: 73 M
Installed size: 406 M
Downloading Packages:
(1/126): alternatives-1.11-6.fc32.x86_64.rpm                              147 kB/s |  35 kB     00:00    

//snip

  Running scriptlet: systemd-245~rc1-2.fc32.x86_64                                                123/126 
  Installing       : systemd-245~rc1-2.fc32.x86_64                                                123/126 
  Running scriptlet: systemd-245~rc1-2.fc32.x86_64                                                123/126 
  Installing       : dbus-common-1:1.12.16-4.fc32.noarch                                          124/126 
  Running scriptlet: dbus-common-1:1.12.16-4.fc32.noarch                                          124/126 
Created symlink /etc/systemd/system/sockets.target.wants/dbus.socket → /usr/lib/systemd/system/dbus.socket.
Created symlink /etc/systemd/user/sockets.target.wants/dbus.socket → /usr/lib/systemd/user/dbus.socket.

  Running scriptlet: dbus-broker-21-7.fc32.x86_64                                                 125/126 
  Installing       : dbus-broker-21-7.fc32.x86_64                                                 125/126 
  Running scriptlet: dbus-broker-21-7.fc32.x86_64                                                 125/126 
Failed to get unit file state for dbus-daemon.service: No such file or directory
Failed to get unit file state for dbus-daemon.service: No such file or directory
Failed to disable unit, unit dbus-daemon.service does not exist.
Failed to disable unit, unit dbus-daemon.service does not exist.

  Running scriptlet: trousers-0.3.13-13.fc31.x86_64                                               126/126 
  Installing       : trousers-0.3.13-13.fc31.x86_64                                               126/126 
  Running scriptlet: trousers-0.3.13-13.fc31.x86_64                                               126/126 
  Running scriptlet: filesystem-3.14-2.fc32.x86_64                                                126/126 
  Running scriptlet: glibc-all-langpacks-2.31-1.fc32.x86_64                                       126/126 
  Running scriptlet: crypto-policies-scripts-20191128-5.gitcd267a5.fc32.noarch                    126/126 
  Running scriptlet: glibc-common-2.31-1.fc32.x86_64                                              126/126 
  Running scriptlet: systemd-245~rc1-2.fc32.x86_64                                                126/126 
sh# echo $?
143


Expected results:
sh# podman run --rm -ti docker.io/fedora:rawhide bash -c '/usr/bin/dnf install --installroot /var/tmp/  --setopt=deltarpm=False -y --nogpgcheck systemd' && echo OK
Unable to detect release version (use '--releasever' to specify release version)
Fedora - Modular Rawhide - Developmental packages for the next Fedora rel 4.1 MB/s | 4.4 MB     00:01    
Fedora - Rawhide - Developmental packages for the next Fedora release      21 MB/s |  70 MB     00:03    
Last metadata expiration check: 0:00:01 ago on Fri Feb 14 18:46:09 2020.
Dependencies resolved.
==========================================================================================================
 Package                          Arch        Version                                  Repository    Size
==========================================================================================================
Installing:
 systemd                          x86_64      245~rc1-2.fc32                           rawhide      4.2 M
Installing dependencies:
 acl                              x86_64      2.2.53-5.fc32                            rawhide       72 k

//snip

 openssl-pkcs11                   x86_64      0.4.10-5.fc32                            rawhide       70 k
 python-unversioned-command       noarch      3.8.1-2.fc32                             rawhide       14 k
 python3-pip                      noarch      19.3.1-2.fc32                            rawhide      1.7 M
 python3-setuptools               noarch      41.6.0-2.fc32                            rawhide      588 k
 trousers                         x86_64      0.3.13-13.fc31                           rawhide      150 k

Transaction Summary
==========================================================================================================
Install  126 Packages

Total download size: 73 M
Installed size: 406 M
Downloading Packages:
(1/126): alternatives-1.11-6.fc32.x86_64.rpm                              147 kB/s |  35 kB     00:00    

//snip

  Running scriptlet: systemd-245~rc1-2.fc32.x86_64                                                123/126 
  Installing       : systemd-245~rc1-2.fc32.x86_64                                                123/126 
  Running scriptlet: systemd-245~rc1-2.fc32.x86_64                                                123/126 
  Installing       : dbus-common-1:1.12.16-4.fc32.noarch                                          124/126 
  Running scriptlet: dbus-common-1:1.12.16-4.fc32.noarch                                          124/126 
Created symlink /etc/systemd/system/sockets.target.wants/dbus.socket → /usr/lib/systemd/system/dbus.socket.
Created symlink /etc/systemd/user/sockets.target.wants/dbus.socket → /usr/lib/systemd/user/dbus.socket.

  Running scriptlet: dbus-broker-21-7.fc32.x86_64                                                 125/126 
  Installing       : dbus-broker-21-7.fc32.x86_64                                                 125/126 
  Running scriptlet: dbus-broker-21-7.fc32.x86_64                                                 125/126 
Failed to get unit file state for dbus-daemon.service: No such file or directory
Failed to get unit file state for dbus-daemon.service: No such file or directory
Failed to disable unit, unit dbus-daemon.service does not exist.
Failed to disable unit, unit dbus-daemon.service does not exist.

  Running scriptlet: trousers-0.3.13-13.fc31.x86_64                                               126/126 
  Installing       : trousers-0.3.13-13.fc31.x86_64                                               126/126 
  Running scriptlet: trousers-0.3.13-13.fc31.x86_64                                               126/126 
  Running scriptlet: filesystem-3.14-2.fc32.x86_64                                                126/126 
  Running scriptlet: glibc-all-langpacks-2.31-1.fc32.x86_64                                       126/126 
  Running scriptlet: crypto-policies-scripts-20191128-5.gitcd267a5.fc32.noarch                    126/126 
  Running scriptlet: glibc-common-2.31-1.fc32.x86_64                                              126/126 
  Running scriptlet: systemd-245~rc1-2.fc32.x86_64                                                126/126

//snip

  Verifying        : systemd-245~rc1-2.fc32.x86_64                                            123/126                                                                                  
  Verifying        : systemd-libs-245~rc1-2.fc32.x86_64                                       124/126                                                                                  
  Verifying        : systemd-pam-245~rc1-2.fc32.x86_64                                        125/126 ==                                                                               
  Verifying        : systemd-rpm-macros-245~rc1-2.fc32.noarch                                 126/126                                                                                  
                                                                                                            
Installed:                                                                                                                                          
  systemd-245~rc1-2.fc32.x86_64                                                                                                                                                        
  systemd-libs-245~rc1-2.fc32.x86_64                                                                                                                                                   
  systemd-pam-245~rc1-2.fc32.x86_64                                                                                                                                                    
  systemd-rpm-macros-245~rc1-2.fc32.noarch

//snip

  trousers-lib-0.3.13-13.fc31.x86_64                                                                        
  tzdata-2019c-3.fc32.noarch                                                                                
  util-linux-2.35.1-4.fc32.x86_64                                                                           
  whois-nls-5.5.5-2.fc32.noarch                                                                             
  xkeyboard-config-2.29-1.fc32.noarch                                                                       
  xz-libs-5.2.4-8.fc32.x86_64                                                                               
  zlib-1.2.11-21.fc32.x86_64                                                                                
                                                                                                            
Complete!                                                                                                   
OK

Additional info:

Installing older version from koji works well

podman run --rm -ti docker.io/fedora:rawhide bash -c '/usr/bin/dnf install --installroot /var/tmp/  --setopt=deltarpm=False -y --nogpgcheck https://kojipkgs.fedoraproject.org//packages/systemd/244.1/2.fc32/noarch/systemd-rpm-macros-244.1-2.fc32.noarch.rpm https://kojipkgs.fedoraproject.org//packages/systemd/244.1/2.fc32/x86_64/systemd-244.1-2.fc32.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/systemd/244.1/2.fc32/x86_64/systemd-libs-244.1-2.fc32.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/systemd/244.1/2.fc32/x86_64/systemd-pam-244.1-2.fc32.x86_64.rpm' && echo OK

It is cuased by 
https://src.fedoraproject.org/rpms/systemd/c/58b22cf334d6f92754ef84e2a7c53a90500a0695?branch=master

Always sending signal TERM to process with PID 1 does not sounds like a good idea.
It shall be send if and only if systemd is running.

Comment 1 Zbigniew Jędrzejewski-Szmek 2020-02-26 15:13:04 UTC
Thanks for the report and the diagnosis. A fix is queued, will go out with the next build.

Comment 2 Zbigniew Jędrzejewski-Szmek 2020-03-03 13:21:15 UTC
Fixed in rawhide now.

Comment 3 Lukas Slebodnik 2020-03-07 15:58:08 UTC
The same problem is also on f32
https://src.fedoraproject.org/rpms/systemd/blob/f32/f/systemd.spec#_550

Do you plan to fix it there as well ?

Comment 4 Zbigniew Jędrzejewski-Szmek 2020-03-07 17:13:00 UTC
The bug *is* assigned to F32. I'm waiting for the beta freeze to end.

Comment 5 Lukas Slebodnik 2020-03-09 11:41:48 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #4)
> The bug *is* assigned to F32. I'm waiting for the beta freeze to end.

Correct me if I am wrong. Beta freeze is only about getting package from updates-testing -> updates/stable.
Or is there any blocker for fixed version in updates-testing ?

Comment 6 Zbigniew Jędrzejewski-Szmek 2020-03-09 13:11:48 UTC
If I queue up an update in updates-testing, and a different bug comes in with a
freeze exception, I'd have to revert the changes that were done in the first update,
and then do a build with only the fix for the freeze exception bug. When I tried to
push unrelated fixes in the past during the beta freeze, AdamW was unhappy.

Comment 7 Lukas Slebodnik 2020-03-09 19:35:20 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #6)
> If I queue up an update in updates-testing, and a different bug comes in
> with a
> freeze exception, I'd have to revert the changes that were done in the first
> update,
> and then do a build with only the fix for the freeze exception bug. When I
> tried to
> push unrelated fixes in the past during the beta freeze, AdamW was unhappy.

fair enough

Comment 8 Fedora Update System 2020-03-18 21:18:37 UTC
FEDORA-2020-645de57f2e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-645de57f2e

Comment 9 Fedora Update System 2020-03-19 02:26:38 UTC
systemd-245.2-1.fc32 has been pushed to the Fedora 32 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-645de57f2e

Comment 10 Fedora Update System 2020-03-23 20:24:49 UTC
FEDORA-2020-645de57f2e has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Zbigniew Jędrzejewski-Szmek 2020-04-01 18:26:29 UTC
For some reason, bodhi didn't close this bug.


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