Bug 2077062
| Summary: | rpm-ostreed.service failed to set up and is not available | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | lpellecc | |
| Component: | rpm-ostree | Assignee: | Colin Walters <walters> | |
| Status: | CLOSED ERRATA | QA Contact: | Micah Abbott <miabbott> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | unspecified | CC: | agupte, alexl, hhei, jlebon, leiwang, mnguyen, rasibley, walters | |
| Target Milestone: | rc | Keywords: | 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
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.
Hi Colin, I do not have rhcos9 build, is there any way to verify this? @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
@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
> [ 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. (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. 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. @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. 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 |