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

openstack I版的搭建二

时间:2014-08-18 01:37:33      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:openstack

[root@linux-node1 ~]# cd /usr/local/src/

[root@linux-node1 src]# cd keystone-2014.1

[root@linux-node1 keystone-2014.1]# python setup.py install

[root@linux-node1 keystone-2014.1]# cd etc/

[root@linux-node1 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需要的目录创建了

[root@linux-node1 etc]# mkdir /etc/keystone

[root@linux-node1 etc]# mkdir /var/log/keystone

[root@linux-node1 etc]# mkdir /var/run/keystone

[root@linux-node1 etc]# cp keystone.conf.sample /etc/keystone/keystone.conf

[root@linux-node1 etc]# cp keystone-paste.ini /etc/keystone/

[root@linux-node1 etc]# cp logging.conf.sample /etc/keystone/logging.conf

[root@linux-node1 etc]# cp policy.json /etc/keystone/

创建PKI证书

[root@linux-node1 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行

[root@linux-node1 etc]# chown -R root:root /etc/keystone/ssl

[root@linux-node1 etc]# chmod -R 750 /etc/keystone/ssl

[root@linux-node1 etc]# cd ~

[root@linux-node1 ~]# vim /etc/keystone/keystone.conf 

connection=mysql://keystone:keystone@191.168.33.11/keystone


本文出自 “8055082” 博客,谢绝转载!

openstack I版的搭建二,布布扣,bubuko.com

openstack I版的搭建二

标签:openstack

原文地址:http://8065082.blog.51cto.com/8055082/1541407

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