Bug 949551 - ovirt-engine-backend: Add external event error messages need to be improved [TEXT]
Summary: ovirt-engine-backend: Add external event error messages need to be improved [...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3.0
Assignee: Eli Mesika
QA Contact: Oded Ramraz
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-08 13:16 UTC by Oded Ramraz
Modified: 2016-02-10 19:07 UTC (History)
8 users (show)

Fixed In Version: is10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-18 08:20:05 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 17929 0 None None None Never

Description Oded Ramraz 2013-04-08 13:16:10 UTC
Description of problem:

When I add external event with bad severity input I get  "General command validation failure" . When I don't pass flood_rate I get Internal Engine Error. 
I would expect to get more informative error message . 



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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


## bad severity input 

[RHEVM shell (connected)]# add event --custom_id 123 --origin "newvirt" --severity "high" --description "test" --flood_rate 30

error: 
status: 400
reason: Bad Request
detail: General command validation failure.


## flood rate is not passed 


[RHEVM shell (connected)]# add event --custom_id 123 --origin "newvirt" --severity "error" --description "test" --flood_rate 

error: 
status: 400
reason: Bad Request
detail: Internal Engine Error



[RHEVM shell (connected)]# 
[RHEVM shell (connected)]# 
[RHEVM shell (connected)]# 
[RHEVM shell (connected)]# 
[RHEVM shell (connected)]# 
[RHEVM shell (connected)]# 
[RHEVM shell (connected)]# add event --custom_id 123 --origin "newvirt" --severity "error" --description "test" --flood_rate 30

id         : 41662
description: test
code       : 9803
custom_id  : 123
flood_rate : 30
origin     : newvirt
severity   : error
time       : 2013-04-08T16:07:47.937+03:00

Comment 1 Eli Mesika 2013-08-12 07:55:19 UTC
fixed in commit : 997ee3a


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