| Summary: | You get thrown out and can't log back in, after deleting the default plan from the system | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Udi Kalifon <ukalifon> |
| Component: | openstack-tripleo-ui | Assignee: | Jiri Tomasek <jtomasek> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ola Pavlenko <opavlenk> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 10.0 (Newton) | CC: | akrivoka, apannu, flfuchs, jjoyce, jpichon, jschluet, jtomasek, sclewis, slinaber, tvignaud, ukalifon |
| Target Milestone: | --- | Keywords: | TestOnly, Triaged, ZStream |
| Target Release: | 10.0 (Newton) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-ui-1.0.5-2.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-12 19:16:14 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: | |
|
Description
Udi Kalifon
2016-11-24 10:27:09 UTC
To be able to log back in, I ran: openstack overcloud plan create overcloud I can reproduce the bug. Applying this UI patch fixed it: https://review.openstack.org/#/c/401351/ I've updated https://review.openstack.org/#/c/401351/ to also fix a case when active plan got deleted. (This is the patch for fixing bug 1398205, for cross-reference). I can still reproduce this with the 2016-12-07.1 puddle and openstack-tripleo-ui-1.0.5-3.el7ost.noarch. So this should currently occur only on nodes page now. It is due to the fact that nodes page is trying to fetch Roles, and since there is no plan, it runs the Mistral action without plan specified, which in turn uses the default plan which is 'overcloud' but that one does not exist. Action will fail on that. GUI should probably show the node tags directly rather than trying to fetch roles to get proper role name as nodes are not tied to the plan in any way. The redirect to login is caused by how we handle redirect to login for Mistral errors. We need to improve this so that user gets redirected to login only on a specific Mistral error that resembles the 401 api response. related upstream bug: https://bugs.launchpad.net/tripleo/+bug/1647625 I wasn't thrown out, but after logging out I could not log back in. I also couldn't re-create the default plan I deleted:
$ openstack overcloud plan create overcloud
Started Mistral Workflow. Execution ID: d8373933-b6f2-4600-84b7-bf1a175d7955
Exception creating plan: Unable to create plan. The Swift container already exists
This is from the browser's console when you try to log in after deleting the default plan:
logger.js:58 Error in LoginActions.authenticateUser
XMLHttpRequest
onabort
:
null
onerror
:
null
onload
:
null
onloadend
:
null
onloadstart
:
null
onprogress
:
null
onreadystatechange
:
()
ontimeout
:
null
readyState
:
4
response
:
"{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}"
responseText
:
"{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}"
responseType
:
""
responseURL
:
"https://puma01.scl.lab.tlv.redhat.com:13000/v2.0/tokens"
responseXML
:
null
status
:
401
statusText
:
"Unauthorized"
timeout
:
0
upload
:
XMLHttpRequestUpload
withCredentials
:
false
__proto__
:
XMLHttpRequestEventTarget
error @ logger.js:58
(anonymous function) @ logger.js:149
dispatch @ logger.js:142
_this3.(anonymous function) @ logger.js:109
(anonymous function) @ LoginActions.js:39
tryCatchReject @ makePromise.js:845
runContinuation1 @ makePromise.js:804
Rejected.when @ makePromise.js:625
Pending.run @ makePromise.js:483
Scheduler._drain @ Scheduler.js:62
Scheduler.drain @ Scheduler.js:27
run @ env.js:63
Please ignore my last comment, it was my fault because I was logged in to the wrong system via the GUI... The bug doesn't recreate with the latest GA bits (puddle 2016-12-22.1) so I'm marking the bug as VERIFIED. According to our records, this should be resolved by openstack-tripleo-ui-1.0.5-3.el7ost. This build is available now. resetting to VERIFIED according to comment #14 |