openstack-keystone安装权限报错问题

1、安装keystone软件包

[[email protected] ~]# yum install openstack-keystone python-keystoneclient -y

配置keystone配置文件

[[email protected] ~]# openstack-config --set /etc/keystone/keystone.conf sql connection mysql://keystone:[email protected]/keystone     #以IP的形式连接mysql

2、配置keystone DB数据库

[[email protected] ~]# 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配置文件中加入下面的命令

[[email protected] ~]# vi /etc/my.cnf

[mysqld]

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

之后重启mysql

service mysqld restart

再次安装keystone库

[[email protected] ~]# 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

时间: 2024-10-14 03:10:11

openstack-keystone安装权限报错问题的相关文章

Ceph安装QEMU报错:User requested feature rados block device configure was not able to find it

CentOS6.3中,要想使用Ceph的block device,需要安装更高版本的QEMU. 安装好ceph后,安装qemu-1.5.2 # tar -xjvf qemu-1.5.2.tar.bz2 # cd qemu-1.5.2 # ./configure --enable-rbd 一定要加上--enable-rbd选项,这样qemu才能支持rbd协议. 这一步可能会报错: ERROR: User requested feature rados block device configure

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED 问题描写叙述 使用pip依照virtualenv报错,例如以下: pip install virtualenv Collecting virtualenv /opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An

CentOS安装过程报错

Unable to read group information from repositories.  This is a problem with the generation of your install tree 网上搜到说是bug http://bbs.linuxtone.org/thread-16947-1-1.html 个人解决办法:把boot大小由200改为1024安装不报错

安装MySQL-python报错error: command 'gcc' failed with exit status 1

[[email protected] MySQL-python-1.2.3]# python setup.py install function) .... _mysql.c:133: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection' _mysql.c:382

Centos安装fabric 报错:error: ‘FFI_DEFAULT_ABI’ undeclared (first use in this function)

Centos安装fabric 报错: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function) 需要安装libffi-devel Debian或Ubuntu需要安装 libffi-dev

python27(32位)安装模块报错“error: Unable to find vcvarsall.bat”

1)首先,下载一个Microsoft Visual C++ Compiler for Python 2.7的补丁,下载地址在这里: http://www.microsoft.com/en-us/download/details.aspx?id=44266 2) 然后下载安装VS2008(对应VER9.0),如果电脑上安装的是VS2010(对应VER10.0), 可以在VS命令行下执行:SET VS90COMNTOOLS=%VS100COMNTOOLS% 如果你安装的是 2012 版(对应VER1

CentOS 6安装KVM后安装虚拟机报错

安装KVM在配置完桥接网卡后,安装虚拟机报错. 附有CentOS 6安装KVM文档,和安装过程截图,可否有人能看出其中问题所在,小女子不胜感激.

安装nghttp2 报错error: Libtool library used but 'LIBTOOL' is undefined

nghttp2 报错error: Libtool library used but 'LIBTOOL' is undefined 如果重新安装libtool和autoconf升级到2.69后,还是报错, 则进行下面的操作: 1,查看aclocal的路径 aclocal --print-ac-dir 显示/usr/local/share/libtool/m4 ls看看里面没有m4文件. 则copy /usr/share/libtool/m4里面的m4文件到此目录下. 2,cd到nghtt2目录 执

安装STS报错(一)

安装STS报错 1.具体报错如下 2.报错原因 3.解决办法 安装STS报错(一)