[Bug 1835354] Re: disco: ceph-mgr unable to load crash module under py3
Michael Skalka
1835354 at bugs.launchpad.net
Fri Jul 12 18:40:45 UTC 2019
Confirming this is present in Bionic-stein as well:
root at juju-1101fd-18-lxd-0:~# dpkg -l|grep ceph
ii ceph 13.2.6-0ubuntu0.19.04.1~cloud0 amd64 distributed storage and file system
ii ceph-base 13.2.6-0ubuntu0.19.04.1~cloud0 amd64 common ceph daemon libraries and management tools
ii ceph-common 13.2.6-0ubuntu0.19.04.1~cloud0 amd64 common utilities to mount and interact with a ceph storage cluster
ii ceph-mgr 13.2.6-0ubuntu0.19.04.1~cloud0 amd64 manager for the ceph distributed file system
ii ceph-mon 13.2.6-0ubuntu0.19.04.1~cloud0 amd64 monitor server for the ceph storage system
ii ceph-osd 13.2.6-0ubuntu0.19.04.1~cloud0 amd64 OSD server for the ceph storage system
ii libcephfs2 13.2.6-0ubuntu0.19.04.1~cloud0 amd64 Ceph distributed file system client library
ii python3-cephfs 13.2.6-0ubuntu0.19.04.1~cloud0 amd64 Python 3 libraries for the Ceph libcephfs library
root at juju-1101fd-18-lxd-0:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
root at juju-1101fd-18-lxd-0:~# ceph status
cluster:
id: 832cb0a6-a3e7-11e9-bedc-00163e7eca36
health: HEALTH_WARN
Module 'crash' has failed dependency: invalid syntax (module.py, line 48)
services:
mon: 3 daemons, quorum juju-1101fd-19-lxd-0,juju-1101fd-18-lxd-0,juju-1101fd-20-lxd-0
mgr: juju-1101fd-18-lxd-0(active), standbys: juju-1101fd-19-lxd-0, juju-1101fd-20-lxd-0
osd: 72 osds: 72 up, 72 in
rgw: 3 daemons active
data:
pools: 18 pools, 2040 pgs
objects: 578 objects, 577 MiB
usage: 74 GiB used, 251 TiB / 252 TiB avail
pgs: 2040 active+clean
io:
client: 3.6 KiB/s rd, 3 op/s rd, 0 op/s wr
root at juju-1101fd-18-lxd-0:~# cat /var/log/ceph/ceph-mgr.juju-1101fd-18-lxd-0.log |grep -C10 syntax
2019-07-11 14:34:03.118 7fa37dd89300 0 pidfile_write: ignore empty --pid-file
2019-07-11 14:34:03.146 7fa37dd89300 1 mgr[py] Loading python module 'balancer'
2019-07-11 14:34:03.202 7fa37dd89300 1 mgr[py] Loading python module 'crash'
2019-07-11 14:34:03.242 7fa37dd89300 -1 mgr[py] Module not found: 'crash'
2019-07-11 14:34:03.242 7fa37dd89300 -1 mgr[py] Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/ceph/mgr/crash/__init__.py", line 1, in <module>
from .module import Module
File "/usr/lib/x86_64-linux-gnu/ceph/mgr/crash/module.py", line 48
def inner((_, meta)):
^
SyntaxError: invalid syntax
2019-07-11 14:34:03.242 7fa37dd89300 -1 mgr[py] Class not found in module 'crash'
2019-07-11 14:34:03.242 7fa37dd89300 -1 mgr[py] Error loading module 'crash': (2) No such file or directory
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1835354
Title:
disco: ceph-mgr unable to load crash module under py3
Status in ceph package in Ubuntu:
Fix Released
Status in ceph source package in Disco:
Triaged
Status in ceph source package in Eoan:
Fix Released
Bug description:
[Impact]
ceph-mgr daemon is unable to load the crash module due.
[Test Case]
Deploy ceph
Check ceph-mgr log file
Syntax error will be seen
[Regression Potential]
Minimal; python 3 syntax changes are well understood and this fix is already in the newer ceph release in eoan.
[Original Bug Report]
On startup the ceph-mgr daemon fails to load the crash module due to invalid Python 3 syntax:
2019-07-04 04:11:54.533 7f1af75ab300 1 mgr[py] Loading python module 'crash'
2019-07-04 04:11:54.605 7f1af75ab300 -1 mgr[py] Module not found: 'crash'
2019-07-04 04:11:54.605 7f1af75ab300 -1 mgr[py] Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/ceph/mgr/crash/__init__.py", line 1, in <module>
from .module import Module
File "/usr/lib/x86_64-linux-gnu/ceph/mgr/crash/module.py", line 48
def inner((_, meta)):
^
SyntaxError: invalid syntax
Looking at the history for this module there are a number of
syntax/compat fixes for Python3:
https://github.com/ceph/ceph/commit/9aa1d49583ae8fb658967c054247cac6ec2125ab#diff-9433ab33e8bbf1048734205a3a1141ed
https://github.com/ceph/ceph/commit/bcf0f4df2db8b51c58e5ca4d411d05e2a4d081ab#diff-9433ab33e8bbf1048734205a3a1141ed
https://github.com/ceph/ceph/commit/6dc95544512362c202535139c323717ec867e20b#diff-9433ab33e8bbf1048734205a3a1141ed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1835354/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list