求助!剛配置完glance準備驗證操作,但總是401,看日志也分析不出原因,求高人指點!
openstack版本為pike
hostname應該不是問題,解析已做而且Keystone也一直在用。
Keystone服務正常,openstack user list、service list 等等都查詢,token issue也能擷取到。
glance服務正常,9191、9292正常。
端點服務如下:
keystone | identity | True | admin | http://controller:35357/v3/
keystone | identity | True | internal | http://controller:5000/v3/
keystone | identity | True | public | http://controller:5000/v3
glance | image | True | admin | http://controller:9292
glance | image | True | public | http://controller:9292
glance | image | True | internal | http://controller:9292
[[email protected] home]# openstack image list
Unauthorized (HTTP 401)
[api.log]
2018-01-24 00:10:46.186 7765 WARNING keystonemiddleware.auth_token [-] Authorization failed for token: NotFound: No token in the request (HTTP 404) (Request-ID: req-95dad5f9-ebad-49ce-b1d2-4dcf1fc38713)
2018-01-24 00:10:46.187 7765 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "No token in the request", "code": 404, "title": "Not Found"}}: NotFound: No token in the request (HTTP 404) (Request-ID: req-95dad5f9-ebad-49ce-b1d2-4dcf1fc38713)
2018-01-24 00:10:46.188 7765 WARNING keystonemiddleware.auth_token [-] Authorization failed for token: InvalidToken: Token authorization failed
2018-01-24 00:10:46.190 7765 INFO eventlet.wsgi.server [-] 192.168.1.80 - - [24/Jan/2018 00:10:46] "GET /v2/images HTTP/1.1" 401 566 0.265521
[keystone.log]
2018-01-24 00:10:46.178 1237 INFO keystone.common.wsgi [req-95dad5f9-ebad-49ce-b1d2-4dcf1fc38713 cfd24a5b01a9439086f53d7ea73ffe7a ec33ec80b4564064a28de3e8d6bd4ba1 - default default] GET http://controller:35357/v3/auth/tokens
2018-01-24 00:10:46.183 1237 WARNING keystone.common.wsgi [req-95dad5f9-ebad-49ce-b1d2-4dcf1fc38713 cfd24a5b01a9439086f53d7ea73ffe7a ec33ec80b4564064a28de3e8d6bd4ba1 - default default] No token in the request: TokenNotFound: No token in the request