V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
luckrin
V2EX  ›  问与答

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

  •  
  •   luckrin · 2020-01-20 09:44:19 +08:00 · 888 次点击
    这是一个创建于 1728 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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,需要怎么去定位错误?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1086 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:18 · PVG 02:18 · LAX 11:18 · JFK 14:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.