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

Bug 1057652

Summary: SAM can't import manifest
Product: [Retired] Subscription Asset Manager Reporter: Shannon Hughes <shughes>
Component: katelloAssignee: Michael Stead <mstead>
Status: CLOSED ERRATA QA Contact: sthirugn <sthirugn>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.4CC: aupadhye, cbillett, cduryee, mstead, sthirugn, tomckay
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-10 12:13:35 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
katello debug
none
manifest none

Description Shannon Hughes 2014-01-24 14:51:17 UTC
Created attachment 854995 [details]
katello debug

Description of problem:

When trying to import manifest there is an error: 

When I try and import the manifest, it fails with

Subscription manifest refresh for provider 'Red Hat' failed
Reason: 387: unexpected token at '{"content":{"updated":"2014-01-08T14:14:54.205+0000","id":"860","type":"yum","label":"rhel-5-server-beta-source-rpms","name":"Red Hat Enterprise Linux 5 Server Beta (Source RPMs)","vendor":"Red Hat","contentUrl":"/content/beta/rhel/server/5/$releasever/$basearch/source/SRPMS","requiredTags":"rhel-5-server","releaseVer":null,"gpgUrl":'

Tom cat is showing the following, 

Jan 17 15:10:24 [http-8443-2] INFO  org.candlepin.resource.OwnerResource - Import attempt completed for owner ISG
Jan 17 15:10:25 [http-8443-2] ERROR org.candlepin.exceptions.mappers.CandlepinExceptionMapper - Runtime Error org.codehaus.jackson.map.JsonMappingException: Unable to find org.candlepin.model.Produ
ct with id 180 (through reference chain: java.util.ArrayList[0]->org.candlepin.model.Subscription["derivedProvidedProducts"]) at org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handl
eEntityNotFound:114
org.jboss.resteasy.spi.WriterException: org.codehaus.jackson.map.JsonMappingException: Unable to find org.candlepin.model.Product with id 180 (through reference chain: java.util.ArrayList[0]->org.c
andlepin.model.Subscription["derivedProvidedProducts"])

Checked the syntax of the json product files and they appeared valid running through json_verify

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Shannon Hughes 2014-01-24 14:51:51 UTC
Created attachment 854996 [details]
manifest

Comment 13 Michael Stead 2014-03-28 19:17:29 UTC
Fixed:

Katello: https://github.com/Katello/katello/pull/3768
SAM1.4 internal branch

Comment 15 sthirugn@redhat.com 2014-04-25 16:55:21 UTC
Verified.

Tested with a bunch of data center subscriptions. I am able to 
1. Upload manifest to ORG1
2. Update number of subscriptions in portal and Refresh Manifest in ORG1
3. Delete manifest in ORG1
4. Upload the same manifest to ORG2
5. Refresh Manifest in ORG2
6. Delete Manifest in ORG2
7. Upload the same manifest to ORG3
8. Register and subscribe clients to ORG3

Version Tested:
* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.6-1.el6_5.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.1-1.el6sam.noarch
* katello-cli-common-1.4.3.1-1.el6sam.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

Comment 17 errata-xmlrpc 2014-06-10 12:13:35 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.

http://rhn.redhat.com/errata/RHEA-2014-0677.html