The request you have made requires authentication. (HTTP 401) (Request-ID: req-f94bebba-f0c5-4a92-85

时间:2024-03-28 14:47:22

The request you have made requires authentication. (HTTP 401) (Request-ID: req-f94bebba-f0c5-4a92-85

如果安装openstack的keystone服务出现这个报错后

把keystone配置文件修改下
The request you have made requires authentication. (HTTP 401) (Request-ID: req-f94bebba-f0c5-4a92-85

ADMIN_TOKEN=$(openssl rand -hex 10)  如果长期使用,就放到变量里去


openssl rand -hex 10  #######这个就是获取随机值 

获取一个随机值 并填写进去就可以了
然后设置下环境变量

export OS_TOKEN=$ADMIN_TOKEN
export OS_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3