Hi,
I have a doubt in mapping rbd using client keyring file. Created keyring as
below
sudo ceph-authtool -C -n client.foo --gen-key /etc/ceph/keyring
sudo chmod +r /etc/ceph/keyring
sudo ceph-authtool -n client.foo --cap mds 'allow' --cap osd 'allow rw
pool=pool1' --cap mon 'allow r' /etc/ceph/keyring
sudo ceph-authtool -l /etc/ceph/keyring
sudo ceph -k /etc/ceph/ceph.client.admin.keyring auth add client.foo -i
/etc/ceph/keyring
root@client1:~$ sudo cat /etc/ceph/keyring
[client.foo]
key = AQDkeSlUWGa6ExAAf2T/S6kJdQtRJqNoovinWw==
caps mds = "allow"
caps mon = "allow r"
caps osd = "allow r pool=pool1"
I tried mapping rbd and got following error message
root@client1:~$ sudo rbd map img1 -p pool1 -n client.foo -k /etc/ceph/keyring
2014-10-01 21:37:43.404051 7f3858d4a840 2 auth: KeyRing::load: loaded key file
/etc/ceph/keyring
rbd: sysfs write failed
rbd: map failed: (34) Numerical result out of range
How to map an rbd after setting read-only permission for particular pool ?
How to run or perform read IO for particular pool ?
Regards,
Ramakrishnan P
SanDisk
________________________________
PLEASE NOTE: The information contained in this electronic mail message is
intended only for the use of the designated recipient(s) named above. If the
reader of this message is not the intended recipient, you are hereby notified
that you have received this message in error and that any review,
dissemination, distribution, or copying of this message is strictly prohibited.
If you have received this communication in error, please notify the sender by
telephone or e-mail (as shown above) immediately and destroy any and all copies
of this message in your possession (whether hard copies or electronically
stored copies).
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com