Bug 1296571

Summary: User can accept nodes which are already accepted
Product: Red Hat Storage Console Reporter: Martin Kudlej <mkudlej>
Component: UIAssignee: sankarshan <sankarshan>
Status: CLOSED WONTFIX QA Contact: Daniel Horák <dahorak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2CC: dahorak, ltrilety, nthomas, sankarshan
Target Milestone: ---   
Target Release: 3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhscon-ceph-0.0.23-1.el7scon.x86_64, rhscon-core-0.0.24-1.el7scon.x86_64, rhscon-ui-0.0.39-1.el7scon.noarch Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-23 04:12:34 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:
Attachments:
Description Flags
Screenhots from accepting node none

Description Martin Kudlej 2016-01-07 15:12:59 UTC
Description of problem:
If user accept node from list of not accepted nodes in upper right corner 3rd icon from right, user can accept same node from page which is visible when there is no cluster(You don't have any clusters).
There is at least one other place where user can accept node. I think if user start accepting process for node, this action should be disabled on other place in UI.

Version-Release number of selected component (if applicable):
rhscon-core-0.0.5-0.1.alpha1.el7.x86_64
rhscon-ceph-0.0.3-0.1.alpha1.el7.x86_64
rhscon-ui-0.0.3-0.1.alpha1.el7.noarch

How reproducible:
100%

Actual results:
User can start accepting task of node which is already accepted or accepting task is running.

Expected results:
User cannot start accepting task of node which is already accepted or accepting task is running.

Comment 1 Martin Kudlej 2016-02-11 12:00:26 UTC
Also if all nodes are accepted, "Accept All" button should be disabled on all places in UI.

Comment 4 Daniel Horák 2016-07-01 09:40:28 UTC
Created attachment 1174857 [details]
Screenhots from accepting node

When I go to the 'Clusters' -> 'Create Cluster' (Unaccepted Hosts Detected) -> 'View and Accept' (View and Accept Hosts page, see screenshot 01_all_unaccepted_hosts),
and then accept one host (dhcp-126-126 in this case) from the pop-up window 'Discovered Hosts' (second icon in the upper right corner - screenshot 02_one_accepted_host),
the node is still visible on the 'View and Accept Hosts' page (until I'll reload it, see screenshot 03_remaining_unaccepted_hosts).
And if I'll try to click to Accept (screenshot 04_already_accepted_host_is_still_in_the_list_of_unaccepted_hosts), there is not response from the UI, but in the Firebug console I see following error: '405 Method Not Allowed' - "Node not found".

>> moving back to ASSIGNED