Bug 1353583 - it's possible to create one pool with 2 tasks
Summary: it's possible to create one pool with 2 tasks
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat Storage
Component: core
Version: 2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3
Assignee: Nishanth Thomas
QA Contact: sds-qe-bugs
URL:
Whiteboard:
Depends On: 1312242
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-07 13:32 UTC by Martin Kudlej
Modified: 2017-03-23 04:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-23 04:04:30 UTC
Embargoed:


Attachments (Terms of Use)
task list (27.31 KB, image/png)
2016-07-08 06:43 UTC, Martin Kudlej
no flags Details
task 1 for pool 3 (58.11 KB, image/png)
2016-07-08 06:44 UTC, Martin Kudlej
no flags Details
task 2 for pool3 (58.95 KB, image/png)
2016-07-08 06:44 UTC, Martin Kudlej
no flags Details

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


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