Re: Client not finding keyring

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

 



Hi,

radosgw-admin is not radosgw. It’s the RADDOS Gateway cli admin utility.

All ceph components by default use the client.admin user name to connect to the Ceph cluster. If you deployed the radosgw, the gateway itself was properly configured by Ansible and the files were placed where they have to be.

To override, look at the following page and use the appropriate command line option to specify the proper user name or user id (--id or --name): e.g. radosgw-admin --id radosgw.rgw usage show

Regards
JC


On Jun 1, 2016, at 14:07, RJ Nowling <rnowling@xxxxxxxxxx> wrote:

Hi all,

I'm trying to set up a Ceph cluster with an S3 gateway using the ceph-ansible playbooks.  I'm running into an issue where the radosgw-admin client can't find the keyring.  The path to the keyring is listed in the ceph.conf file.  I confirmed with strace that the client opens the conf file but doesn't open the path given in the conf file -- only the default keyring paths.

Here's the output:

[vagrant@ceph-rgw0 ~]$ sudo radosgw-admin usage show
2016-06-01 13:36:17.294935 7fe45ac80a40 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory
2016-06-01 13:36:17.300732 7fe45ac80a40 -1 monclient(hunting): authenticate NOTE: no keyring found; disabled cephx authentication
2016-06-01 13:36:17.300737 7fe45ac80a40  0 librados: client.admin authentication error (95) Operation not supported
couldn't init storage provider

Here's the relevant part of the config file:

[client.radosgw.rgw0]
host = ceph-rgw0
keyring = /var/lib/ceph/radosgw/ceph-rgw.ceph-rgw0/keyring
rgw socket path = /tmp/radosgw-ceph-rgw0.sock
log file = /var/log/ceph/ceph-rgw-ceph-rgw0.log
rgw data = "">
rgw frontends = civetweb port=10.0.2.15:8080 num_threads=50

When I copy the keyring to /etc/ceph/keyring, the keyring is found but I get a different error:

[vagrant@ceph-rgw0 ~]$ sudo radosgw-admin usage show
2016-06-01 21:07:22.677525 7f62f2e38a40  0 librados: client.admin authentication error (22) Invalid argument
couldn't init storage provider

Any insights would be greatly appreciated!

Thanks!
RJ
_______________________________________________
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

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


  Powered by Linux