cinder list ERROR: Unauthorized (HTTP 401)
Hi, i have problems on openstack kilo.When glance image-list is fine,but cinder list is no fine.This is info:
- DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG:keystoneclient.session:RESP: [200] content-length: 250 vary: X-Auth-Token server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 date: Mon, 22 Feb 2016 03:42:53 GMT content-type: application/json x-openstack-request- id: req-13f9a1c1-fbbc-41a4-96cd-9dd6ab786954
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://controller:8776/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG:keystoneclient.session:RESP: [200] date: Mon, 22 Feb 2016 03:42:53 GMT content-length: 292 content-type: application/json
RESP BODY: {"versions": [{"status": "SUPPORTED", "updated": "2014-06-28T12:20:21Z", "id": "v1.0", "links": [{"href": "http://controller:8776/v1/", "rel": "self"}]}, {"status": "CURRENT", "updated": "2012-11-21T11:33:21Z", "id": "v2.0", "links": [{"href": "http://controller:8776/v2/", "rel": "self"}]}]}
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://controller:8776/v2/de8fe81c89d44356846a7b8aec82eb56/os-services -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8ad0a4fa35f238a746a8d0cdbc5a1ce3f8ea24b5"
DEBUG:keystoneclient.session:RESP:
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG:keystoneclient.session:RESP:
ERROR: Unauthorized (HTTP 401)
It is always called Unauthorized ,here is the error log:
Feb 22 11:45:19 controller01 cinder-api: 2016-02-22 11:45:19.397 6683 ERROR keystonemiddleware.auth_token [-] Bad response code while validating token: 400
Feb 22 11:45:19 controller01 cinder-api: 2016-02-22 11:45:19.398 6683 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "Expecting to find domain in project - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}
Feb 22 11:45:19 controller01 cinder-api: 2016-02-22 11:45:19.398 6683 WARNING keystonemiddleware.auth_token [-] Authorization failed for token
And this is the cinder.conf with keystone:
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin=password
porject_domain_id = default
user_domain_id = default
project_name = service
username = cinder
password = xxxxxxxx
So,who can tell me where is the problems?Any help will be need!!!!!!