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.

Bug 1328302

Summary: [Katello 3.0 RC2] subscription-manager and activation key auto attach is not working
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: Content ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, cwelton
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14697
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:11:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Justin Sherrill 2016-04-19 01:33:24 UTC
Katello version: Katello 3.0RC
Subscription manager version: subscription-manager-1.15.9-15.el7.centos.0.1.x86_64
Client version: CentOS Linux release 7.2.1511 (Core)

UI Configuration:

In "activation keys"->"subscriptions", 3 products are added and auto attached is enabled.


Reproduce:
On the client,
subscription-manager register --org="IT_Infra" --activationkey="CentOS7Test"
<Subscription successful>

subscription-manager list --consumed
No consumed subscription pools to list

In Katello UI->Content Host->the client->subscriptions->"List/Remove" tab, it's missing the products but in the "add" tab, the 3 products are available.

Comment 1 Justin Sherrill 2016-04-19 01:33:29 UTC
Created from redmine issue http://projects.theforeman.org/issues/14697

Comment 2 Justin Sherrill 2016-04-19 01:33:34 UTC
Upstream bug assigned to jsherril

Comment 4 Bryan Kearney 2016-04-19 14:07:14 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14697 has been closed
-------------
Justin Sherrill
Applied in changeset commit:katello|6f3041352bda36aa5e02299addfba9677c421f84.

Comment 5 jcallaha 2016-05-31 20:03:13 UTC
Verified in Satellite 6.2 Beta Snap 13.

Custom subscription successfully added in auto-attach. 

[root@ibm-x3550m3-08 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions (truncated)
+-------------------------------------------+
Subscription Name:   custom
Provides:            custom
SKU:                 1463681832989
Contract:            
Account:             
Serial:              6141634041846473815
Pool ID:             8a9084ef54c971190154ca3c596a0002
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       
Service Type:        
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              05/19/2016
Ends:                05/12/2046
System Type:         Physical

Comment 6 Bryan Kearney 2016-07-27 11:11:32 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/RHBA-2016:1501