CCing correct mailing list ...
On Thu, Jan 23, 2020 at 3:19 PM Jason Dillaman <jdillama(a)redhat.com> wrote:
On Mon, Jan 20, 2020 at 8:26 AM Rainer Krienke <krienke(a)uni-koblenz.de> wrote:
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?
Hmm, it looks like this was unintentionally broken globally throughout
Ceph in commit 7f23142f5ccc5ac8153d32b2c9a8353593831967 back in the
mimic release. Previously, the CEPH_ARGS environment overrides were
combined with the command-line arguments near startup, but now they
are not combined until after numerous early arguments are parsed (e.g.
"name", "id", "cluster", "conf", etc). I'll
open a tracker ticket
against this issue.
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
ceph-users(a)lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
--
Jason