我已經部署了6個節點的ceph存儲集羣+ 1個監視器。一切似乎都很好。我剛剛創建了一個網關節點,它似乎是罰款當我開始頭孢-3- radosgw過程:ceph網關不工作
[[email protected] ~]$ sudo /etc/init.d/ceph-radosgw status
/bin/radosgw is running.
但我不能夠使用任何反興奮劑組織和反興奮劑組織管理員CMD就可以了。
[[email protected] ~]$ sudo radosgw-admin user create --uid="testuser" --display-name="First User"
2015-04-22 16:22:12.706227 7f6579876880 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication
2015-04-22 16:22:12.706234 7f6579876880 0 librados: client.admin initialization error (2) No such file or directory
couldn't init storage provider
[[email protected] ~]$ rados lspools
2015-04-22 16:37:57.504032 7fb5dcb837c0 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication
2015-04-22 16:37:57.504038 7fb5dcb837c0 0 librados: client.admin initialization error (2) No such file or directory
無法連接到羣集!錯誤-2
密鑰環文件讀取權限:
[[email protected] ~]$ ls -l /etc/ceph/
total 16
-rw-r--r-- 1 root root 252 Apr 21 17:14 ceph.client.radosgw.keyring
-rw-r--r-- 1 root root 121 Apr 20 17:53 ceph.client.radosgw.keyring.bk
-rw-r--r-- 1 root root 814 Apr 21 17:30 ceph.conf
drwxr-xr-x 2 root root 6 Apr 21 12:31 radosgw-agent
-rwxr-xr-x 1 root root 92 Apr 10 12:42 rbdmap
-rw------- 1 root root 0 Apr 21 11:57 tmpavz_Y7
而且配置確實表明了環文件的正確的道路:
[[email protected] ~]$ cat /etc/ceph/ceph.conf
[global]
mon_initial_members = mondev001iad
mon_host = 10.96.40.98
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
filestore_xattr_use_omap = true
osd_pool_default_size = 2
osd pool default pg num = 100
osd pool default pgp num = 100
#debug ms = 1
#debug rgw = 20
[mon]
# mon host = mondev001iad
# mon addr = 10.96.40.98:6789
[mon.cldstoremondev001iad]
host = mondev001iad
mon addr = 10.96.40.98:6789
[client.radosgw.gwy001iad]
host = gwy001iad
keyring = /etc/ceph/ceph.client.radosgw.keyring
rgw socket path = ""
log file = /var/log/radosgw/client.radosgw.gateway.log
rgw frontends = fastcgi socket_port=9000 socket_host=0.0.0.0
rgw print continue = false
環文件不提供寫入權限。
[[email protected] ~]$ cat /etc/ceph/ceph.client.radosgw.keyring
[client.radosgw.gwy001iad]
key = AQCl5jZVVu6NEBAAR3xNNAbDK9m0cQnlCG/+1w==
caps mon = "allow rwx"
caps osd = "allow rwx"
網關主機只安裝了ceph-radosgw和radosgw-agent。我很感激任何人都可以提供我的疑難解答提示。最好的祝願。