Bug 1071840

Summary: Not able to push more than one external event in 30 second using REST API
Product: [Retired] oVirt Reporter: Ramesh N <rnachimu>
Component: ovirt-engine-coreAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, gklein, iheim, s.kieske, yeylon
Target Milestone: ---   
Target Release: 3.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-08 13:37:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ramesh N 2014-03-03 09:43:00 UTC
Description of problem:

Not able to push more than one external event in 30 second using Ovirt REST API. minimum floodRate is 30 seconds by default and it blocks pushing any external events using Rest API for 30 seconds.

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


How reproducible:

Always. 

Steps to Reproduce:
1. Post an external event to ovirt-engine with API http://server/ovirt-engine/api/events with floodRate =0
2. Immediately after step1, post another external event with different cusom_id. 
3. Second request will fail with error


Actual results:

 <fault>
<reason>Operation Failed</reason>
<detail>[]</detail>
 </fault>

Expected results:

Second request also should succeed as we posting a different external event, not flooding the system with same external event.

Additional info:

Comment 1 Sandro Bonazzola 2014-03-04 09:20:59 UTC
This is an automated message.
Re-targeting all non-blocker bugs still open on 3.4.0 to 3.4.1.

Comment 2 Eli Mesika 2014-03-13 01:41:36 UTC
Fix supports definite the flood rate in the POST message , if it is omitted , 30 sec is used as a default

To test , send the following one after another: 

<event>
        <description>1</description>
        <severity>normal</severity>
        <origin>CUSTOMER1</origin>
        <custom_id>1</custom_id>
        <flood_rate>1</flood_rate>
</event> 

<event>
        <description>1</description>
        <severity>normal</severity>
        <origin>CUSTOMER1</origin>
        <custom_id>2</custom_id>
        <flood_rate>1</flood_rate>
</event>

Comment 3 Sandro Bonazzola 2014-05-08 13:37:26 UTC
This is an automated message

oVirt 3.4.1 has been released:
 * should fix your issue
 * should be available at your local mirror within two days.

If problems still persist, please make note of it in this bug report.