配置keystone,unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT后出错

wuseeger 发布于 2016/04/25 09:51
阅读 682
收藏 0

定义用户、租户和角色,定义服务和API端点,都正常,到了验证身份服务时,unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT,keystone token-get完成后,keystone user-list报错,The resource could not be found. (HTTP 404),查看日志

.440 23616 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.6/site-packages/keystone/middleware/core.py:271
2016-04-24 10:21:02.442 23616 DEBUG keystone.common.wsgi [-] arg_dict: {} __call__ /usr/lib/python2.6/site-packages/keystone/common/wsgi.py:181
2016-04-24 10:21:02.449 23616 DEBUG keystone.notifications [-] CADF Event: {'typeURI': 'http://schemas.dmtf.org/cloud/audit/1.0/event', 'initiator': {'typeURI': 'service/security/account/user', 'host': {'agent': 'python-keystoneclient', 'address': '192.168.10.50'}, 'id': 'openstack:a9c0e6ea-cb66-49a4-af3a-862a72bbcac9', 'name': u'0231cc95c24740a288153e1e591d478d'}, 'target': {'typeURI': 'service/security/account/user', 'id': 'openstack:3227c5fa-7706-4a70-84a1-502a3b1310e5'}, 'observer': {'typeURI': 'service/security', 'id': 'openstack:ac743ea0-ee86-47f4-9581-9ebe3ade962b'}, 'eventType': 'activity', 'eventTime': '2016-04-24T02:21:02.449350+0000', 'action': 'authenticate', 'outcome': 'pending', 'id': 'openstack:3f54936f-d25a-41b7-9a58-d7e1e1b3c4e8'} _send_audit_notification /usr/lib/python2.6/site-packages/keystone/notifications.py:289
2016-04-24 10:21:02.478 23616 DEBUG keystone.notifications [-] CADF Event: {'typeURI': 'http://schemas.dmtf.org/cloud/audit/1.0/event', 'initiator': {'typeURI': 'service/security/account/user', 'host': {'agent': 'python-keystoneclient', 'address': '192.168.10.50'}, 'id': 'openstack:a9c0e6ea-cb66-49a4-af3a-862a72bbcac9', 'name': u'0231cc95c24740a288153e1e591d478d'}, 'target': {'typeURI': 'service/security/account/user', 'id': 'openstack:eae95ea8-e90c-40af-9bb1-28a6b3ae400d'}, 'observer': {'typeURI': 'service/security', 'id': 'openstack:f66348f3-fb64-491d-a3db-fd0123a47cf8'}, 'eventType': 'activity', 'eventTime': '2016-04-24T02:21:02.478703+0000', 'action': 'authenticate', 'outcome': 'success', 'id': 'openstack:51d26800-00b2-42ee-90f5-418573139fe1'} _send_audit_notification /usr/lib/python2.6/site-packages/keystone/notifications.py:289
2016-04-24 10:21:02.547 23616 INFO eventlet.wsgi.server [-] 192.168.10.50 - - [24/Apr/2016 10:21:02] "POST /v2.0/tokens HTTP/1.1" 200 2528 0.106667
2016-04-24 10:21:02.555 23616 DEBUG keystone.middleware.core [-] RBAC: auth_context: {'is_delegated_auth': False, 'user_id': u'0231cc95c24740a288153e1e591d478d', 'roles': [u'admin'], 'trustee_id': None, 'trustor_id': None, 'project_id': u'4c475f2dc8e8488e8574e0112133cc1f', 'trust_id': None} process_request /usr/lib/python2.6/site-packages/keystone/middleware/core.py:281
2016-04-24 10:21:02.562 23616 INFO eventlet.wsgi.server [-] 192.168.10.50 - - [24/Apr/2016 10:21:02] "GET /v2.0/users HTTP/1.1" 404 252 0.009257


2016-04-24 10:24:24.493 23616 DEBUG keystone.middleware.core [-] RBAC: auth_context: {} process_request /usr/lib/python2.6/site-packages/keystone/middleware/core.py:281
2016-04-24 10:24:24.495 23616 DEBUG keystone.common.wsgi [-] arg_dict: {} __call__ /usr/lib/python2.6/site-packages/keystone/common/wsgi.py:181
2016-04-24 10:24:24.505 23616 INFO eventlet.wsgi.server [-] 192.168.10.50 - - [24/Apr/2016 10:24:24] "GET /v2.0/users HTTP/1.1" 200 417 0.011785

加载中
返回顶部
顶部