Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1421867 - rpm-ostree daemon does not start when system is unsubscribed
rpm-ostree daemon does not start when system is unsubscribed
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm-ostree-client (Show other bugs)
7.3
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Colin Walters
atomic-bugs@redhat.com
: Extras
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-13 17:16 EST by Micah Abbott
Modified: 2017-03-02 17:39 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-03-02 17:39:44 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0444 normal SHIPPED_LIVE Moderate: rpm-ostree and rpm-ostree-client security, bug fix, and enhancement update 2017-03-03 17:45:15 EST

  None (edit)
Description Micah Abbott 2017-02-13 17:16:05 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.
Comment 2 Micah Abbott 2017-02-13 17:18:23 EST
$ rpm -q rpm-ostree-client ostree
rpm-ostree-client-2017.1-3.atomic.el7.x86_64
ostree-2017.1-2.atomic.el7.x86_64
Comment 3 Colin Walters 2017-02-13 17:20:37 EST
Ug.  Yes, this is likely to be due to changes in the daemon for parsing the sysroot state.
Comment 4 Colin Walters 2017-02-13 17:22:50 EST
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
Comment 5 Colin Walters 2017-02-13 17:25:44 EST
I'll work on this tonight.
Comment 6 Colin Walters 2017-02-13 21:15:24 EST
https://github.com/projectatomic/rpm-ostree/pull/626
Comment 7 Micah Abbott 2017-02-14 10:44:35 EST
(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
Comment 9 Micah Abbott 2017-02-15 13:16:36 EST
This is fixed with rpm-ostree-client-2017.1-6.atomic.el7.x86_64
Comment 11 errata-xmlrpc 2017-03-02 17:39:44 EST
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

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