码迷,mamicode.com
首页 > 其他好文 > 详细

openstack-keystone安装权限报错问题

时间:2014-08-26 09:58:26      阅读:348      评论:0      收藏:0      [点我收藏+]

标签:openstack常见问题

1、安装keystone软件包

[root@os-node1 ~]# yum install openstack-keystone python-keystoneclient -y

配置keystone配置文件

[root@os-node1 ~]# openstack-config --set /etc/keystone/keystone.conf sql connection mysql://keystone:keystone@10.240.216.1/keystone     #以IP的形式连接mysql

2、配置keystone DB数据库

[root@os-node1 ~]# openstack-db --init --service keystone --password keystone

Please enter the password for the ‘root‘ MySQL user: 

Verified connectivity to MySQL.

Creating ‘keystone‘ database.

Initializing the keystone database, please wait...

2014-08-26 09:04:50.930 19522 CRITICAL keystone [-] (OperationalError) (1045, "Access denied for user ‘keystone‘@‘os-node1‘ (using password: YES)") None None

ERROR 1146 (42S02) at line 1: Table ‘keystone.migrate_version‘ doesn‘t exist

Final sanity check failed.

Please file a bug report on bugzilla.redhat.com against the openstack-keystone package.


上面的报错,在解析主机的时候是认的是域名,如果连接mysql时用IP形式的需要在mysql配置文件中加入下面的命令

[root@os-node1 ~]# vi /etc/my.cnf 


[mysqld]

skip-name-resolve      #加入这条命令,意思是跳过域名解析


之后重启mysql

service mysqld restart



再次安装keystone库 

[root@os-node1 ~]# openstack-db --init --service keystone --password keystone

Please enter the password for the ‘root‘ MySQL user: 

Verified connectivity to MySQL.

Creating ‘keystone‘ database.

Initializing the keystone database, please wait...

Complete


本文出自 “zhanguo1110” 博客,请务必保留此出处http://zhanguo1110.blog.51cto.com/5750817/1545002

openstack-keystone安装权限报错问题

标签:openstack常见问题

原文地址:http://zhanguo1110.blog.51cto.com/5750817/1545002

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!