环境为win7+virtualbox 中的centos6.5
安装Glance 的包
yum install openstack-glance python-glanceclient -y
配置Glance 连接数据库
openstack-config --set /etc/glance/glance-api.conf DEFAULT sql_connection mysql://glance:openstack@controller0/glance
openstack-config --set /etc/glance/glance-registry.conf DEFAULT sql_connection mysql://glance:openstack@controller0/glance
初始化Glance数据库
openstack-db --init --service glance --password openstack
到这步的时候报错
from Crypto import Random -> ImportError: cannot import name Random
然后就看了一下自己Python的version和路径。然后去下载Crypto的Python包我必应搜了crypto-random package,
出来的是这个http://hackage.haskell.org/package/crypto-random-effect 可是里面的后缀名是.HS的。我需要的是.PY的
于是我找了个看起来不错的 https://www.dlitz.net/software/pycrypto/
然后安装
Linux压缩保留源文件的方法:
gzip –c filename > filename.gz