Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2077062

Summary: rpm-ostreed.service failed to set up and is not available
Product: Red Hat Enterprise Linux 9 Reporter: lpellecc
Component: rpm-ostreeAssignee: Colin Walters <walters>
Status: CLOSED ERRATA QA Contact: Micah Abbott <miabbott>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: agupte, alexl, hhei, jlebon, leiwang, mnguyen, rasibley, walters
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-ostree-2022.8-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2094085 (view as bug list) Environment:
Last Closed: 2022-11-15 10:09:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2094085    

Description lpellecc 2022-04-20 15:10:56 UTC
Description of problem:
For the RHIVOS (Red Hat In Vehicle Operating System) project, we ran into an issue where rpm-ostree service failed to start. There is fix pending upstream, can we please backport this fix for RHEL9
https://github.com/coreos/rpm-ostree/pull/3623/files
 
 
Version-Release number of selected component (if applicable):
rpm-ostree-2022.7-2.el9.x86_64
 
How reproducible:
always
 
Steps to Reproduce:
run rpm-ostree status
 
Actual results:
~]# rpm-ostree status
rpm-ostreed.service: Failed to set up mount namespacing: /run/systemd/unit-root/var/lib/containers: No such file or directory
rpm-ostreed.service: Failed at step NAMESPACE spawning /usr/bin/rpm-ostree: No such file or directory
rpm-ostreed.service: Main process exited, code=exited, status=226/NAMESPACE
rpm-ostreed.service: Failed with result 'exit-code'.
Job for rpm-ostreed.service failed because the control process exited with error code.
See "systemctl status rpm-ostreed.service" and "journalctl -xeu rpm-ostreed.service" for details.
× rpm-ostreed.service - rpm-ostree System Management Daemon
     Loaded: loaded (/usr/lib/systemd/system/rpm-ostreed.service; static)
     Active: failed (Result: exit-code) since Wed 2022-04-20 12:39:36 UTC; 22ms ago
       Docs: man:rpm-ostree(1)
    Process: 687 ExecStart=/usr/bin/rpm-ostree start-daemon (code=exited, status=226/NAMESPACE)
   Main PID: 687 (code=exited, status=226/NAMESPACE)
        CPU: 3ms
error: exit status: 1
 
Expected results:
idle
 
Additional info:

Comment 3 Colin Walters 2022-04-20 23:55:04 UTC
Fixed in https://github.com/coreos/rpm-ostree/pull/3623

Comment 4 Colin Walters 2022-04-21 18:17:56 UTC
To verify this, with a previous version of rpm-ostree:

$ systemctl stop rpm-ostreed
$ mv /var/lib/containers{,.old}
$ systemctl start rpm-ostreed

This should print a failure message.

Now, upgrade to rpm-ostree-2022.8-2.el9 (you could e.g. use `rpm-ostree usroverlay && rpm -Uvh`), then:


$ systemctl daemon-reload  # Ensure the updated systemd unit file is applied
$ systemctl start rpm-ostreed

should work.

Comment 5 HuijingHei 2022-04-22 07:26:58 UTC
Hi Colin, I do not have rhcos9 build, is there any way to verify this?

Comment 11 Advait Shailesh Gupte 2022-04-26 18:20:11 UTC
@mnguyen @walters 
The issue still appears for me when I try to install vim using the command rpm-ostree install -A vim. I get the following error:

[root@ibm-p8-kvm-03-guest-02 ~]# rpm-ostree install -A vim
[ 1548.256285] rpm-ostree[848]: Reading config file '/etc/rpm-ostreed.conf'
[ 1548.284890] rpm-ostree[848]: In idle state; will auto-exit in 60 seconds
[ 1548.295872] rpm-ostree[848]: Allowing active client :1.31 (uid 0)
[ 1548.307819] rpm-ostree[848]: client(id:cli dbus:1.31 unit:session-1.scope uid:0) added; new total=1
[ 1548.329840] rpm-ostree[848]: Locked sysroot
[ 1548.338858] rpm-ostree[848]: Initiated txn UpdateDeployment for client(id:cli dbus:1.31 unit:session-1.scope uid:0): /org/projectatomic/rpmostree1/rhivos
[ 1548.360826] rpm-ostree[848]: Process [pid: 843 uid: 0 unit: session-1.scope] connected to transaction progress
[ 1548.377832] rpm-ostree[848]: Librepo version: 1.14.2 with CURL_GLOBAL_ACK_EINTR support (libcurl/7.76.1 OpenSSL/3.0.1 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh/0.9.6/openssl/zlib nghttp2/1.43.0)
Checking out tree 2b3155a... done
Enabled rpm-md repositories: epel
Importing rpm-md... done
rpm-md repo 'epel' (cached); generated: 2022-04-26T06:34:21Z solvables: 6915
[ 1549.874724] rpm-ostree[848]: Preparing pkg txn; enabled repos: ['epel'] solvables: 6915
[ 1549.893331] rpm-ostree[848]: Txn UpdateDeployment on /org/projectatomic/rpmostree1/rhivos failed: Packages not found: vim
[ 1548.329840] rpm-ostree[848]: Locked sysroot
[ 1548.338858] rpm-ostree[848]: Initiated txn UpdateDeployment for client(id:cli dbus:1.31 unit:session-1.scope uid:0): /org/projectatomic/rpmostree1/rhivos
[ 1548.360826] rpm-ostree[848]: Process [pid: 843 uid: 0 unit: session-1.scope] connected to transaction progressgress
[ 1548.377832] rpm-ostree[848]: Librepo version: 1.14.2 with CURL_GLOBAL_ACK_EINTR support (libcurl/7.76.1 OpenSSL/3.0.1 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh/0.9.6/openssl/zlib nghttp2/1.43.0); will auto-exit in 63 seconds

I tried the follow the above steps mentioned by @mnguyen and on the latest version of rpm-ostree.

[root@ibm-p8-kvm-03-guest-02 ~]# rpm -q rpm-ostree
rpm-ostree-2022.8-2.el9.x86_64

[root@ibm-p8-kvm-03-guest-02 ~]# rpm-ostree status
[ 1718.662534] rpm-ostree[884]: Reading config file '/etc/rpm-ostreed.conf'
[ 1718.681188] rpm-ostree[884]: In idle state; will auto-exit in 63 seconds
[ 1718.687138] rpm-ostree[884]: Allowing active client :1.33 (uid 0)
State: idle
Deployments:
[ 1718.701831] rpm-ostree[884]: client(id:cli dbus:1.33 unit:session-1.scope uid:0) added; new total=1
● auto-sig:cs9/x86_64/qemu-qa
                   Version: 9 (2022-04-26T17:25:06Z)
                    Commit: 2b3155a499cd845bdd2374287ec5b63720f2aedbb1774a4536c8b039ed0fe4f2
                  Unlocked: development
[root@ibm-p8-kvm-03-guest-02 ~]# [ 1718.730555] rpm-ostree[884]: client(id:cli dbus:1.33 unit:session-1.scope uid:0) vanished; remaining=0
[ 1718.736494] rpm-ostree[884]: In idle state; will auto-exit in 60 seconds

cc @lpellecc

Comment 12 Advait Shailesh Gupte 2022-04-26 18:20:44 UTC
@mnguyen @walters 
The issue still appears for me when I try to install vim using the command rpm-ostree install -A vim. I get the following error:

[root@ibm-p8-kvm-03-guest-02 ~]# rpm-ostree install -A vim
[ 1548.256285] rpm-ostree[848]: Reading config file '/etc/rpm-ostreed.conf'
[ 1548.284890] rpm-ostree[848]: In idle state; will auto-exit in 60 seconds
[ 1548.295872] rpm-ostree[848]: Allowing active client :1.31 (uid 0)
[ 1548.307819] rpm-ostree[848]: client(id:cli dbus:1.31 unit:session-1.scope uid:0) added; new total=1
[ 1548.329840] rpm-ostree[848]: Locked sysroot
[ 1548.338858] rpm-ostree[848]: Initiated txn UpdateDeployment for client(id:cli dbus:1.31 unit:session-1.scope uid:0): /org/projectatomic/rpmostree1/rhivos
[ 1548.360826] rpm-ostree[848]: Process [pid: 843 uid: 0 unit: session-1.scope] connected to transaction progress
[ 1548.377832] rpm-ostree[848]: Librepo version: 1.14.2 with CURL_GLOBAL_ACK_EINTR support (libcurl/7.76.1 OpenSSL/3.0.1 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh/0.9.6/openssl/zlib nghttp2/1.43.0)
Checking out tree 2b3155a... done
Enabled rpm-md repositories: epel
Importing rpm-md... done
rpm-md repo 'epel' (cached); generated: 2022-04-26T06:34:21Z solvables: 6915
[ 1549.874724] rpm-ostree[848]: Preparing pkg txn; enabled repos: ['epel'] solvables: 6915
[ 1549.893331] rpm-ostree[848]: Txn UpdateDeployment on /org/projectatomic/rpmostree1/rhivos failed: Packages not found: vim
[ 1548.329840] rpm-ostree[848]: Locked sysroot
[ 1548.338858] rpm-ostree[848]: Initiated txn UpdateDeployment for client(id:cli dbus:1.31 unit:session-1.scope uid:0): /org/projectatomic/rpmostree1/rhivos
[ 1548.360826] rpm-ostree[848]: Process [pid: 843 uid: 0 unit: session-1.scope] connected to transaction progressgress
[ 1548.377832] rpm-ostree[848]: Librepo version: 1.14.2 with CURL_GLOBAL_ACK_EINTR support (libcurl/7.76.1 OpenSSL/3.0.1 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh/0.9.6/openssl/zlib nghttp2/1.43.0); will auto-exit in 63 seconds

I tried the follow the above steps mentioned by @mnguyen and on the latest version of rpm-ostree.

[root@ibm-p8-kvm-03-guest-02 ~]# rpm -q rpm-ostree
rpm-ostree-2022.8-2.el9.x86_64

[root@ibm-p8-kvm-03-guest-02 ~]# rpm-ostree status
[ 1718.662534] rpm-ostree[884]: Reading config file '/etc/rpm-ostreed.conf'
[ 1718.681188] rpm-ostree[884]: In idle state; will auto-exit in 63 seconds
[ 1718.687138] rpm-ostree[884]: Allowing active client :1.33 (uid 0)
State: idle
Deployments:
[ 1718.701831] rpm-ostree[884]: client(id:cli dbus:1.33 unit:session-1.scope uid:0) added; new total=1
● auto-sig:cs9/x86_64/qemu-qa
                   Version: 9 (2022-04-26T17:25:06Z)
                    Commit: 2b3155a499cd845bdd2374287ec5b63720f2aedbb1774a4536c8b039ed0fe4f2
                  Unlocked: development
[root@ibm-p8-kvm-03-guest-02 ~]# [ 1718.730555] rpm-ostree[884]: client(id:cli dbus:1.33 unit:session-1.scope uid:0) vanished; remaining=0
[ 1718.736494] rpm-ostree[884]: In idle state; will auto-exit in 60 seconds

cc @lpellecc

Comment 13 Colin Walters 2022-04-26 18:38:27 UTC
> [ 1549.893331] rpm-ostree[848]: Txn UpdateDeployment on /org/projectatomic/rpmostree1/rhivos failed: Packages not found: vim

That has nothing to do with this bug.

The cause of that error is:

> [ 1549.874724] rpm-ostree[848]: Preparing pkg txn; enabled repos: ['epel'] solvables: 6915

You only have the EPEL rpm-md repo enabled, not the base C9S repositories.

Comment 14 Lei Wang 2022-05-02 23:55:37 UTC
(In reply to Colin Walters from comment #13)
> > [ 1549.893331] rpm-ostree[848]: Txn UpdateDeployment on /org/projectatomic/rpmostree1/rhivos failed: Packages not found: vim
> 
> That has nothing to do with this bug.
> 
> The cause of that error is:
> 
> > [ 1549.874724] rpm-ostree[848]: Preparing pkg txn; enabled repos: ['epel'] solvables: 6915
> 
> You only have the EPEL rpm-md repo enabled, not the base C9S repositories.

Advait, your issue has been resolved by enabling BaseOS and AppStream repos IIUC.

Clearing the needinfo for Mike and Luigi.

Comment 15 Michael Nguyen 2022-05-04 13:25:30 UTC
Moving this bug to VERIFIED.  I worked with Advait and issue in this BZ is resolved.  The secondary issue was just because the BaseOS and AppStream repos were not enabled.

Comment 16 Advait Shailesh Gupte 2022-05-04 20:31:01 UTC
@walters as @leiwang mentioned above in comment 14 for my issue:
> [ 1549.893331] rpm-ostree[848]: Txn UpdateDeployment on /org/projectatomic/rpmostree1/rhivos failed: Packages not found: vim
> [ 1549.874724] rpm-ostree[848]: Preparing pkg txn; enabled repos: ['epel'] solvables: 6915

I worked with @mnguyen and figured out that vim package was not part of epel repository instead vim is part of vim-enhanced package within the AppStream repository. I ended up installing package vim-minimal first for which I had to enabled BaseOS repository. It might be possible that these repositories were not enabled as I was running this on Fedora 35 on a power machine for the first time. I usually would run my tests on a beaker machine.

Also the $basearch was not populating properly and I had to manually change it to x86_64.

In total, after enabling the repos BaseOS and AppStream I was able to install vim packages.

Comment 18 errata-xmlrpc 2022-11-15 10:09:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rpm-ostree bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8004