Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1084598

Summary: Unable to import manifest in SAM
Product: [Retired] Subscription Asset Manager Reporter: sthirugn <sthirugn>
Component: katelloAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NOTABUG QA Contact: sthirugn <sthirugn>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.4CC: alikins, cbillett, dgregor, lkocman, sengork
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-15 19:01:38 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:
Attachments:
Description Flags
Unable to import manifest into SAM
none
katello-debug
none
candlepin logs tar none

Description sthirugn@redhat.com 2014-04-04 19:23:01 UTC
Created attachment 882818 [details]
Unable to import manifest into SAM

Description of problem:
Unabled to import manifest in SAM

Version-Release number of selected component (if applicable):
* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.6-1.el6_5.noarch
* candlepin-cert-consumer-cloud-qe-17.idm.lab.bos.redhat.com-1.0-1.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.6-1.el6_5.noarch
* candlepin-tomcat6-0.9.6-1.el6_5.noarch
* elasticsearch-0.19.9-8.el6sat.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.4.2-2.el6sat.noarch
* katello-cli-1.4.3-11.el6sat.noarch
* katello-cli-common-1.4.3-11.el6sat.noarch
* katello-common-1.4.3.26-1.el6sam_splice.noarch
* katello-configure-1.4.5-1.el6sam.noarch
* katello-glue-candlepin-1.4.3.26-1.el6sam_splice.noarch
* katello-glue-elasticsearch-1.4.3.26-1.el6sam_splice.noarch
* katello-headpin-1.4.3.26-1.el6sam_splice.noarch
* katello-headpin-all-1.4.3.26-1.el6sam_splice.noarch
* katello-selinux-1.4.4-2.el6sat.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* openldap-devel-2.4.23-32.el6_4.1.x86_64
* ruby193-rubygem-ldap_fluff-0.2.2-1.el6sat.noarch
* ruby193-rubygem-net-ldap-0.3.1-2.el6sat.noarch
* thumbslug-0.0.39-1.el6sam.noarch
* thumbslug-selinux-0.0.39-1.el6sam.noarch


How reproducible:
Always

Steps to Reproduce:
1. Login to SAM UI
2. Navigate to Subscriptions -> Red Hat Subscriptions
3. Select a manifest and click Upload

Actual results:
Manifest upload failed with UI error
"Subscription manifest import for provider 'Red Hat' failed 
Reason: Failed to import archive"

Expected results:
Manifest upload is completed without error

Additional info:
Note 1. CLI fails for the same reason as well.

#headpin --username *** --password *** provider import_manifest --org "newcorp" --name "Red Hat" --file "/tmp/manifest.zip" 
Provider [ Red Hat ] failed to import manifest: R

Comment 1 sthirugn@redhat.com 2014-04-04 19:24:33 UTC
Created attachment 882830 [details]
katello-debug

Comment 2 sthirugn@redhat.com 2014-04-04 19:36:45 UTC
Created attachment 882833 [details]
candlepin logs tar

Comment 4 Adrian Likins 2014-04-04 20:09:30 UTC
logs are claiming

2014-04-04 12:11:15,611 [req=35663f16-5a27-4a8f-9725-b846f9aa9c80, org=Durham-1396627860667] ERROR org.candlepin.sync.
ConsumerImporter - Cannot import manifest for org: Durham-1396627860667
2014-04-04 12:11:15,611 [req=35663f16-5a27-4a8f-9725-b846f9aa9c80, org=Durham-1396627860667] ERROR org.candlepin.sync.
ConsumerImporter - Upstream distributor 79fe7df4-2a62-40e4-b355-2f02f749a7b0 already in use by org: Raleigh-1396627860
667
2014-04-04 12:11:15,622 [req=35663f16-5a27-4a8f-9725-b846f9aa9c80, org=Durham-1396627860667] ERROR org.candlepin.resou
rce.OwnerResource - Recording import failure
org.candlepin.sync.SyncDataFormatException: This subscription management application has already been imported by anot
her owner.


I take it that's supposed to work?

Comment 7 sthirugn@redhat.com 2014-04-07 18:34:54 UTC
As per Adrian Likins via email: Looks like the test box had an import from stage already imported that had bad stage data that has since changed. That data doesn't appear to have ever made it to prod, so shouldn't be an issue.

Comment 8 sthirugn@redhat.com 2014-04-15 19:01:38 UTC
Closing as per Comment 7 above.