FS#57075 - [ceph] missing dependencies

Attached to Project: Community Packages
Opened by Tim (bastelfreak) - Friday, 12 January 2018, 18:20 GMT
Last edited by Thore Bödecker (foxxx0) - Tuesday, 16 January 2018, 10:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thore Bödecker (foxxx0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Ceph provides multiple services, one is the ceph-mgr daemon. It provides a web-ui written in flask. It has missing dependencies:

Jan 12 18:05:05 systemd[1]: Started Ceph cluster manager daemon.
Jan 12 18:05:05 ceph-mgr[2072]: 2018-01-12 18:05:05.828746 645fe4de1700 -1 mgr load Module not found: 'restful'
Jan 12 18:05:05 ceph-mgr[2072]: 2018-01-12 18:05:05.828797 645fe4de1700 -1 mgr load Traceback (most recent call last):
Jan 12 18:05:05 ceph-mgr[2072]: File "/usr/lib/ceph/mgr/restful/__init__.py", line 1, in <module>
Jan 12 18:05:05 ceph-mgr[2072]: from module import * # NOQA
Jan 12 18:05:05 ceph-mgr[2072]: File "/usr/lib/ceph/mgr/restful/module.py", line 18, in <module>
Jan 12 18:05:05 ceph-mgr[2072]: from pecan import jsonify, make_app
Jan 12 18:05:05 ceph-mgr[2072]: File "/usr/lib/python2.7/site-packages/pecan/__init__.py", line 1, in <module>
Jan 12 18:05:05 ceph-mgr[2072]: from .core import (
Jan 12 18:05:05 ceph-mgr[2072]: File "/usr/lib/python2.7/site-packages/pecan/core.py", line 12, in <module>
Jan 12 18:05:05 ceph-mgr[2072]: from webob import (Request as WebObRequest, Response as WebObResponse, exc,
Jan 12 18:05:05 ceph-mgr[2072]: ImportError: No module named webob


I was able to fix that by installing python2-webob. Afterwards I got:

Jan 12 18:06:20 ceph-mgr[2172]: 2018-01-12 18:06:20.897879 64f07e5e8700 -1 mgr load Module not found: 'restful'
Jan 12 18:06:20 ceph-mgr[2172]: 2018-01-12 18:06:20.897967 64f07e5e8700 -1 mgr load Traceback (most recent call last):
Jan 12 18:06:20 ceph-mgr[2172]: File "/usr/lib/ceph/mgr/restful/__init__.py", line 1, in <module>
Jan 12 18:06:20 ceph-mgr[2172]: from module import * # NOQA
Jan 12 18:06:20 ceph-mgr[2172]: File "/usr/lib/ceph/mgr/restful/module.py", line 18, in <module>
Jan 12 18:06:20 ceph-mgr[2172]: from pecan import jsonify, make_app
Jan 12 18:06:20 ceph-mgr[2172]: File "/usr/lib/python2.7/site-packages/pecan/__init__.py", line 1, in <module>
Jan 12 18:06:20 ceph-mgr[2172]: from .core import (
Jan 12 18:06:20 ceph-mgr[2172]: File "/usr/lib/python2.7/site-packages/pecan/core.py", line 17, in <module>
Jan 12 18:06:20 ceph-mgr[2172]: from .jsonify import encode as dumps
Jan 12 18:06:20 ceph-mgr[2172]: File "/usr/lib/python2.7/site-packages/pecan/jsonify.py", line 23, in <module>
Jan 12 18:06:20 ceph-mgr[2172]: from singledispatch import singledispatch
Jan 12 18:06:20 ceph-mgr[2172]: ImportError: No module named singledispatch

Can be fixed by installing python2-singledispatch. Afterwards:

Jan 12 18:15:41 ceph-mgr[2508]: 2018-01-12 18:15:41.815511 6ae720480700 -1 mgr load Module not found: 'restful'
Jan 12 18:15:41 ceph-mgr[2508]: 2018-01-12 18:15:41.815555 6ae720480700 -1 mgr load Traceback (most recent call last):
Jan 12 18:15:41 ceph-mgr[2508]: File "/usr/lib/ceph/mgr/restful/__init__.py", line 1, in <module>
Jan 12 18:15:41 ceph-mgr[2508]: from module import * # NOQA
Jan 12 18:15:41 ceph-mgr[2508]: File "/usr/lib/ceph/mgr/restful/module.py", line 18, in <module>
Jan 12 18:15:41 ceph-mgr[2508]: from pecan import jsonify, make_app
Jan 12 18:15:41 ceph-mgr[2508]: File "/usr/lib/python2.7/site-packages/pecan/__init__.py", line 8, in <module>
Jan 12 18:15:41 ceph-mgr[2508]: from .middleware.debug import DebugMiddleware
Jan 12 18:15:41 ceph-mgr[2508]: File "/usr/lib/python2.7/site-packages/pecan/middleware/debug.py", line 32, in <module>
Jan 12 18:15:41 ceph-mgr[2508]: from mako.template import Template
Jan 12 18:15:41 ceph-mgr[2508]: ImportError: No module named mako.template

fixed by installing python2-mako. Also I noticed segfaults during the stop:

Jan 12 18:16:20 systemd[1]: Stopping Ceph cluster manager daemon...
Jan 12 18:16:20 ceph-mgr[2508]: 2018-01-12 18:16:20.377259 6ae71cc79700 -1 received signal: Terminated from PID: 1 task name: /sbin/init UID: 0
Jan 12 18:16:20 ceph-mgr[2508]: 2018-01-12 18:16:20.377326 6ae71cc79700 -1 mgr handle_signal *** Got signal Terminated ***
Jan 12 18:16:20 ceph-mgr[2508]: [12/Jan/2018:18:16:20] ENGINE Bus STOPPING
Jan 12 18:16:20 ceph-mgr[2508]: [12/Jan/2018:18:16:20] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('::', 7000)) shut down
Jan 12 18:16:20 ceph-mgr[2508]: [12/Jan/2018:18:16:20] ENGINE Bus STOPPED
Jan 12 18:16:20 ceph-mgr[2508]: [12/Jan/2018:18:16:20] ENGINE Bus EXITING
Jan 12 18:16:20 ceph-mgr[2508]: [12/Jan/2018:18:16:20] ENGINE Bus EXITED
Jan 12 18:16:20 ceph-mgr[2508]: [12/Jan/2018:18:16:20] ENGINE Waiting for child threads to terminate...
Jan 12 18:16:20 ceph-mgr[2508]: *** Caught signal (Segmentation fault) **
Jan 12 18:16:20 ceph-mgr[2508]: in thread 6ae72b919700 thread_name:ceph-mgr
Jan 12 18:16:20 ceph-mgr[2508]: ceph version 12.2.2 (cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba) luminous (stable)
Jan 12 18:16:20 ceph-mgr[2508]: 1: (()+0x3a1afe) [0xcf494c0aafe]
Jan 12 18:16:20 ceph-mgr[2508]: 2: (()+0x11db0) [0x6ae7295afdb0]
Jan 12 18:16:20 ceph-mgr[2508]: 3: (std::vector<Option, std::allocator<Option> >::~vector()+0xc8) [0xcf494e39828]
Jan 12 18:16:20 ceph-mgr[2508]: 4: (()+0x37448) [0x6ae728934448]
Jan 12 18:16:20 ceph-mgr[2508]: 5: (()+0x3749a) [0x6ae72893449a]
Jan 12 18:16:20 ceph-mgr[2508]: 6: (__libc_start_main()+0xf1) [0x6ae72891df51]
Jan 12 18:16:20 ceph-mgr[2508]: 7: (_start()+0x2a) [0xcf494a5219a]
Jan 12 18:16:22 systemd[1]: ceph-mgr@.service: Main process exited, code=dumped, status=11/SEGV
Jan 12 18:16:22 systemd[1]: ceph-mgr@.service: Failed with result 'core-dump'.
Jan 12 18:16:22 systemd[1]: Stopped Ceph cluster manager daemon.
Jan 12 18:16:22 systemd[1]: Started Ceph cluster manager daemon.
Jan 12 18:16:24 ceph-mgr[2600]: [12/Jan/2018:18:16:24] ENGINE Bus STARTING
Jan 12 18:16:24 ceph-mgr[2600]: [12/Jan/2018:18:16:24] ENGINE Serving on http://:::7000
Jan 12 18:16:24 ceph-mgr[2600]: [12/Jan/2018:18:16:24] ENGINE Bus STARTED
This task depends upon

Closed by  Thore Bödecker (foxxx0)
Tuesday, 16 January 2018, 10:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  ceph 12.2.2-4
Comment by Thore Bödecker (foxxx0) - Monday, 15 January 2018, 13:33 GMT
Should be fixed as of ceph 12.2.2-4 (apart from the segfaults)
Comment by Tim (bastelfreak) - Tuesday, 16 January 2018, 10:14 GMT
thanks, the issues are now fixed.

Loading...