Bug 1071840 - Not able to push more than one external event in 30 second using REST API
Summary: Not able to push more than one external event in 30 second using REST API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.4.1
Assignee: Eli Mesika
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-03 09:43 UTC by Ramesh N
Modified: 2014-05-08 13:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-08 13:37:26 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 25711 0 None MERGED core: Not able to push more than one external... Never
oVirt gerrit 25733 0 None MERGED core: Not able to push more than one external... Never

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.


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