Bug 1465468

Summary: subscription-manager register result to Task :ActiveRecord::RecordNotFound: Couldn't find User with 'id'=1 [WHERE (1=0)]
Product: Red Hat Satellite Reporter: Djebran Lezzoum <dlezzoum>
Component: Subscription ManagementAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bkearney, jsherril, mmccune, nkathole, rplevka
Target Milestone: UnspecifiedKeywords: AutomationBlocker, Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 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:

Comment 2 Roman Plevka 2017-06-28 06:17:55 UTC
Workaround: run the subscription-manager register again.

Comment 3 Justin Sherrill 2017-07-03 16:48:45 UTC
Connecting redmine issue http://projects.theforeman.org/issues/19970 from this bug

Comment 4 Nikhil Kathole 2017-08-30 07:55:48 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 13

steps:

1. Created Organization 
2. Created a product with custom yum repo and synchronized
3. Created a content view 
4. Added the the yum repository to content view and publish, promote to lifecycle enviornment 
5. Created an activation key
6. Installed on host -> rpm -Uvh http://<satellite>/pub/katello-ca-consumer-latest.noarch.rpm
7. on host -> subscription-manager register --org="testing" --activationkey="testing_subscription"

Host successfully subscribed and shows repos through "yum repolist".

Comment 6 Bryan Kearney 2018-02-21 16:44:25 UTC
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-2018:0336

Comment 7 Satellite Program 2018-02-21 16:51:07 UTC
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-2018:0336