Bug 1353583

Summary: it's possible to create one pool with 2 tasks
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Martin Kudlej <mkudlej>
Component: coreAssignee: Nishanth Thomas <nthomas>
core sub component: provisioning QA Contact: sds-qe-bugs
Status: CLOSED WONTFIX Docs Contact:
Severity: high    
Priority: unspecified CC: shtripat
Version: 2   
Target Milestone: ---   
Target Release: 3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-23 04:04:30 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:
Bug Depends On: 1312242    
Bug Blocks:    
Attachments:
Description Flags
task list
none
task 1 for pool 3
none
task 2 for pool3 none

Description Martin Kudlej 2016-07-07 13:32:31 UTC
Description of problem:
I was able to create one pool with 2 tasks from 2 separated sessions and browsers.
I think this should be not possible and there should be check at least in UI and/or in API.

Version-Release number of selected component (if applicable):
first monitor:
calamari-server-1.4.2-1.el7cp.x86_64
ceph-base-10.2.2-5.el7cp.x86_64
ceph-common-10.2.2-5.el7cp.x86_64
ceph-mon-10.2.2-5.el7cp.x86_64
libcephfs1-10.2.2-5.el7cp.x86_64
python-cephfs-10.2.2-5.el7cp.x86_64
rhscon-agent-0.0.13-1.el7scon.noarch

server:
ceph-ansible-1.0.5-23.el7scon.noarch
ceph-installer-1.0.12-3.el7scon.noarch
rhscon-ceph-0.0.29-1.el7scon.x86_64
rhscon-core-0.0.29-1.el7scon.x86_64
rhscon-ui-0.0.43-1.el7scon.noarch

How reproducible:
100%

Steps to Reproduce:
1. open 2 browsers and log in by different accounts
2. try to create pool with exact same name from 2 browsers in same time
3. there are 2 tasks which will success but one pool is created

Actual results:
One pool is created but 2 success tasks are created.

Expected results:
One pool will be created and there will be one task which will fail and one task which will success.
User which try to create pool with name which already exists or it is part of the running tasks for creating pool with that name will be informed that there is already pool with that name or there is no finished tasks for creating pool with that name.
This check will be part of UI and/or API.

Comment 5 Martin Kudlej 2016-07-08 06:43:48 UTC
Created attachment 1177529 [details]
task list

Comment 6 Martin Kudlej 2016-07-08 06:44:20 UTC
Created attachment 1177530 [details]
task 1 for pool 3

Comment 7 Martin Kudlej 2016-07-08 06:44:46 UTC
Created attachment 1177531 [details]
task 2 for pool3

Comment 8 Shubhendu Tripathi 2016-07-08 07:46:49 UTC
There is already a Calamari BZ raised for the same at BZ#1312242