linux - Openstack glance 同步错误

标签 linux cloud openstack openstack-glance

我正在研究 OpenStack glance。在我输入命令后

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

除了已弃用的消息外,我还收到许多与 python 错误和*Access denied for user 'glance'@'x.x.x.x'"*错误相关的其他错误。

我已经一步步使用了 Ubuntu 的 OpenStack 文档。 这是源地址:https://docs.openstack.org/glance/pike/install/install-ubuntu.html

我应该如何修复权限错误?

最佳答案

该错误与使用用户“glance”@“x.x.x.x”连接到数据库有关。查看您是否可以使用您在 Glance 中配置的相同用户名和密码访问您的数据库(可能是 MySQL)。

[database]
# ...
connection = mysql+pymysql://glance:GLANCE_DBPASS@controller/glance

验证连接设置中使用的用户名和密码。

如果您能够使用用户名 + 密码连接,那么您需要查看您对用户的授权。查看您设置了哪些赠款:

mysql> show grants;

如果您不想使用特定的 IP 地址,请使用通配符设置授权。

旧指南列出了步骤,而新指南没有:

https://docs.openstack.org/ocata/install-guide-ubuntu/glance-install.html

GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' IDENTIFIED BY 'GLANCE_DBPASS';

关于linux - Openstack glance 同步错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46663801/

相关文章:

linux - 如何使我的默认(或任何静态)路由在 Linux(特别是 Fedora 9)上永久存在?

linux - 对整个服务器进行备份以便以后恢复

windows - 使用 VBScript 从 Windows 上下文(右键单击)菜单中选择特定菜单项?

cloud - 使用 Cloud Data Fusion 从 MySql 在 Bigquery 中追加增量数据

ubuntu - 安装openstack

python - virtualenv 未从 Linux Centos 上的 crontab 激活

c++ - Linux 到 Windows C++ 端口

networking - 云网络不支持UDP有什么好处? (考虑Windows Azure案例)

python - 无法运行 openstack nova 的单元测试

openstack - OpenStack上的Docker驱动程序可以与libvirt.LibvirtDriver共存吗?