Re: making ceph_volume_client py3 compatible

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

 



Link to test.py[6] that appears in the traceback.

[6] https://github.com/rishabh-d-dave/ceph/blob/py2-to-py3/src/pybind/test.py

On 7 May 2018 at 18:57, 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?
>
> [1] https://github.com/rishabh-d-dave/ceph/blob/volclient-keyargs-for-all-exceptions/src/pybind/ceph_volume_client.py#L458
> [2] https://github.com/rishabh-d-dave/ceph/blob/volclient-keyargs-for-all-exceptions/src/pybind/rados/rados.pyx#L880
> [3] https://github.com/rishabh-d-dave/ceph/blob/volclient-keyargs-for-all-exceptions/src/pybind/rados/rados.pyx#L461
> [4] http://tracker.ceph.com/issues/24033?next_issue_id=24031
> [5] https://github.com/ceph/ceph/pull/21853
--
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



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

  Powered by Linux