Re: missing keyring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You do need to copy the keyring to wherever you are running the commands. 
See http://ceph.com/docs/master/rados/configuration/auth-config-ref/#keys

If you didn't generate them, or the deployment tool didn't do it for you (e.g., mkcephfs does this for you) see  http://ceph.com/docs/master/rados/operations/authentication/#the-client-admin-key  and the subsequent section http://ceph.com/docs/master/rados/operations/authentication/#monitor-keyrings for details.


On Fri, Apr 12, 2013 at 2:47 AM, Markus Goldberg <goldberg@xxxxxxxxxxxxxxxxx> wrote:
Hi,
i'm doing my first steps in ceph/rados.
The hardware is waiting to be installed but my first action is installing a virtual test-config:

vm-ware, 3 nodes, ubuntu 12.10, kernel 3.8.5, ceph 0.60

I have configured the virtual-machines but running 'mkcephfs -a -c /etc/ceph/ceph.conf -k /etc/ceph/admin.keyring --mkfs' doesn't create the mon.?.keyring-files.
admin.keyring, mds.a.keyring and osd.0.keyring are created fine on the first server but there is no mon.?.keyring

Then ceph -s gives the following error:

2013-04-12 10:21:46.517706 7f5c03ceb780 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication
2013-04-12 10:21:46.517869 7f5c03ceb780 -1 ceph_tool_common_init failed.

What am i doing wrong ?

Here is my ceph.conf:
[global]
    auth cluster required = cephx
    auth service required = cephx
    auth client  required = cephx
    keyring = /etc/ceph/$name.keyring

[mon]
    mon data = "">
[mds]

[osd]
    osd data = "">     osd journal = /var/lib/ceph/osd.$id/journal
    osd journal size = 10000

    osd mkfs type = btrfs
    osd mkfs options btrfs = -n 32k -l 32k
    osd mount options btrfs = rw,noatime,nodiratime,autodefrag

[mon.a]
    host = ce-0
    mon addr = xxx.xxx.8.170:6789

[mon.b]
    host = ce-1
    mon addr = xxx.xxx.8.171:6789

[mon.c]
    host = ce-2
    mon addr = xxx.xxx.8.172:6789

[osd.0]
    host = ce-0
    btrfs devs = /dev/sdb1

[osd.1]
    host = ce-1
    btrfs devs = /dev/sdb1

[osd.2]
    host = ce-2
    btrfs devs = /dev/sdb1

[mds.a]
    host = ce-0

Thank you,
  Markus


------------------------------------------------------------------------
Markus Goldberg     | Universität Hildesheim
                    | Rechenzentrum
Tel +49 5121 883212 | Marienburger Platz 22, D-31141 Hildesheim, Germany
Fax +49 5121 883205 | email goldberg@xxxxxxxxxxxxxxxxx
------------------------------------------------------------------------


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



--
John Wilkins
Senior Technical Writer
Intank
john.wilkins@xxxxxxxxxxx
(415) 425-9599
http://inktank.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux