On 7 July 2018 at 01:15, Patrick Donnelly <pdonnell@xxxxxxxxxx> wrote: > On Tue, Jul 3, 2018 at 2:28 AM, Rishabh Dave <ridave@xxxxxxxxxx> wrote: >> On 30 June 2018 at 04:49, Patrick Donnelly <pdonnell@xxxxxxxxxx> wrote: >>> >>> What John says makes sense to me. I'd suggest debugging via a docker >>> container. That should be simply done with: >>> >>> sudo ceph/src/script/ceph-debug-docker.sh >>> wip-rishabh-testing-volclient-py3compat ubuntu:bionic >>> >> >> Running this command on my machine gives me an error - >> >> cp: cannot stat ‘/ceph/shaman/cephdev.asc’: No such file or directory >> >> The teuthology machine seems to have the file reported to be absent in >> the error message above but I can't run the command with sudo there, >> since I am prompted for password and I don't remember setting >> password. I get the following error message when I run it without sudo >> - >> >> src/script/ceph-debug-docker.sh: line 19: docker: command not found >> >> Snippet from ceph-debug-docker.sh - >> >> function run { >> printf "%s\n" "$*" >> "$@" # line no. 19 >> } > > Docker is not available on teuthology. You need to run that from one > of the senta* machines. > I could import ceph_volume_client.py with python2 but not with python3. ceph_volume_client.py and the python bindngs (cephfs.x86_64-linux-gnu.so and rados.x86_64-linux-gnu.so) were missing from /usr/lib/python3/dist-packages/. I've copied the console's output in the attached file and reported the issue - http://tracker.ceph.com/issues/24870.
root@55654f0b0c29:~# ceph 2018-07-11 13:26:51.789 7f7add820700 -1 Errors while parsing config file! 2018-07-11 13:26:51.789 7f7add820700 -1 parse_file: cannot open /etc/ceph/ceph.conf: (2) No such file or directory 2018-07-11 13:26:51.789 7f7add820700 -1 parse_file: cannot open /root/.ceph/ceph.conf: (2) No such file or directory 2018-07-11 13:26:51.789 7f7add820700 -1 parse_file: cannot open ceph.conf: (2) No such file or directory Error initializing cluster client: ObjectNotFound('error calling conf_read_file',) root@55654f0b0c29:~# python2 Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ceph_volume_client >>> root@55654f0b0c29:~# python3 Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ceph_volume_client Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'ceph_volume_client' >>> root@55654f0b0c29:~# find /usr -type f -name ceph_argparse.py /usr/lib/python2.7/dist-packages/ceph_argparse.py /usr/lib/python3/dist-packages/ceph_argparse.py root@55654f0b0c29:~# find /usr -type f -name ceph_daemon.py /usr/lib/python2.7/dist-packages/ceph_daemon.py /usr/lib/python3/dist-packages/ceph_daemon.py root@55654f0b0c29:~# find /usr -type f -name ceph_volume_client.py /usr/lib/python2.7/dist-packages/ceph_volume_client.py root@55654f0b0c29:~# ls /usr/lib/python2.7/dist-packages/rados rados-2.0.0.egg-info/ rados.x86_64-linux-gnu.so root@55654f0b0c29:~# ls /usr/lib/python2.7/dist-packages/cephfs cephfs-2.0.0.egg-info/ cephfs.x86_64-linux-gnu.so root@55654f0b0c29:~# ls /usr/lib/python3/dist-packages/ceph_ ceph_argparse.py ceph_daemon.py root@55654f0b0c29:~#