An OS_PROJECT_* value is unnecessarily demanded, even if the user has a default project
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
High
|
Dolph Mathews |
Bug Description
(This overlaps with bug 1506285, but that discussion went into the weeds and mostly focuses on openstack-ansible, so I think it's prudent to discuss openstackclient separately.)
With absolutely nothing set in my environment, openstackclient unnecessarily demands that I specify a project (using OS_PROJECT_NAME or OS_PROJECT_ID) when calling (for example) `server list`, even though it'll happily return a scoped token, scoped by keystone using my user's default project ID.
For example, here's a `token issue` returning a scoped token, without me specifying a scope:
$ openstack --os-identity-
+------
| Field | Value |
+------
| expires | 2016-06-
| id | abc123 |
| project_id | def456 |
| user_id | aef789 |
+------
And then with the same configuration, openstackclient blindly protests:
$ openstack --os-identity-
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
description: | updated |
Changed in python-openstackclient: | |
importance: | Undecided → High |
Addressed by https:/ /review. openstack. org/#/c/ 330057/