为glance服务创建pool池(因为我只有一个OSD节点,所以要将副本数设置为1)
ceph osd pool create glance-images 32
ceph osd pool set glance-images size 1
ceph osd pool application enable glance-images rbd
ceph df
ceph auth get-or-create client.glance-images mon ‘allow r‘ osd ‘allow class-read object_prefix rbd_children, allow rwx pool=glance-images‘ -o /etc/ceph/ceph.client.glance-images.keyring
查看:
ceph auth ls | grep -EA3 ‘client.(glance-images)‘
su - cephd
cd ~/ceph-cluster/
cat <<EOF>> ceph.conf
[client.glance-images]
keyring = /etc/ceph/ceph.client.glance-images.keyring
EOF
ceph-deploy --overwrite-conf admin ceph-mon01
exit
scp /etc/ceph/ceph.conf <glance-node>:/etc/ceph/ceph.conf
原文:https://www.cnblogs.com/jipinglong/p/11223064.html