openstack报错The request you have made requires authentication. (HTTP 401)

来源:互联网 发布:matlab 二维矩阵赋值 编辑:程序博客网 时间:2024/06/14 17:21

在使用openstack命令时出现The request you have made requires authentication. (HTTP 401)

刚刚配置完keystone突然出现401报错

[root@controller ~]# openstack service listThe request you have made requires authentication. (HTTP 401) (Request-ID: req-adbde835-6a46-4020-9975-2b18a3bd6e9c)

查看keystone日志发现

keystone.middleware.auth [req-adbde835-6a46-4020-9975-2b18a3bd6e9c - - - - -] RBAC: Invalid token
无效的令牌访问


查看配置文件
admin_token=的值

[DEFAULT]admin_token=c5c1d24595949ae8b7e4

重新配置环境变量

[root@controller ~]# export OS_TOKEN=c5c1d24595949ae8b7e4
[root@controller ~]# openstack service list+----------------------------------+----------+----------+| ID                               | Name     | Type     |+----------------------------------+----------+----------+| b9ce620f5bc94ca49756f271466d6d2d | keystone | identity |+----------------------------------+----------+----------+

执行成功无报错

阅读全文
0 0
原创粉丝点击