Creating radosgw with ceph-deploy

It seems that ceph-deploy has some issues setting up authentication when doing ceph-deploy rgw create (on ceph 0.94.3 and ceph-deploy 1.5.28). Here’s an example of how to get radosgw up and running on the “node1” host.

First run the following as root on node1

mkdir /var/lib/ceph/radosgw/ceph-radosgw.node1
ceph-authtool -C -n client.radosgw.node1 --gen-key /var/lib/ceph/radosgw/ceph-radosgw.node1/keyring
ceph-authtool -n client.radosgw.node1 --cap mon 'allow rw' --cap osd 'allow rwx' /var/lib/ceph/radosgw/ceph-radosgw.node1/keyring
ceph auth add client.radosgw.node1 --in-file=/var/lib/ceph/radosgw/ceph-radosgw.node1/keyring

Add this entry to ceph.conf in the deployment folder j85j4j5.

host = node1

Finally, run ceph-deploy to install and start the radosgw service.

ceph-deploy --overwrite-conf rgw create node1

For additional nodes, just repeat these steps for the other nodes (adding additional ceph.conf sections).

Leave a Reply

Your email address will not be published. Required fields are marked *