简体   繁体   English

OpenStack扫视同步错误

[英]Openstack glance sync error

I am working on the OpenStack glance. 我正在研究OpenStack。 after I entered the command 输入命令后

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

beside the deprecated messages, I get lots of other errors that are relevant to python errors and *Access denied for user 'glance'@'xxxx'"* error. 除了已弃用的消息之外,我还获得了许多其他相关错误,这些错误与python错误和*Access denied for user 'glance'@'xxxx'"*错误的*Access denied for user 'glance'@'xxxx'"*

I have used the OpenStack document for Ubuntu step by step. 我已经逐步将OpenStack文档用于Ubuntu。 This is the source address: https://docs.openstack.org/glance/pike/install/install-ubuntu.html 这是源地址: https : //docs.openstack.org/glance/pike/install/install-ubuntu.html

How should I fix the permission error? 我该如何解决权限错误?

The error has to do with connecting to the DB with user 'glance'@'xxxx'. 该错误与使用用户“ glance” @“ xxxx”连接到数据库有关。 See if you can access your DB (probably MySQL) with the same username + password that you have configured in Glance. 查看是否可以使用在Glance中配置的用户名和密码访问数据库(可能是MySQL)。

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

Verify the user + password used in your connection settings. 验证连接设置中使用的用户名和密码。

If you are able to connect with the user + password then you need to look into your grants for the user. 如果您能够使用用户名+密码进行连接,那么您需要查看对用户的授予。 See which grants you have setup: 查看您已设置哪些赠款:

mysql> show grants;

Setup grants using a wildcard if you don't want to use specific IP addresses. 如果您不想使用特定的IP地址,则安装程序使用通配符授予权限。

The older guides have the steps listed, while the newer guides do not: 较旧的指南列出了步骤,而较新的指南则没有:

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM