Bug 769104 - import errors are not reported
Summary: import errors are not reported
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-12-19 22:52 UTC by Mike McCune
Modified: 2014-01-27 13:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-15 16:56:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.