Bug 1340506
Summary: | state of "View and Accept Hosts" page is lost on reload | ||||||
---|---|---|---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Storage Console | Reporter: | Martin Bukatovic <mbukatov> | ||||
Component: | UI | Assignee: | Nishanth Thomas <nthomas> | ||||
Status: | CLOSED WONTFIX | QA Contact: | sds-qe-bugs | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 2 | CC: | deb, nthomas, sankarshan, vsarmila | ||||
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:11:13 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: | |||||||
Attachments: |
|
Description
Martin Bukatovic
2016-05-27 15:20:52 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.
================================ 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. Found the actual bug which causes this. |