Project

General

Profile

Bug #24870 ยป ceph-py3-compat-debug.rst

Rishabh Dave, 07/11/2018 02:34 PM

 
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:~#
    (1-1/1)