Ceph&Openstack结合说明操作

openstack结合ceph操作文档

官方文档地址: http://docs.ceph.com/docs/master/rbd/rbd-openstack/

 

    1. 创建Pool池

        ceph osd pool create images 128  #128表示pg数

        ceph osd pool create volumes 512

 

    2. 创建对应账号

       

          ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rx pool=images'
  
[client.cinder]
         key = AQADmY1XW8MsJxAAds8zcRNKq+Jtb3PJox+Vhw==
         
         
        ceph auth get-or-create client.glance mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=images'
                   
[client.glance]
         key = AQAwmY1XdxMCGhAA+YUkZHYcrglYBu84BZ+enA==
                   
        ceph auth get-or-create client.cinder-backup mon 'allow r' osd 'allow class-read object_prefix rbd_children'
                   
[client.cinder-backup]
         key = AQBXmY1XA/r4FBAAPla8wuiigHFtFVkUrGLIXA==

 

    3. 同步到对应服务器 keyring 环文件

创建keyring  Collapse source
1
2
3
4
5
6
7
8
9
10
11
ceph auth get-or-create client.glance  | ssh openstack sudo tee /etc/ceph/ceph.client.glance.keyring
ssh openstack sudo chown glance:glance /etc/ceph/ceph.client.glance.keyring
 
ceph auth get-or-create client.cinder  | ssh compute sudo tee /etc/ceph/ceph.client.glance.keyring
ssh compute sudo chown nova:nova /etc/ceph/ceph.client.glance.keyring
 
ceph auth get-or-create client.cinder | ssh compute sudo tee /etc/ceph/ceph.client.cinder.keyring
ssh compute sudo chown nova:nova /etc/ceph/ceph.client.cinder.keyring
 
ceph auth get-or-create client.cinder | ssh storage sudo tee /etc/ceph/ceph.client.cinde.keyring
ssh storage sudo chown cinder:cinder /etc/ceph/ceph.client.cinder.keyring
posted @ 2017-12-14 09:55  schangech  阅读(293)  评论(0编辑  收藏  举报