Hi list,

We have been using rbd fuse, it works flawless if we use the admin key but we 
don't find a way to tell fuse the username we want to use to log into ceph. It 
always seem to default to client.admin. We even tried setting CEPH_ARGS but it 
doesn't seem to recognize the user id.

So, that's what we do (I've changed our real username for "username"):

export CEPH_ARGS="--id username --keyring 
/etc/ceph/ceph.client.username.keyring"

And then we do:

rbd-fuse -p internal-backups-01 /fuse -internal-backups-01 -d -f

And we get the following error:

FUSE library version: 2.9.2
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.22
flags=0x0000f7fb
max_readahead=0x00020000
Error connecting to cluster: Operation not permitted

And in ceph log we see the following error as-well:

2014-10-28 18:16:35.897745 7f65b57f7700 1 librados: starting msgr at :/0
2014-10-28 18:16:35.897774 7f65b57f7700 1 librados: starting objecter
2014-10-28 18:16:35.897872 7f65b57f7700 1 librados: setting wanted keys
2014-10-28 18:16:35.897875 7f65b57f7700 1 librados: calling monclient init
2014-10-28 18:16:35.900397 7f65b57f7700 0 librados: client.admin authentication 
error (1) Operation not permitted
2014-10-28 18:16:35.900662 7f65b57f7700 1 librados: shutdown

As you may see, it seems to default to client.admin.

Is there something we are missing, is there any way to mount and rbd pool using 
an username other than admin?

(We know we could use kernel module to open the images, but for some kernel 
compatibility issues we are stuck with fuse)

Thanks!

Saludos cordiales,
Xavier Trilla P.
Silicon Hosting<https://siliconhosting.com/>

¿Sabías que ahora en SiliconHosting
resolvemos tus dudas técnicas gratis?

Más información en: siliconhosting.com/qa/<https://siliconhosting.com/qa/>

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to