Hello,
I am fighting with rbd and CEPH_ARGS in order to make typing easier on a
client. First I created a keyring on one of the ceph nodes:
# ceph auth add client.rainer mon 'profile rbd' osd 'profile rbd'
added key for client.rainer
Then I added this keyring to /etc/ceph/ceph.keyring on a client machine.
# cat /etc/ceph/ceph.keyring:
[client.rainer]
key = xxyxyxyxyxyxyxyxyxyxyxyxyxyxy==
Now on the client I try:
# rbd ls
2020-01-20 14:15:49.124 7fa9191f0700 -1 monclient(hunting):
handle_auth_bad_method server allowed_methods [2] but i only support [2]
2020-01-20 14:15:49.124 7fa9189ef700 -1 monclient(hunting):
handle_auth_bad_method server allowed_methods [2] but i only support [2]
rbd: couldn't connect to the cluster!
rbd: listing images failed: (1) Operation not permitted
Using the --name arg things work good:
# rbd ls --name client.rainer
<list of rbds>
...
Now to make typing easier I tried:
# export CEPH_ARGS="--name client.rainer --keyring=/etc/ceph/ceph.keyring"
# rbd ls
2020-01-20 14:18:33.367 7f691177c700 -1 monclient(hunting):
handle_auth_bad_method server allowed_methods [2] but i only support [2]
rbd: couldn't connect to the cluster!
rbd: listing images failed: (1) Operation not permitted
According to the documentation this should work, but it seems it
doesn't. Something I am doing wrong or is this a bug?
Thanks
Rainer
--
Rainer Krienke, Uni Koblenz, Rechenzentrum, A22, Universitaetsstrasse 1
56070 Koblenz, Tel: +49261287 1312 Fax +49261287 100 1312
Web: http://userpages.uni-koblenz.de/~krienke
PGP: http://userpages.uni-koblenz.de/~krienke/mypgp.html
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com