[Bug 1835354] Re: disco: ceph-mgr unable to load crash module under py3

Przemyslaw Hausman 1835354 at bugs.launchpad.net
Fri Jul 12 10:56:38 UTC 2019


I can see the same error on bionic-stein.

2019-07-12 07:21:26.665 7f5c1d348300  0 set uid:gid to 64045:64045 (ceph:ceph)
2019-07-12 07:21:26.665 7f5c1d348300  0 ceph version 13.2.6 (7b695f835b03642f85998b2ae7b6dd093d9fbce4) mimic (stable), process ceph-mgr, pid 64002
2019-07-12 07:21:26.669 7f5c1d348300  0 pidfile_write: ignore empty --pid-file
2019-07-12 07:21:26.701 7f5c1d348300  1 mgr[py] Loading python module 'balancer'
2019-07-12 07:21:26.769 7f5c1d348300  1 mgr[py] Loading python module 'crash'
2019-07-12 07:21:26.813 7f5c1d348300 -1 mgr[py] Module not found: 'crash'
2019-07-12 07:21:26.813 7f5c1d348300 -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-12 07:21:26.813 7f5c1d348300 -1 mgr[py] Class not found in module 'crash'
2019-07-12 07:21:26.813 7f5c1d348300 -1 mgr[py] Error loading module 'crash': (2) No such file or directory
2019-07-12 07:21:26.813 7f5c1d348300  1 mgr[py] Loading python module 'dashboard'
2019-07-12 07:21:27.257 7f5c1d348300  1 mgr[py] Loading python module 'hello'
2019-07-12 07:21:27.301 7f5c1d348300  1 mgr[py] Loading python module 'influx'
2019-07-12 07:21:27.349 7f5c1d348300  1 mgr[py] Loading python module 'iostat'
2019-07-12 07:21:27.389 7f5c1d348300  1 mgr[py] Loading python module 'localpool'
2019-07-12 07:21:27.429 7f5c1d348300  1 mgr[py] Loading python module 'prometheus'
2019-07-12 07:21:27.793 7f5c1d348300  1 mgr[py] Loading python module 'restful'
2019-07-12 07:21:28.121 7f5c1d348300  1 mgr[py] Loading python module 'selftest'
2019-07-12 07:21:28.233 7f5c1d348300  1 mgr[py] Loading python module 'smart'
2019-07-12 07:21:28.273 7f5c1d348300  1 mgr[py] Loading python module 'status'
2019-07-12 07:21:28.329 7f5c1d348300  1 mgr[py] Loading python module 'telegraf'
2019-07-12 07:21:28.381 7f5c1d348300  1 mgr[py] Loading python module 'telemetry'
2019-07-12 07:21:28.637 7f5c1d348300  1 mgr[py] Loading python module 'zabbix'
2019-07-12 07:21:28.789 7f5c1d348300 -1 log_channel(cluster) log [ERR] : Failed to load ceph-mgr modules: crash
2019-07-12 07:21:28.789 7f5c1d348300  1 mgr send_beacon standby
2019-07-12 07:21:28.817 7f5c09be3700  0 ms_deliver_dispatch: unhandled message 0x55de1e1a7d40 mon_map magic: 0 v1 from mon.2 10.246.68.52:6789/0
2019-07-12 07:21:28.817 7f5c09be3700  0 client.0 ms_handle_reset on 10.246.68.40:6800/112543
2019-07-12 07:21:30.813 7f5c063dc700  1 mgr send_beacon standby
2019-07-12 07:21:32.837 7f5c063dc700  1 mgr send_beacon standby
2019-07-12 07:21:34.861 7f5c063dc700  1 mgr send_beacon standby
2019-07-12 07:21:36.885 7f5c063dc700  1 mgr send_beacon standby

-- 
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:
  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