Hi Ishmael
You have to apply correct client.keyring permission to a pool on which you 
trying to create rbd image.
>From Admin/Management Node: - create a client keyring.
1. Admin Node:-- ceph auth get-or-create client.rbd mon 'allow r' osd 'allow 
rwx pool=PoolA'    [client.rbd1]        key = 
AQB2kVpXjhq9OBAACIHEUeRs04UqJsbQeNyLRg==             2. Get the keyring from 
auth list and push the keyring to client node. -- ceph auth get-or-create 
client.rbd | ssh user@clientA1 sudo tee /etc/ceph/ceph.client.rbd.keyring     
[client.rbd1]        key = AQB2kVpXjhq9OBAACIHEUeRs04UqJsbQeNyLRg==             
3. From client Node     cat /etc/ceph/ceph.client.rbd.keyring >> 
/etc/ceph/keyringceph -s --name client.rbd
user@client:$ rbd create PoolA/PoolA_image1 -S 100G --image-format 2 
--object-size 32K --image-feature layering --name client.rbduser@client:$ sudo 
rbd map --image PoolA/PoolA_image1 --name client.rbd/dev/rbd0
-- Rakesh Parkiti
---------- Forwarded message ----------
From: Ishmael Tsoaela <ishmae...@gmail.com>
Date: Fri, Jun 17, 2016 at 5:31 PM
Subject: [ceph-users] image map failed
To: ceph-users@lists.ceph.com


Hi,Will someone please assist, I am new to cepph and I am trying to map image 
and this happens:cluster-admin@nodeB:~/.ssh/ceph-cluster$ rbd map data_01 
--pool data
rbd: sysfs write failed
In some cases useful info is found in syslog - try "dmesg | tail" or so.
rbd: map failed: (13) Permission deniedIf someone could help it would be 
greatcluster-admin@nodeB:~/.ssh/ceph-cluster$ ceph -v
ceph version 10.2.1 
(3a66dd4f30852819c1bdaa8ec23c795d4ad77269)cluster-admin@nodeB:~/.ssh/ceph-cluster$
 lsb_release -r
Release: 14.04

_______________________________________________

ceph-users mailing list

ceph-users@lists.ceph.com

http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com






-- 

Thanks Rakesh Parkiti
Senior Test Engineer
                                          
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to