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 758858

Summary: Headpin certificates do not contain content sets
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: APIAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: esammons, khong, suli, yuzheng
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-27 00:32:30 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:
Bug Depends On:    
Bug Blocks: 703617, 747354    

Description Bryan Kearney 2011-11-30 20:31:46 UTC
Do the following:

1) Install headpin from the https://fedorahosted.org/candlepin/wiki/headpin/Install
2) Import a manifest (example stageSamTestSimple20Nov2011.zip)
3) Reguster a machine
4) Consume a subscription
5) Open up the ssl certificate. Note, there are no content sets.

running the following shows no data:

Report bugs to <pgsql-bugs>.
[root@unused ~]# psql -U candlepin
psql (9.0.5)
Type "help" for help.
                 ^
candlepin=> select * from cp_content;

 id | created | updated | contenturl | gpgurl | label | metadataexpire | name | requiredtags | type | vendor 
----+---------+---------+------------+--------+-------+----------------+------+--------------+------+--------
(0 rows)

Comment 1 Devan Goodwin 2011-11-30 20:45:47 UTC
The zip listed above imports ok in candlepin if you submit it directly. Something wonky between Katello/Headpin and Candlepin?

Comment 2 Bryan Kearney 2011-11-30 21:02:15 UTC
yes, i think this is on the katello side: Lines 168/169 of glue/product.rb

      queue.create(:name => "delete imported products not assigned to any owner #{zip_file_path}",   :priority => 6, :action => [self, :delete_not_assigned_products])
      queue.create(:name => "delete imported content that have no repos #{zip_file_path}",           :priority => 7, :action => [self, :delete_not_assigned_content])

Comment 6 Mike McCune 2013-08-16 18:18:44 UTC
getting rid of 6.0.0 version since that doesn't exist