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

James Page james.page at ubuntu.com
Wed Jul 17 09:55:28 UTC 2019


ubuntu at juju-05ad98-disco-proposed-3:~$ sudo ceph -s
  cluster:
    id:     57558fde-a86a-11e9-acd6-fa163e0779e9
    health: HEALTH_OK
 
  services:
    mon: 3 daemons, quorum juju-05ad98-disco-proposed-5,juju-05ad98-disco-proposed-3,juju-05ad98-disco-proposed-4
    mgr: juju-05ad98-disco-proposed-3(active), standbys: juju-05ad98-disco-proposed-4, juju-05ad98-disco-proposed-5
    osd: 3 osds: 3 up, 3 in
 
  data:
    pools:   3 pools, 44 pgs
    objects: 1  objects, 14 B
    usage:   3.0 GiB used, 27 GiB / 30 GiB avail
    pgs:     44 active+clean
 
ubuntu at juju-05ad98-disco-proposed-3:~$ apt-cache policy ceph-mon
ceph-mon:
  Installed: 13.2.6-0ubuntu0.19.04.2
  Candidate: 13.2.6-0ubuntu0.19.04.2
  Version table:
 *** 13.2.6-0ubuntu0.19.04.2 500
        500 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     13.2.6-0ubuntu0.19.04.1 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages
     13.2.4+dfsg1-0ubuntu2.1 500
        500 http://security.ubuntu.com/ubuntu disco-security/main amd64 Packages
     13.2.4+dfsg1-0ubuntu2 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu disco/main amd64 Packages
ubuntu at juju-05ad98-disco-proposed-3:~$ apt-cache policy ceph-mgr
ceph-mgr:
  Installed: 13.2.6-0ubuntu0.19.04.2
  Candidate: 13.2.6-0ubuntu0.19.04.2
  Version table:
 *** 13.2.6-0ubuntu0.19.04.2 500
        500 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     13.2.6-0ubuntu0.19.04.1 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages
     13.2.4+dfsg1-0ubuntu2.1 500
        500 http://security.ubuntu.com/ubuntu disco-security/main amd64 Packages
     13.2.4+dfsg1-0ubuntu2 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu disco/main amd64 Packages


** Tags removed: verification-needed verification-needed-disco
** Tags added: verification-done verification-done-disco

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1835354

Title:
  disco: ceph-mgr unable to load crash module under py3

Status in Ubuntu Cloud Archive:
  Fix Committed
Status in Ubuntu Cloud Archive stein series:
  Fix Committed
Status in Ubuntu Cloud Archive train series:
  Fix Released
Status in ceph package in Ubuntu:
  Fix Released
Status in ceph source package in Disco:
  Fix Committed
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/cloud-archive/+bug/1835354/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list