| Summary: | Last check in shows Never Checked In | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Tom McKay <tomckay> |
| Component: | API | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 6.0.1 | CC: | esammons, jesusr, mmccune, tomckay |
| Target Milestone: | Unspecified | ||
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 760591 | Environment: | |
| Last Closed: | 2012-04-27 00:32:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 760591 | ||
| Bug Blocks: | 703617, 747354 | ||
|
Description
Tom McKay
2011-12-14 22:00:22 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.
Fixed in katello commit dd8719985c6c475741cd5edd0e448827b51809f9. You will need to wait for katello-commmon 0.147 to see this fix. Verified getting rid of 6.0.0 version since that doesn't exist |