Description of problem: Loading a new manifest from stage fails with bad data in export archive. Version-Release number of selected component (if applicable): katello-headpin-all-0.1.112-1.el6.noarch Steps to Reproduce: 1. Create new org + Dev 2. Create new user assign this user to this org and env. 3. Create a role so that new user is administrator of the org. 4. Go to stage and create a new manifest. 5. Login to headpin as new user 6. Install manifest Actual results: Subscription manifest upload for provider 'Red Hat' failed. Reason: Bad data in export archive [logs] Started POST "/headpin//providers/redhat_provider" for 10.11.11.173 at Wed Dec 07 11:20:09 -0500 2011 Processing by ProvidersController#update_redhat_provider as HTML Parameters: {"commit"=>"Upload", "authenticity_token"=>"nXEMLnGJNyyW3DeTdk/nQpEaS8OZGDhwSpps9UY0WAM=", "utf8"=>"✓", "provider"=>{"contents"=>#<ActionDispatch::Http::UploadedFile:0x7fc5695aab50 @content_type="application/zip", @original_filename="Eric_s_Org.zip", @tempfile=#<File:/tmp/RackMultipart20111207-3870-e7kjrs-0>, @headers="Content-Disposition: form-data; name=\"provider[contents]\"; filename=\"Eric_s_Org.zip\"\r\nContent-Type: application/zip\r\n">}} Importing manifest for provider Red Hat Rolling back due to a problem: Candlepin::Owner: 400 Bad Request {"displayMessage":"Bad data in export archive"} (POST /candlepin/owners/Eric_s_Org/imports): {"displayMessage":"Bad data in export archive"} [/logs] Expected results: manifest import succeeds. Additional info:
I'm still trying to narrow this down; however, I have found that the issue does _not_ occur when a manifest includes multiple subscriptions. In at least two of my tests this issue occurred when only a single product was added to a manifest.
Note at first upload headpin will report success; however, there is no content displayed on the content management tab.
Added another sub to my distributor; two line items show on rhsm; however, CM only shows one. See attached screenshots.
Created attachment 542197 [details] Applied subs
Created attachment 542198 [details] Headpin Content Management view
This may be specific to a single entitlement. stage-sam Red Hat Enterprise Linux Server, Self-support (1-2 sockets) (Up to 1 guest)
This issue was encountered again with katello-headpin-all-0.1.116-2.el6.noarch candlepin-0.5.6-1.el6.noarch Will attach production.log.
This bug is closely related to will focus efforts there 769372. Based on the summary here, there are no issues importing manifests into the one org. Moving to verified.