Bug 1340506 - state of "View and Accept Hosts" page is lost on reload
Summary: state of "View and Accept Hosts" page is lost on reload
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat
Component: UI
Version: 2
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3
Assignee: Nishanth Thomas
QA Contact: sds-qe-bugs
Depends On:
TreeView+ depends on / blocked
Reported: 2016-05-27 15:20 UTC by Martin Bukatovic
Modified: 2017-03-23 04:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-03-23 04:11:13 UTC
Target Upstream Version:

Attachments (Terms of Use)
screenshot of "View and Accept Hosts" page (33.05 KB, image/png)
2016-05-27 15:23 UTC, Martin Bukatovic
no flags Details

System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1338001 0 unspecified CLOSED there are 3 different implementations of Accept Host work flow, of which only one follows expected design 2021-02-22 00:41:40 UTC

Internal Links: 1338001

Description Martin Bukatovic 2016-05-27 15:20:52 UTC
Description of problem

State of "View and Accept Hosts" page (which is part of "Create Cluster"
workflow) is lost on page reload. This also means that one can't get back
to this page later (no matter if there is a link to it or not).



Related packages on RHSC 2.0 server machine:


Related packages on RHSC 2.0 Ceph server machines:


How reproducible

100 %

Steps to Reproduce

1. Install RHSC 2.0 following the documentation, make sure you have few nodes
   ready to be accepted later.
2. Go to Clusters page and click on "Create Cluster" to start the wizard.
3. Modal window with warning stating "Unaccepted Hosts Detected" should be
   shown. Click on "View and Accept" button to go to "View and Accept Hosts"
   page, where you click on "Accept All" button and *stay on this page*.
4. Force a reload of the page (in Firefox via control-F5) while the accept
   process is still running.

Actual results

The state of the page is cleared on reload and the content is lost.

Expected results

The state is preserved (in the same was as it's done for *Tasks* page for
example) and it's possible to revisit this page later.

Comment 1 Martin Bukatovic 2016-05-27 15:23:39 UTC
Created attachment 1162514 [details]
screenshot of "View and Accept Hosts" page

Attaching screenshot of "View and Accept Hosts" page after the reload while the
accept tasks are still running.

Comment 2 :Deb 2016-06-22 13:29:11 UTC
TL;DR: Most likely, not a UI bug

Summarized explanation: As long as backend doesn't consider "In progress of being accepted" as "unmanaged", this will be auto fixed in the frontend. Don't change "unmanaged" flag (in backend) while accepting host is initiated, but while it's finished (success or failure).

Long explanation:

So I went through the code & apparently the moment accepting host is triggered, I think, backend removes their "discovered hosts" flag & also they don't have "accepted host" flag yet - so they're in a limbo. Hence, API doesn't return those hosts for the unmanaged_hosts list (or provide any alternative API call).

As they're not returned in the unmanaged_hosts call, frontend doens't see those hosts in consecutive API calls, and can't list them.

Frontend code (seems good): kitoon/app/components/rest/server.ts:155-163
Backend code that probably needs update: skyring/apps/skyring/nodes.go:313..

If you think it still should be fixed in the frontend, feel free to correct me and give directions.

Comment 3 :Deb 2016-06-22 13:53:24 UTC
Found the actual bug which causes this.

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