1) ceph -s is working as expected
# ceph -s
cluster c465bdb2-e0a5-49c8-8305-efb4234ac88a
health HEALTH_OK
monmap e1: 1 mons at {master=192.168.0.10:6789/0}, election epoch
1, quorum 0 master
mdsmap e111: 1/1/1 up {0=master=up:active}
osdmap e114: 2 osds: 2 up, 2 in
pgmap v414: 1200 pgs, 14 pools, 10596 bytes data, 67 objects
500 GB used, 1134 GB / 1722 GB avail
1200 active+clean
2) In /etc/ceph I have the following files
# ls -l
total 20
-rw-r--r-- 1 root root 64 Feb 14 17:10 ceph.client.admin.keyring
-rw-r--r-- 1 root root 401 Feb 15 16:57 ceph.conf
-rw-r--r-- 1 root root 196 Feb 14 20:26 ceph.log
-rw-r--r-- 1 root root 120 Feb 15 11:08 keyring.radosgw.gateway
-rwxr-xr-x 1 root root 92 Dec 21 00:47 rbdmap
3) ceph.conf content is the following
# cat ceph.conf
[global]
auth_service_required = cephx
filestore_xattr_use_omap = true
auth_client_required = cephx
auth_cluster_required = cephx
mon_host = 192.168.0.10
mon_initial_members = master
fsid = c465bdb2-e0a5-49c8-8305-efb4234ac88a
[client.radosgw.gateway]
host = master
keyring = /etc/ceph/keyring.radosgw.gateway
rgw socket path = /tmp/radosgw.sock
log file = /var/log/ceph/radosgw.log
4) And all the keys that exist are the following:
# ceph auth list
installed auth entries:
mds.master
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
caps: [mds] allow
caps: [mon] allow profile mds
caps: [osd] allow rwx
osd.0
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
caps: [mon] allow profile osd
caps: [osd] allow *
osd.1
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
caps: [mon] allow profile osd
caps: [osd] allow *
client.admin
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
caps: [mds] allow
caps: [mon] allow *
caps: [osd] allow *
client.bootstrap-mds
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
caps: [mon] allow profile bootstrap-mds
client.bootstrap-osd
key: AQBWLf5SGBAyBRAAzLwi5OXsAuR5vdo8hs+2zw==
caps: [mon] allow profile bootstrap-osd
client.radosgw.gateway
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
caps: [mon] allow rw
caps: [osd] allow rwx
I still don't get what is wrong...
G.
On Sat, 15 Feb 2014 16:27:41 +0100, Udo Lembke wrote:
Hi,
does "ceph -s" also stuck on missing keyring?
Do you have an keyring like:
cat /etc/ceph/keyring
[client.admin]
key = AQCdkHZR2NBYMBAATe/rqIwCI96LTuyS3gmMXp==
Or do you have anothe defined keyring in ceph.conf?
global-section -> keyring = /etc/ceph/keyring
The key is in ceph - see
ceph auth get-key client.admin
AQCdkHZR2NBYMBAATe/rqIwCI96LTuyS3gmMXp==
or "ceph auth list" for all keys.
Key-genaration is doing by get-or-create key like this (but in this
case
for bootstap-osd):
ceph auth get-or-create-key client.bootstrap-osd mon "allow profile
bootstrap-osd"
Udo
On 15.02.2014 15:35, Georgios Dimitrakakis wrote:
Dear all,
I am following this guide
http://ceph.com/docs/master/radosgw/config/
to setup Object Storage on CentOS 6.5.
My problem is that when I try to start the service as indicated
here:
http://ceph.com/docs/master/radosgw/config/#restart-services-and-start-the-gateway
I get nothing
# service ceph-radosgw start
Starting radosgw instance(s)...
and if I check if the service is running obviously it is not!
# service ceph-radosgw status
/usr/bin/radosgw is not running.
If I try to start it manually without using the service command I
get
the following:
# /usr/bin/radosgw -d -c /etc/ceph/ceph.conf --debug_ms 10
2014-02-15 16:03:38.709235 7fb65ba64820 0 ceph version 0.72.2
(a913ded2ff138aefb8cb84d347d72164099cfd60), process radosgw, pid
24619
2014-02-15 16:03:38.709249 7fb65ba64820 -1 WARNING: libcurl doesn't
support curl_multi_wait()
2014-02-15 16:03:38.709252 7fb65ba64820 -1 WARNING: cross zone /
region transfer performance may be affected
2014-02-15 16:03:38.713898 7fb65ba64820 10 -- :/0 ready :/0
2014-02-15 16:03:38.714323 7fb65ba64820 1 -- :/0 messenger.start
2014-02-15 16:03:38.714434 7fb65ba64820 -1 monclient(hunting):
ERROR:
missing keyring, cannot use cephx for authentication
2014-02-15 16:03:38.714440 7fb65ba64820 0 librados: client.admin
initialization error (2) No such file or directory
2014-02-15 16:03:38.714463 7fb65ba64820 10 -- :/1024619 shutdown
:/1024619
2014-02-15 16:03:38.714468 7fb65ba64820 1 -- :/1024619
mark_down_all
2014-02-15 16:03:38.714477 7fb65ba64820 10 -- :/1024619 wait:
waiting
for dispatch queue
2014-02-15 16:03:38.714406 7fb64b5fe700 10 -- :/1024619 reaper_entry
start
2014-02-15 16:03:38.714506 7fb64b5fe700 10 -- :/1024619 reaper
2014-02-15 16:03:38.714522 7fb64b5fe700 10 -- :/1024619 reaper done
2014-02-15 16:03:38.714764 7fb65ba64820 10 -- :/1024619 wait:
dispatch
queue is stopped
2014-02-15 16:03:38.714786 7fb64b5fe700 10 -- :/1024619 reaper_entry
done
2014-02-15 16:03:38.714819 7fb65ba64820 10 -- :/1024619 wait:
closing
pipes
2014-02-15 16:03:38.714826 7fb65ba64820 10 -- :/1024619 reaper
2014-02-15 16:03:38.714828 7fb65ba64820 10 -- :/1024619 reaper done
2014-02-15 16:03:38.714830 7fb65ba64820 10 -- :/1024619 wait:
waiting
for pipes to close
2014-02-15 16:03:38.714832 7fb65ba64820 10 -- :/1024619 wait: done.
2014-02-15 16:03:38.714833 7fb65ba64820 1 -- :/1024619 shutdown
complete.
2014-02-15 16:03:38.714916 7fb65ba64820 -1 Couldn't init storage
provider (RADOS)
Obviously the problem is some missing keyring but which one and how
can I solve this problem? Furthermore, why this is happening since I
am following the guide to the letter?? Is something missing??
Best,
G.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com