| Summary: | No User readable error displayed on console while import invalid Owner. | ||
|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | spandey |
| Component: | candlepin | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED WONTFIX | QA Contact: | John Sefler <jsefler> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.5 | CC: | dgoodwin, jesusr, jmolet, kbanerje, spandey |
| 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: | 2011-12-20 18:50:38 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
spandey
2011-03-31 18:47:48 UTC
Not sure this is worth fixing, we would have to start communicating with the remote candlepin, outside the context of the asynchronous job, so we could report the error before starting the job, rather than the details on the job we're kicking off. To me this is working as I would expect, kick off the job, check it's status later and see if anything went wrong. (dgoodwin@rhel6 ~/src) $ curl -k -u admin:admin -X POST "https://localhost:8443/candlepin/migrations?entity=owner&id=IDONTEXIST&uri=192.168.1.25:8080" {"id":"migrate_owner_c782fc19-944d-4424-b42e-96fb3da14910","state":"CREATED","result":null,"targetType":null,"startTime":null,"group":"async group","principalName":"admin","targetId":null,"finishTime":null,"statusPath":"/jobs/migrate_owner_c782fc19-944d-4424-b42e-96fb3da14910","updated":"2011-12-20T18:18:36.095+0000","created":"2011-12-20T18:18:36.095+0000"}% (dgoodwin@rhel6 ~/src) $ curl -k -u admin:admin "http://localhost:8080/candlepin/jobs/migrate_owner_c782fc19-944d-4424-b42e-96fb3da14910" {"id":"migrate_owner_c782fc19-944d-4424-b42e-96fb3da14910","state":"FAILED","result":"org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.candlepin.exceptions.NotFoundException: Can't find owner [IDONTEXIST]]","targetType":null,"startTime":"2011-12-20T18:18:36.112+0000","group":"async group","principalName":"admin","targetId":null,"finishTime":null,"statusPath":"/jobs/migrate_owner_c782fc19-944d-4424-b42e-96fb3da14910","updated":"2011-12-20T18:18:36.194+0000","created":"2011-12-20T18:18:36.095+0000"}% Anyone else have thoughts? +1 to working as designed. We could add throwing JobExecutionException code to the execute method of the job, to update the cp_jobs table with a status. But beyond that we are NOT giving errors to the console. The PinsetterJobListener will take the value from the context and exception message and update the job as failed. Going to close for now. |