openstackclient domain scoped token acquisition broken by change in os-client-config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-client-config |
Fix Released
|
High
|
Monty Taylor |
Bug Description
Commit https:/
export OS_USER_
export OS_IDENTITY_
export OS_PASSWORD=
export OS_DOMAIN_NAME=heat
export OS_AUTH_URL=http://
export OS_USERNAME=
openstack token issue --format value
I get the following error:
Missing parameter(s):
Set a scope, such as a project or domain, set a project scope with --os-project-name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name
Digging further, the issue comes from https:/
However, openstackclient expects config[
I am not sure if this should be considered an openstackclient or an os-client-config bug, opening here since it was a commit to os-client-config that surfaced it.
Changed in python-openstackclient: | |
status: | New → Confirmed |
status: | Confirmed → New |
Changed in os-client-config: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Monty Taylor (mordred) |
no longer affects: | python-openstackclient |
Changed in os-client-config: | |
status: | Confirmed → In Progress |
Reviewed: https:/ /review. openstack. org/269704 /git.openstack. org/cgit/ openstack/ os-client- config/ commit/ ?id=a2db877b41f ad494fe9daa09b5 c77914638ac605
Committed: https:/
Submitter: Jenkins
Branch: master
commit a2db877b41fad49 4fe9daa09b5c779 14638ac605
Author: Monty Taylor <email address hidden>
Date: Tue Jan 19 10:12:02 2016 -0500
Don't set project_domain if not project scoped
The code to expand domain_{name,id} to {user,project} _domain_ {name,id} domain_ {name,id} even if a {name,id} is not set. There is a valid use case for not having
is flawed in that it sets a project_
project_
a project_{name,id} - specifically getting a domain-scoped token.
In the case where we do not set a project, check for that and don't make
further assumptions that the domain input needs to be "fixed".
Closes-Bug: #1535676 208bb176bb5990c 23fe87c8f9d
Change-Id: I825fe4bc375687