hello,
Does ceph cluster work right? run ceph -s and ceph -w for watching more details.
2016-06-06 16:17 GMT+08:00 strony zhang <strony.zhang@xxxxxxxxx>:
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 -lNAME SIZE PARENT FMT PROT LOCKz1 1024M 2z2 1024M 2z3 1024M 2The 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
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com