command `openstack project list ` does not work without scope
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
New
|
Undecided
|
Unassigned |
Bug Description
With only
export OS_AUTH_URL=http://
export OS_USERNAME=ayoung
export OS_PASSWORD=
export OS_USER_
I can get an unscoped token. With the same set of values, I should be able to get a list of projects, so I know what tokens I can use. This is how django-
http://
def get_project_
is_federated = kwargs.
sess = kwargs.
auth_url, _ = fix_auth_
auth = token_endpoint.
client = get_keystone_
if get_keystone_
projects = client.
elif is_federated:
projects = client.
else:
projects = client.
projects.
return projects
Hi Adam:
I try to reproduce the issue, like following, anything I miss? I use current master openstackclient with pip dev mode, so it's 3.11.1. More configuration is in paste page[1].
stack@ubuntu1604 /etc/openstack $ env | grep OS DOMAIN_ ID=default API_VERSION= 3 10.3.150. 30/identity /usr/bin/ lesspipe %s %s ------- ------- ------- ------- +------ ----+ ------- ------- ------- ------- +------ ----+ 1bbdb69ee8c5f66 14 | admin | ebc7b89fe997560 03 | demo | bacb6c9ae83e554 be | alt_demo | ------- ------- ------- ------- +------ ----+
OS_USER_
OS_IDENTITY_
OS_PASSWORD=*****
OS_AUTH_URL=http://
OS_USERNAME=admin
LESSCLOSE=
stack@ubuntu1604 /etc/openstack $ openstack project list
+------
| ID | Name |
+------
| 9a43f9a955fa4f9
| 6ea47bfad8d2494
| 861fb25813204bb
+------
stack@ubuntu1604 /etc/openstack $ openstack --version
openstack 3.11.1
stack@ubuntu1604 /etc/openstack $
[1]: http:// paste.openstack .org/show/ 612083/