Must use user ID when getting a token if user is not in the default domain
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Step to reproduce:
1. create a domain foo
2. create a user foo_domain_user in domain foo
3. create a project foo_domain_project in domain foo
4. assign some role to foo_domain_user for foo_domain_project
5. run openstack token issue
For example,
vagrant@ubuntu:~$ env | grep OS_
OS_USER_
OS_PROJECT_
OS_IDENTITY_
OS_PASSWORD=secrete
OS_AUTH_URL=http://
OS_USERNAME=
OS_PROJECT_
vagrant@ubuntu:~$ openstack token issue
The request you have made requires authentication. (HTTP 401) (Request-ID: req-36bc4c8b-
vagrant@ubuntu:~$ unset OS_USER_DOMAIN_NAME
vagrant@ubuntu:~$ export OS_USER_
vagrant@ubuntu:~$ openstack token issue
+------
| Field | Value |
+------
| expires | 2017-05-
| id | gAAAAABZCRwL9a_S_i- |
| | 9ZK01NP3rg9_
| | bDbU5X04iGD9628
| | V8BpmBRORTxkaLM
| project_id | 16fd7735687d404
| user_id | 279fedc94b76443
+------
vagrant@ubuntu:~$ env | grep OS_
OS_USER_
OS_PROJECT_
OS_IDENTITY_
OS_PASSWORD=secrete
OS_AUTH_URL=http://
OS_USERNAME=
OS_PROJECT_
vagrant@ubuntu:~$
I try it again, but I don't meet any problem. Do you confuse ID and NAME? :)