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