Bug 1418828
Summary: | [RFE] [director] Add "export OS_PROJECT_NAME=admin" line to the generated stackrc file | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Alexander Chuzhoy <sasha> |
Component: | instack-undercloud | Assignee: | Ben Nemec <bnemec> |
Status: | CLOSED ERRATA | QA Contact: | Gurenko Alex <agurenko> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 11.0 (Ocata) | CC: | aschultz, bnemec, ccollett, dbecker, jcoufal, mburns, mcornea, morazi, rhel-osp-director-maint, sclewis |
Target Milestone: | Upstream M3 | Keywords: | FutureFeature, Triaged |
Target Release: | 11.0 (Ocata) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | instack-undercloud-6.0.0-6.el7ost | Doc Type: | Bug Fix |
Doc Text: |
The undercloud stack rc file is a Keystone v2 rc. Previously, when switching from a v3 rc file (such as the v3 overcloudrc), some of the v3 environment variables would still be present. As a result, Keystone authentication may not work correctly.
With this release, all OpenStack-related environment variables are cleared in stackrc before the undercloud values are set. As a result, variables from a previous rc file can no longer be present in the environment after sourcing stackrc, so Keystone authentication works correctly.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-17 19:44: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: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1426480 |
Description
Alexander Chuzhoy
2017-02-02 20:06:42 UTC
before running commands on undercloud, we source the stackrc and expect things to work and apparently it relies on having OS_PROJECT_NAME set to admin I created another user/pass/project and tried to operate on overcloud then, when I wanted to switch back to working on undercloud - I got: ERROR (Unauthorized): The request you have made requires authentication. (HTTP 401) (Request-ID: req-7804f2bc-9207-4c98-88ff-e2d8cf95ad46) We can add project name, although since we don't generate a v3 stackrc I'm not sure whether that's the best approach. I think the short-term solution is to add something like https://github.com/openstack/tripleo-common/blob/8affc8aafecc74c49af6593e4ec9ce1723845925/tripleo_common/utils/overcloudrc.py#L62 to stackrc so we don't end up with remnants of a previous rc file in the current env. Ben, sounds good, Thanks. I'm pretty sure Angus has no specific interest in this bug. :-) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1245 |