安装OpenStack启动Keystone时HTTP报500内部错误解决

我的环境:CentOS7 + OpenStack Liberty
这个问题可能是因为我把controller的localhost改成controller了,在/etc/hostname中
那么这个问题出现之后,我在每个服务中都需要使用两个database的认证
vi /etc/keystone/keystone.conf
connection = mysql://keystone:pass@controller/keystone
connection = mysql://keystone:pass@localhost/keystone # new line added to suppress HTTP 500 error
After that run these commands again to reflect keystone.conf changes made,
Populate the database tables for the Identity Service:
su -s /bin/sh -c "keystone-manage db_sync" keystone
Restart the Identity Service: sudo systemctl enable openstack-keystone.service sudo systemctl start openstack-keystone.service
这样就可以了。OpenStack中还有有很多坑的。记录一下。
我提交了一个BUG。
链接如下:
https://bugs.launchpad.net/openstack-manuals/+bug/1570699

你可能感兴趣的:(http,error,openstack,500,keystone)