stuck in rbd client accessing pool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am a new learner in ceph. Now I install an All-in-one ceph on the host A. Then I tried accessing the ceph from another host B with librados and librbd installed.

From host B: I run python to access the ceph on host A.
>>> import rados
>>> cluster1 = rados.Rados(conffile='/etc/ceph/ceph.conf')
>>> cluster1.connect()
>>> print cluster1.get_fsid()
285441d6-c059-405d-9762-86bd91f279d0
>>> 
>>> import rbd
>>> rbd_inst = rbd.RBD()
>>> ioctx = cluster1.open_ioctx('rbd')
>>> rbd_inst.list(ioctx)
.... stuck in here; it never exits until the python program is killed manually.

But in Host A, I don't find any error info.
zq@zq-ubuntu:~$ rbd list -l
NAME  SIZE PARENT FMT PROT LOCK 
z1   1024M          2           
z2   1024M          2           
z3   1024M          2  

The ceph.conf and ceph.client.admin.keyring in host B are the same to those in host A. Any comments are appreciated.

Thanks,
Strony
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux