Skip to contentSkip to conversation

AttributeError: 'Rados' object has no attribute 'monitor_log'

DISCUSSION Willem Jan Withagen 2 participants 5 messages Jul 6, 2016 – Jul 18, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to run cephtool-test-mon.sh, and it gets there quite far but somewhere down the test I have this error:
Now python is not my strong point.

Where should I start looking?

--WjW

/home/wjw/Ceph/work.cmake/ceph/qa/workunits/cephtool/test.sh:159:
ceph_watch_start: sleep 1
5: Traceback (most recent call last):
5: File "/home/wjw/Ceph/work.cmake/ceph/build/bin/ceph", line 948, in
<module>
5: retval = main()
5: File "/home/wjw/Ceph/work.cmake/ceph/build/bin/ceph", line 775, in main
5: run_in_thread(cluster_handle.monitor_log, level, watch_cb, 0)
5: AttributeError: 'Rados' object has no attribute 'monitor_log'

#1 lore raw
Quoted 5 lines · Willem Jan Withagen

Hi,

I'm trying to run cephtool-test-mon.sh, and it gets there quite far but somewhere down the test I have this error:
Now python is not my strong point.

Not mine either but monitor_log should be defined in src/pybind/rados/rados.pyx and within the "Rados" object definition.

519 cdef class Rados(object):
...
1280 def monitor_log(self, level, callback, arg):

I guess just checking they are there is a start :)

HTH,
Brad

Quoted 19 lines

Where should I start looking?

--WjW

/home/wjw/Ceph/work.cmake/ceph/qa/workunits/cephtool/test.sh:159:
ceph_watch_start: sleep 1
5: Traceback (most recent call last):
5: File "/home/wjw/Ceph/work.cmake/ceph/build/bin/ceph", line 948, in
<module>
5: retval = main()
5: File "/home/wjw/Ceph/work.cmake/ceph/build/bin/ceph", line 775, in main
5: run_in_thread(cluster_handle.monitor_log, level, watch_cb, 0)
5: AttributeError: 'Rados' object has no attribute 'monitor_log'

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 11 lines · Brad Hubbard
Quoted 5 lines · Willem Jan Withagen

Hi,

I'm trying to run cephtool-test-mon.sh, and it gets there quite far but somewhere down the test I have this error:
Now python is not my strong point.

Not mine either but monitor_log should be defined in src/pybind/rados/rados.pyx and within the "Rados" object definition.

Quoted 8 lines

519 cdef class Rados(object):
...
1280 def monitor_log(self, level, callback, arg):

I guess just checking they are there is a start :)

HTH,
Brad

Fixed by recompilation.
So could be a faulty leftover from previous build attempts.

--WjW

#3 lore raw
Quoted 16 lines · Willem Jan Withagen
Quoted 15 lines · Brad Hubbard
Quoted 5 lines · Willem Jan Withagen

Hi,

I'm trying to run cephtool-test-mon.sh, and it gets there quite far but somewhere down the test I have this error:
Now python is not my strong point.

Not mine either but monitor_log should be defined in src/pybind/rados/rados.pyx and within the "Rados" object definition.

519 cdef class Rados(object):
...
1280 def monitor_log(self, level, callback, arg):

Quoted 7 lines
Quoted 4 lines

I guess just checking they are there is a start :)

HTH,
Brad

Fixed by recompilation.
So could be a faulty leftover from previous build attempts.

Not quite....

Turns out that I had ceph-libs in /usr/local/lib from a leftover (wrong) setup.
So that means that the search path of python libraries prefers /usr/local/lib over the libs in buidl/lib...
I guess that that is a serach path setting, but would it be wise move ./lib more up front?

--WjW

#4 lore raw
Quoted 25 lines · Willem Jan Withagen
Quoted 16 lines · Willem Jan Withagen
Quoted 15 lines · Brad Hubbard
Quoted 5 lines · Willem Jan Withagen

Hi,

I'm trying to run cephtool-test-mon.sh, and it gets there quite far but somewhere down the test I have this error:
Now python is not my strong point.

Not mine either but monitor_log should be defined in src/pybind/rados/rados.pyx and within the "Rados" object definition.

519 cdef class Rados(object):
...
1280 def monitor_log(self, level, callback, arg):

Quoted 7 lines
Quoted 4 lines

I guess just checking they are there is a start :)

HTH,
Brad

Fixed by recompilation.
So could be a faulty leftover from previous build attempts.

Quoted 8 lines

Not quite....

Turns out that I had ceph-libs in /usr/local/lib from a leftover (wrong) setup.
So that means that the search path of python libraries prefers /usr/local/lib over the libs in buidl/lib...
I guess that that is a serach path setting, but would it be wise move ./lib more up front?

Nothing ever seems to be as easy as it looks like to be...

This required a fix in cmake/modules/AddCephTest.cmake
Which contains a hardcode path with lib.linux-x86_64-2.7 in it, which is the location where cython leaves certain results. Making this behave a bit nicer seems to work.

--WjW