创建RGW用户和keyring
创建RGW用户和keyring
在c1服务器上创建keyring:
1
2
|
sudo ceph-authtool --create-keyring /etc/ceph/ceph.client.radosgw.keyring sudo chmod +r /etc/ceph/ceph.client.radosgw.keyring |
生成ceph-radosgw服务对应的用户和key:
1
|
sudo ceph-authtool /etc/ceph/ceph.client.radosgw.keyring -n client.radosgw.gateway --gen-key |
为用户添加访问权限:
1
|
sudo ceph-authtool -n client.radosgw.gateway --cap osd 'allow rwx' --cap mon 'allow rwx' /etc/ceph/ceph.client.radosgw.keyring |
导入keyring到集群中:
1
|
sudo ceph -k /etc/ceph/ceph.client.admin.keyring auth add client.radosgw.gateway -i /etc/ceph/ceph.client.radosgw.keyring |
查看所有key:
1
|
sudo ceph auth list
|

浙公网安备 33010602011771号