| Summary: | python-heatclient doesn't handle token-only auth properly | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Steven Hardy <shardy> | |
| Component: | python-heatclient | Assignee: | Steven Hardy <shardy> | |
| Status: | CLOSED ERRATA | QA Contact: | Jeff Peeler <jpeeler> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 4.0 | CC: | asalkeld, breeler, ddomingo, hateya, jruzicka, sdake, shardy, yeylon, zbitter | |
| Target Milestone: | rc | Keywords: | OtherQA, Triaged | |
| Target Release: | 4.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | python-heatclient-0.2.6-1.el6ost | Doc Type: | Bug Fix | |
| Doc Text: |
A bug in the python-heatclient shell interface prevented users from passing existing tokens correctly. Specifically, the '--os-auth-token' parameter always required a username; however, a username should only be required if the specified token is not tenant-scoped. This, in turn, prevented users from correctly reusing and passing tokens to the openstack-heat-api service in the request header.
This fix ensures that '--os-auth-token' only requires a username when a token is not tenant-scoped.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1035277 (view as bug list) | Environment: | ||
| Last Closed: | 2013-12-20 00:39:24 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: | ||
| Bug Depends On: | 1035277 | |||
| Bug Blocks: | ||||
|
Description
Steven Hardy
2013-11-27 09:37:52 UTC
This is now fixed upstream, we just need to tag a new release containing the fixes. We agreed to handle this with a rebase in Bug #1038740 Four patches to verify as outlined here: https://bugs.launchpad.net/python-heatclient/+bug/1252248 https://github.com/openstack/python-heatclient/commit/845018fbf3717d2758c8073d9da11a20882b31f9 [superceded by http://github.com/openstack/python-heatclient/commit/fd6e99793088aadbae86d4a5c17249f81b6806bb] https://github.com/openstack/python-heatclient/commit/a7ba3c323b16227e0ba2527f21bc89625f125234 [reverted by e259163d5632188065b2ad4bbb2065d4fd5fc91d] https://github.com/openstack/python-heatclient/commit/fe3629f1bab78664498192efcc9d782d061459f1 [verified] https://github.com/openstack/python-heatclient/commit/2706b48159e8937b4ef266f194a158ba60e2f36d [verified] Clearing SanityOnly, verified CLI operations directly: heat --os-auth-url http://127.0.0.1:5000/v2.0 --os-auth-token MIr4EoyQeliT-ArbhFqW+s<truncated> --os-tenant-id ef2d58b54df043968e8208459a4af9b3 stack-list [verified] heat --os-no-client-auth --heat-url=http://127.0.0.1:8004/v1/ef2d58b54df043968e8208459a4af9b3 --os-auth-token MIr4EoyQeliT-ArbhFqW+s<truncated> --os-tenant-id ef2d58b54df043968e8208459a4af9b3 stack-list [verified] Both tests were done with environment variables as well. 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. http://rhn.redhat.com/errata/RHEA-2013-1859.html |