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 769104

Summary: import errors are not reported
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Subscription ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bkearney, omaciel
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-02-15 16:56:35 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: 747354    

Description Mike McCune 2011-12-19 22:52:06 UTC
We had a case where there was a bug in candlepin that caused an exception to not get logged during import.

The import was posted to:

POST /candlepin/owners/ACME_Corporation/imports

we saw this in catalina.out:

Dec 20 05:53:54 [http-8443-1] INFO  org.candlepin.resource.OwnerResource - Importing archive: /var/cache/tomcat6/temp/pfx6519919396246909676sfx
Dec 20 05:53:54 [http-8443-1] INFO  org.candlepin.sync.Importer - Extracting archive to: /var/cache/candlepin/sync/import56390156708272648791468243188780346
Dec 20 05:53:54 [http-8443-1] INFO  org.candlepin.sync.Importer - Extracting archive to: /var/cache/candlepin/sync/import56390156708272648791468243188780346

but the server was returing a 500 error and all we had in the access log was:

0:0:0:0:0:0:0:1 - - [20/Dec/2011:05:53:55 -0500] "POST /candlepin/owners/ACME_Corporation/imports HTTP/1.1" 500 53

turns out the java code was not properly logging the exception:

<beav>         catch (CertificateException e) {
<beav>             throw new ImportExtractionException("unable to extract export archive", e);
<beav>         }
<beav>         catch (IOException e) {
<beav>             throw new ImportExtractionException("unable to extract export archive", e);
<beav> two errors, same message:)


<beav> Unrecognized field "flexExpiryDays"
<beav> that is a bug if it's not being bubbled up
<beav> but there's your problem:)
<beav> i think bk fixed that today, looking
<beav> use 0.5.8


it appears that the code was logging the import error in the DB but not putting it in the log anywhere.

Comment 1 Bryan Kearney 2011-12-20 03:05:12 UTC
Fixed in d21a2fffbe767c8a3ec5dabbdffe92d3278a708c. You will need 0.5.8 of candlepin to ge tthe fix. That version is in the repos.

Comment 2 Mike McCune 2012-01-26 19:07:28 UTC
mass ON_QA move

Comment 6 Og Maciel 2012-02-15 16:56:35 UTC
Since we're doing a better job at reporting import errors, closing it as verified.