keystone创建服务实体HTTP500,An unexpected error prevented the server from fulfilling your request. HTTP500

[root@controller ~]# openstack service create --name keystone --description ‘OpenStack Identity’ identity
An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-f18a32ce-c051-478a-a908-f07facf4a0f3)
在这里插入图片描述

问题原因:在 /etc/keystone/keystone.conf 配置文件中,DEFAULT下的token密码错误,以及环境变量中声明的密码错误,
解决方法:重新生成密码,重新定义

ADMIN_TOKEN=$ (openssl rand -hex 10)
export OS_TOKEN=$ ADMIN_TOKEN

编辑 /etc/keystone/keystone.conf [DEFAULT]下的token

token=$ADMIN_TOKEN

补充,如果创建API终端也出现上面的错误,但是token并未错,请重启httpd服务

猜你喜欢

转载自blog.csdn.net/fly1574/article/details/87690073