Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 949551

Summary: ovirt-engine-backend: Add external event error messages need to be improved [TEXT]
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED UPSTREAM QA Contact: Oded Ramraz <oramraz>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, iheim, jkt, lpeer, pstehlik, Rhev-m-bugs, yeylon, yzaslavs
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-18 08:20:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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