您好, 我采用如下方法安装的keystone
1
cd ~/ketstone
2
python setup.py install
3
mkdir -p /etc/keystone
4
cp etc/keystone.conf.sample /etc/keystone/keystone.conf
5
cp etc/keystone-paste.ini /etc/keystone/
编辑配置文件/etc/keystone/keystone.conf
1
#admin_token=ADMIN
2
改为
3
admin_token=ADMIN
4
5
#connection=
6
改为
7
connection=mysql://keystone:openstack@localhost/keystone
最后同步数据库schema并运行keystone的时候报错
root@master keystone]# keystone-manage db_sync
Traceback (most recent call last):
File "/usr/bin/keystone-manage", line 6, in <module>
from keystone.cmd.manage import main
ImportError: No module named keystone.cmd.manage
另外:
or: No module named oslo_utils
[root@master keystone]# keystone-all
Traceback (most recent call last):
File "/usr/bin/keystone-all", line 6, in <module>
from keystone.cmd.all import main
ImportError: No module named keystone.cmd.all
我猜应该是某些包没有装,但是百度找不到相应的线索,希望得到您的指点。 |