Bug 908775

Summary: ovirt-engine-backend: Cannot add external event if flood rate is not passed explicitly
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: Oded Ramraz <oramraz>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, dyasny, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul, yzaslavs
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: sf8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 915537    

Description Oded Ramraz 2013-02-07 13:47:23 UTC
Description of problem:

I'm trying to add external event using rhevm-shell . 
When I don't pass flood rate explicitly I get "General command validation failure" , after I pass it the external event is added successfully ( See Additional Information ). 



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


How reproducible:


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


Expected results:



Additional info:

## flood rate is not passed 

RHEVM shell (connected)]# add event --custom_id 12 --origin "test" --severity "normal" --description "test"

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

## passing flood rate explicitly 


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

id         : 13576
description: test
code       : 9801
custom_id  : -1
flood_rate : 30
origin     : newvirt
severity   : normal
time       : 2013-02-07T15:43:11.323+02:00

Comment 1 Eli Mesika 2013-02-12 20:15:51 UTC
fixed in commit : 3644f85

Comment 3 Oded Ramraz 2013-04-14 12:06:15 UTC
[RHEVM shell (connected)]# add event --custom_id 12 --origin "test" --severity "normal" --description "test"

id         : 44832
description: test
code       : 9801
custom_id  : 12
flood_rate : 30
origin     : test
severity   : normal
time       : 2013-04-14T15:05:40.686+03:00


sf13.1

Comment 4 Itamar Heim 2013-06-11 09:07:43 UTC
3.2 has been released

Comment 5 Itamar Heim 2013-06-11 09:07:43 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 09:07:46 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 09:36:20 UTC
3.2 has been released