[[email protected] ~]# cd /usr/local/src/
[[email protected] src]# cd keystone-2014.1
[[email protected] keystone-2014.1]# python setup.py install
[[email protected] keystone-2014.1]# cd etc/
[[email protected] etc]# ll
总用量 72
-rw-rw-r-- 1 1004 1004 1540 4月 17 17:19 default_catalog.templates
-rw-rw-r-- 1 1004 1004 38423 4月 17 17:19 keystone.conf.sample
-rw-rw-r-- 1 1004 1004 3635 4月 17 17:19 keystone-paste.ini
-rw-rw-r-- 1 1004 1004 1046 4月 17 17:19 logging.conf.sample
-rw-rw-r-- 1 1004 1004 6397 4月 17 17:19 policy.json
-rw-rw-r-- 1 1004 1004 9032 4月 17 17:19 policy.v3cloudsample.json
把keystone需要的目录创建了
[[email protected] etc]# mkdir /etc/keystone
[[email protected] etc]# mkdir /var/log/keystone
[[email protected] etc]# mkdir /var/run/keystone
[[email protected] etc]# cp keystone.conf.sample /etc/keystone/keystone.conf
[[email protected] etc]# cp keystone-paste.ini /etc/keystone/
[[email protected] etc]# cp logging.conf.sample /etc/keystone/logging.conf
[[email protected] etc]# cp policy.json /etc/keystone/
创建PKI证书
[[email protected] etc]# keystone-manage pki_setup --keystone-user root --keystone-group root
Generating RSA private key, 2048 bit long modulus
.....................+++
.......................+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
..................................................................+++
.............................................................+++
e is 65537 (0x10001)
Using configuration from /etc/keystone/ssl/certs/openssl.conf
Check that the request matches the signature
Signature ok
The Subject‘s Distinguished Name is as follows
countryName :PRINTABLE:‘US‘
stateOrProvinceName :ASN.1 12:‘Unset‘
localityName :ASN.1 12:‘Unset‘
organizationName :ASN.1 12:‘Unset‘
commonName :ASN.1 12:‘www.example.com‘
Certificate is to be certified until Aug 14 15:01:44 2024 GMT (3650 days)
Write out database with 1 new entries
Data Base Updated
625行
[[email protected] etc]# chown -R root:root /etc/keystone/ssl
[[email protected] etc]# chmod -R 750 /etc/keystone/ssl
[[email protected] etc]# cd ~
[[email protected] ~]# vim /etc/keystone/keystone.conf
connection=mysql://keystone:[email protected]/keystone
openstack I版的搭建二,布布扣,bubuko.com