搭建openstack环境时出现的问题

penstack环境搭建程度(安装完keystone)

然后运行 openstack domain create --description "An Example Domain" example

出现报错 An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-5e6811f3-0671-4615-88aa-00f35b1e9258)

解决方法一: vim /etc/keystone/keystone.conf

connection = mysql://keystone:redhat@controller/keystone

去掉原先的 connection = mysql+pymysql://keystone:redhat@localhost/keystone


然后按照官方指导从下面的命令开始重新操作一遍

su -s /bin/sh -c "keystone-manage db_sync" keystone

解决方法二: 数据库中授权 grant all privileges on keystone.* to 'keystone'@'controller' identified by 'redhat';

然后按照官方指导从下面的命令开始重新操作一遍

su -s /bin/sh -c "keystone-manage db_sync" keyst

你可能感兴趣的:(搭建openstack环境时出现的问题)