Bug 1167327

Summary: [GUI]> Double clicking on 'ok' button in new windows that need approve operation creating double and the same entity
Product: Red Hat Enterprise Virtualization Manager Reporter: Michael Burman <mburman>
Component: ovirt-engineAssignee: Barak <bazulay>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Burman <mburman>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bazulay, gklein, lpeer, lsurette, oourfali, pstehlik, rbalakri, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:31:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1105028    
Bug Blocks: 1167284    

Description Michael Burman 2014-11-24 13:23:55 UTC
Description of problem:
[GUI]> Double clicking on 'ok' button in new windows that need approve operation creating double and the same entity.
It seems like this behavior is for almost all new windows, where you need to approve operation by clicking 'ok' button. 

Version-Release number of selected component (if applicable):
3.5.0-0.21.el6ev

Steps to Reproduce:
1.  Create new Network QOS entity/or new VM/or new cluster/new pool
2. Fill in parameters
3. Click several times quickly on ok button, or double clicking on 'ok' button

Actual results:
The entity created twice

Expected results:
Twice entity should be blocked or the operation should be canceled

Comment 1 Lior Vernia 2014-12-04 13:47:07 UTC
If the problem is only with the GUI (and not REST), this can be solved only on the GUI... I'm looking at a possible solution.

Comment 2 Lior Vernia 2014-12-15 08:22:36 UTC
Should be fixed on the GUI side (for 3.6). Feel free to open a different bug for duplicate simultaneous REST operations.

Comment 3 Michael Burman 2015-04-15 08:22:27 UTC
Verified on - 3.6.0-0.0.master.20150412172306.git55ba764.el6


For New VM twice entity is blocked.
For New Network and New Cluster as well.


- When trying to create new Host Network QoS entity, and pressing multiple times on the 'ok' button i get :
Error while executing action: Cannot add QoS. QoS element name already exists.

- This for network QoS
Error while executing action: Cannot add QoS. QoS element name already exists.