On Mon, May 7, 2018 at 6:27 AM, Rishabh Dave <ridave@xxxxxxxxxx> wrote: > On 4 May 2018 at 20:37, John Spray <jspray@xxxxxxxxxx> wrote: >> Because the python libraries are importing the equivalent C libraries, >> you also need to update LD_LIBRARY_PATH >> >> My (python 2) prefix looks like this: >> LD_LIBRARY_PATH=~/ceph/build/lib/ >> PYTHONPATH=~/ceph/build/lib/cython_modules/lib.2/ > > Okay. This solves the error, but I am stuck with another now - > > Connecting to RADOS with config /home/centos/repos/ceph/build/ceph.conf... > Traceback (most recent call last): > File "test.py", line 49, in <module> > header() > File "test.py", line 14, in header > vc.connect() > File "/home/centos/repos/ceph/src/pybind/ceph_volume_client.py", > line 458, in connect > self.rados.connect() > File "rados.pyx", line 884, in rados.Rados.connect (rados.c:9790) > File "rados.pyx", line 463, in rados.make_ex (rados.c:3228) > TypeError: InvalidArgumentError does not take keyword arguments > disconnect > Disconnecting rados... > Disconnecting rados complete > > The code fails here in ceph_volume_client.py [1] and here in rados.pyx > [2] [3]. I've created an issue for TypeError [1] and submitted a patch > [2]. However, I couldn't figure out why I get InvalidArgumentError or > how do I debug this. Can I get some help? The test.py line number doesn't exist in your follow-up link. The issue appears to be rados.connect() not liking how it was configured. Try changing your ceph.conf to increase client debugging and then examine the logs for clues. -- Patrick Donnelly -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html