ceph gateway not working -
i've deployed 6 nodes ceph storage cluster + 1 admin & 1 monitor. seems fine. i've created gateway node , appears fine when started ceph-radosgw process:
[ceph@gwy001iad ~]$ sudo /etc/init.d/ceph-radosgw status /bin/radosgw running.
but i'm not able use rados or rados-admin cmd on it.
[ceph@gwy001iad ~]$ 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 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 [ceph@gwy001iad ~]$ rados lspools 2015-04-22 16:37:57.504032 7fb5dcb837c0 -1 monclient(hunting): error: missing keyring, cannot use cephx authentication 2015-04-22 16:37:57.504038 7fb5dcb837c0 0 librados: client.admin initialization error (2) no such file or directory
couldn't connect cluster! error -2
the keyring file has read permission:
[ceph@gwy001iad ~]$ 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
and config indicate right path ring file:
[ceph@gwy001iad ~]$ 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
keyring file provide write permission.
[ceph@gwy001iad ~]$ cat /etc/ceph/ceph.client.radosgw.keyring [client.radosgw.gwy001iad] key = aqcl5jzvvu6nebaar3xnnabdk9m0cqnlcg/+1w== caps mon = "allow rwx" caps osd = "allow rwx"
the gateway host have ceph-radosgw , radosgw-agent installed on it. appreciate if can provide me tips troubleshooting. best wishes.
please use root account play ceph. have not id issue, using other accounts save keying problem.