Bug 755575 - RHEVM Backend: Classifying engine errors
Summary: RHEVM Backend: Classifying engine errors
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Barak
QA Contact:
URL:
Whiteboard: infra
: 722886 (view as bug list)
Depends On:
Blocks: 755579
TreeView+ depends on / blocked
 
Reported: 2011-11-21 14:16 UTC by Michael Pasternak
Modified: 2013-08-08 07:12 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-08 07:12:04 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Pasternak 2011-11-21 14:16:18 UTC
Description of problem:

i would like to suggest classifying engine errors (VdcBllMessages)
using these categories:

100-199. entity not found
200-300. missing parameters
300-399. no resources available
400-499. can't perform - user error
500-599. can't perform - server error
600-699. Unauthorized
700-x. Forbidden

this way rest api will be able mapping them to HTTP errors
e.g any error returned by engine CAN_DO_ACTION 100 < x < 200 will be converted
to HTTP 404 with CAN_DO_ACTION message detail

- this can be easily done by assigning id to each VdcBllMessages
enum member in range of one of mentioned categories.

Comment 1 Michael Pasternak 2012-10-18 07:52:29 UTC
*** Bug 722886 has been marked as a duplicate of this bug. ***

Comment 2 Barak 2013-08-04 10:46:07 UTC
Michael - Is this bug still relevant ?

Comment 3 Michael Pasternak 2013-08-08 07:12:04 UTC
(In reply to Barak from comment #2)
> Michael - Is this bug still relevant ?

already fixed.


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