Red Hat Bugzilla – Bug 1421867
rpm-ostree daemon does not start when system is unsubscribed
Last modified: 2017-03-02 17:39:44 EST
Using the cloud image from the pending 7.3.3 RHELAH release, it was observed that users were unable to use 'atomic host status'. Neither privileged or unprivileged users were successful. $ atomic host status error: No such interface 'org.projectatomic.rpmostree1.Sysroot' on object at path /org/projectatomic/rpmostree1/Sysroot $ sudo atomic host status error: The name :1.15 was not provided by any .service files Inspection of the service and journal shows the following: $ systemctl status rpm-ostreed.service ● rpm-ostreed.service - OSTree+RPM package management daemon Loaded: loaded (/usr/lib/systemd/system/rpm-ostreed.service; static; vendor preset: disabled) Active: inactive (dead) Feb 13 22:05:51 rhel-atomic-7.2-test systemd[1]: Starting OSTree+RPM package management daemon... Feb 13 22:05:51 rhel-atomic-7.2-test rpm-ostreed[7477]: rpm-ostreed starting Feb 13 22:05:51 rhel-atomic-7.2-test rpm-ostreed[7477]: Couldn't start daemon: Error setting up sysroot: origin unconfigured-state: This system is not registered to Red Hat Subscription Managemen... to register. Feb 13 22:05:51 rhel-atomic-7.2-test systemd[1]: Started OSTree+RPM package management daemon. Feb 13 22:05:51 rhel-atomic-7.2-test rpm-ostreed[7477]: rpm-ostreed exiting Feb 13 22:06:24 rhel-atomic-7.2-test systemd[1]: Starting OSTree+RPM package management daemon... Feb 13 22:06:24 rhel-atomic-7.2-test rpm-ostreed[11973]: rpm-ostreed starting Feb 13 22:06:24 rhel-atomic-7.2-test rpm-ostreed[11973]: Couldn't start daemon: Error setting up sysroot: origin unconfigured-state: This system is not registered to Red Hat Subscription Manageme... to register. Feb 13 22:06:24 rhel-atomic-7.2-test rpm-ostreed[11973]: rpm-ostreed exiting Feb 13 22:06:24 rhel-atomic-7.2-test systemd[1]: Started OSTree+RPM package management daemon. Hint: Some lines were ellipsized, use -l to show in full. The culprit (IMO): rpm-ostreed[7477]: Couldn't start daemon: Error setting up sysroot: origin unconfigured-state: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. This will be a problem for users that have freshly installed a VM but have not yet registered with subscription-manager. We did not see this in our upgrade testing, because the system was already registered prior to performing the upgrade from 7.3.2 to 7.3.3. This is a regression and a blocker.
$ rpm -q rpm-ostree-client ostree rpm-ostree-client-2017.1-3.atomic.el7.x86_64 ostree-2017.1-2.atomic.el7.x86_64
Ug. Yes, this is likely to be due to changes in the daemon for parsing the sysroot state.
Two things to improve: - The autobrew stream being broken for ENOSPC for a while and us not consistently watching the results - Upstream tests don't currently have coverage of this special unsubscribed state
I'll work on this tonight.
https://github.com/projectatomic/rpm-ostree/pull/626
(In reply to Colin Walters from comment #4) > Two things to improve: > > - The autobrew stream being broken for ENOSPC for a while and us not > consistently watching the results Agreed. Need a better way of getting nagged when the builds fail. > - Upstream tests don't currently have coverage of this special unsubscribed > state https://trello.com/c/6o9me2xB/654-3-add-test-for-running-rpm-ostreed-on-unsubscribed-system
This is fixed with rpm-ostree-client-2017.1-6.atomic.el7.x86_64
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, 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/RHSA-2017:0444