Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
+++ This bug was initially created as a clone of Bug #760591 +++
Description of problem:
Even after hours or days a registered+subscribed system will still show Never Checked In on the Systems page of headpin.
Version-Release number of selected component (if applicable):
katello-headpin-all-0.1.111-1.el6.noarch
Steps to Reproduce:
1. Register + Subscribe a system
2. Restart rhsmcertd on the registered consumer
3. Run subscription-manager refresh
4. Go to https://headpin.fqdn/headpin
5. Navigate to the systems page
Actual results:
Note that under System Events, Checked In remains "Never Checked In".
Expected results:
A date / time stamp of last check in.
Comment 1Jesus M. Rodriguez
2011-12-16 20:52:08 UTC
Katello is sending cp-user as the OAuth header for both user and consumer level access. This means that when rhsmcertd runs in step 2, katello is connecting to candlepin as a TrustedUserPrincipal which is NOT a ConsumerPrincipal hence there is no lastcheckin to update.
We changed line 322 of user.rb to be self.current.cp_oauth_header instead of
{ 'cp-user' => self.current.username }
That one change makes katello talk to candlepin with the correct headers,
and users i.e. TrustedUserPrincipal and TrustedConsumerPrincipal.