glance 服务的 keystone 为什么不能正常授权

2020-01-20 09:44:19 +08:00
 luckrin

glance

[root@controller1 /]# openstack image list

Unauthorized (HTTP 401)

glance 日志

2020-01-20 09:39:25.497 1974 WARNING keystonemiddleware.auth_token [-] Authorization failed for token: InvalidToken: Token authorization failed

2020-01-20 09:39:25.499 1974 INFO eventlet.wsgi.server [-] 192.168.3.169 - - [20/Jan/2020 09:39:25] "GET /v2/images HTTP/1.1" 401 569 0.010779

glance-api 的配置

[keystone_authtoken] auth_uri = controller1:5000 auth_url = controller1:35357 memcached_servers = controller1:11211 auty_type = password project_domain_name = default user_domain_name = default project_name = service username = glance password = glance

keystone 的端点

[root@controller1 /]# openstack endpoint list | grep "keystone"

| 0b17e997436e4713935aa20c48fb1583 | RegionOne | keystone | identity | True | internal | http://controller1:5000/v3/ | | 35c92e33cf5741b08e11138d1d3c364a | RegionOne | keystone | identity | True | public | http://controller1:5000/v3/ | | 901c415a1d474cd2bd0e22f75ead3892 | RegionOne | keystone | identity | True | admin | http://controller1:35357/v3/ |

glance 的端点

[root@controller1 /]# openstack endpoint list | grep "glance"

| 39b06844f4954978bf4d7c1499cf87e1 | RegionOne | glance | image | True | public | http://controller1:9292 | | c39389bae5c64c19867746ec126411b5 | RegionOne | glance | image | True | admin | http://controller1:9292 | | d6c8724f665e4fe19a1b57b0c83fd292 | RegionOne | glance | image | True | internal | http://controller1:9292 |

安装了 nova 服务,也是报 401,需要怎么去定位错误?

888 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/639349

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX