configuring cluster handle in python rados exits with error NoneType is not callable

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

 



I want to access ceph cluster rbd images via python interface. In a standalone simple python script this works without problems. However i want to create a plugin for bareos backup where this does not work and cluster configure exits with error:

cluster = rados.Rados(rados_id="admin",clustername="ceph",conffile="/etc/ceph/ceph.conf",conf = dict(keyring = "/etc/ceph/ceph.client.admin.keyring"))

File "rados.pyx", line 525, in rados.Rados.__init__ (/tmp/buildd/ceph-10.2.2/src/build/rados.c:5878)

File "rados.pyx", line 423, in rados.requires.wrapper.validate_func (/tmp/buildd/ceph-10.2.2/src/build/rados.c:4097)

TypeError: 'NoneType' object is not callable


Currently this is simple:

import rados

import rbd

rados.Rados(conffile='')

(or with some more parameters - no matter what always same error)


This is on ubuntu 14.04 with ceph 10.2.2 and latest bareos.

Identical code in simple python script works but embedded in bareos plugin it does not.

Any idea what might be causing such behaviour?

Thanks in advance.

_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux