run-tox-ceph-disk
failure on my Ubuntu 14.04 build machine
14: command: Running command: /home/dzafman/ceph/build/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring td/test-ceph-disk/bootstrap-osd/ceph.keyring osd create --concise c29864d7-e3ce-4c9b-8ad7-a8066df1313b 14: Traceback (most recent call last):
14: File "/src/ceph/src/ceph-disk/.tox/py27/bin/ceph-disk", line 11, in <module>
14: load_entry_point('ceph-disk', 'console_scripts', 'ceph-disk')()
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 5680, in run
14: main(sys.argv[1:])
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 5631, in main
14: args.func(args)
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 3711, in main_activate
14: init=args.mark_init,
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 3531, in activate_dir
14: (osd_id, cluster) = activate(path, activate_key_template, init)
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 3623, in activate
14: keyring=keyring,
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 1034, in allocate_osd_id
14: raise Error('ceph osd create failed', e, e.output)
14: ceph_disk.main.Error: Error: ceph osd create failed: Command '/home/dzafman/ceph/build/bin/ceph' returned non-zero exit status 1: *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 14: Traceback (most recent call last):
14: File "/home/dzafman/ceph/build/bin/ceph", line 132, in <module>
14: from ceph_daemon import admin_socket, DaemonWatcher, Termsize
14: File "/home/dzafman/ceph/src/pybind/ceph_daemon.py", line 21, in <module>
14: from prettytable import PrettyTable, HEADER
14: ImportError: No module named prettytable
Hi David,
Quoted 18 lines · David Zafman
failure on my Ubuntu 14.04 build machine
14: command: Running command:
/home/dzafman/ceph/build/bin/ceph--cluster ceph --name client.bootstrap-osd --keyring td/test-ceph-disk/bootstrap-osd/ceph.keyring osd create --concise c29864d7-e3ce-4c9b-8ad7-a8066df1313b 14: Traceback (most recent call last):
14: File "/src/ceph/src/ceph-disk/.tox/py27/bin/ceph-disk", line 11, in <module>
14:load_entry_point('ceph-disk', 'console_scripts', 'ceph-disk')()
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 5680, in run
14:main(sys.argv[1:])
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 5631, in main
14:args.func(args)
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 3711, inmain_activate
14: init=args.mark_init,
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 3531, inactivate_dir
14: (osd_id, cluster) =activate(path, activate_key_template, init)
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 3623, in activate
14: keyring=keyring,
14: File "/src/ceph/src/ceph-disk/ceph_disk/main.py", line 1034, inallocate_osd_id
Quoted 8 lines
14: raise
Error('ceph osd create failed', e, e.output)
14: ceph_disk.main.Error: Error: ceph osd create failed: Command '/home/dzafman/ceph/build/bin/ceph' returned non-zero exit status 1: *** DEVELOPER MODE: setting PATH, PYTHONPATH andLD_LIBRARY_PATH*** 14: Traceback (most recent call last):
14: File "/home/dzafman/ceph/build/bin/ceph", line 132, in <module>
14: fromceph_daemonimportadmin_socket, DaemonWatcher, Termsize
14: File "/home/dzafman/ceph/src/pybind/ceph_daemon.py", line 21, in <module>
14: from prettytable import PrettyTable, HEADER
14: ImportError: No module named prettytable
As of 9e3d7d9fc1888ee6dc4e404b82f13bc709fa4a1c dated late April you need to dnf install -y python-prettytable for the ceph CLI to work.
Cheers
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
A message that is not in the archive (sent off-list or not yet received): CALBbquH=BWGej5OKj0cQT=0Pa+e5jM5sJ7Ji5zoT6tyzkqrUrQ@mail.gmail.com
Quoted 3 lines · Jos Collin
Why is it not installed by
install-deps.sh?@Loic it is 'apt-get install'
You mean that when running install-deps.sh on a CentOS python-prettytable is not installed ?
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
@Loic: No, I meant why install-deps.sh didn't install python-prettytable for David Zafman in his environment.
Looks like it is already fixed:
commit 91d36b64f3a1000e38aa620cddfdf3fe1866ad85
Author: Willem Jan Withagen <[email protected]> Date: Fri Jun 2 16:53:43 2017 +0200
ceph-disk: use system modules if needed
- prettytable usage was introduced in:
https://github.com/ceph/ceph/commit/3fa8bb1
It is in the install-deps.sh file to be installed, but it is not per default installed in the testenvironment So allow tox tests to use "external" modules
Yes, that's hopefully good enough. The real solution would be for the ceph CLI to be a python module with dependencies in a requirements.txt file, but that would be more complicated ;-)
Quoted 17 lines · Jos Collin
Looks like it is already fixed:
commit
91d36b64f3a1000e38aa620cddfdf3fe1866ad85Author: Willem Jan Withagen <[email protected]> Date: Fri Jun 2 16:53:43 2017 +0200ceph-disk: use system modules if needed
- prettytable usage was introduced in:
https://github.com/ceph/ceph/commit/3fa8bb1
It is in theinstall-deps.shfile to be installed, but it is not per default installed in the testenvironment So allow tox tests to use "external" modulesSigned-off-by Willem Jan Withagen <[email protected]>
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre