v3/users or groups calls not working without domain_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
lilly |
Bug Description
The keystone.
"""Get the domain_id for a v3 list call.
If we running with multiple domain drivers, then the caller must
specify a domain_id either as a filter or as part of the token scope.
"""
But keystone instead of pulling the domain information from the token scope (the "or" in that statement), keystone fails with an HTTP 401 if you don't explicitly indicate the domain with the domain_id query parameter, as shown with the following commands:
[root@mysystem ~]# curl -k -i -X GET https:/
HTTP/1.1 401 Unauthorized
content-length: 114
vary: X-Auth-Token
server: Apache/2.4.6 (Red Hat) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
date: Wed, 11 Mar 2015 20:50:31 GMT
content-type: application/json
www-authenticate: Keystone uri="https:/
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
[root@mysystem ~]# curl -k -X GET https:/
{
"token": {
...
"project": {
},
"id": "0e2df62a460444
"name": "ibm-default"
},
...
"user": {
},
"id": "0688b01e6439ca
"name": "root"
}
}
}
[root@mysystem ~]# curl -k -i -X GET https:/
HTTP/1.1 200 OK
...
description: | updated |
Changed in keystone: | |
assignee: | nobody → lilly (lilly-spandanabarukula) |
You need to be using a domain scoped token for the keystone to pick up the domain from the token...it looks like the token you are using is an unscoped token