Project

General

Profile

Actions

Bug #22880

closed

failed to load ceph_module with Python3

Added by Shengjing Zhu about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
python interface
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

It's glad to see that python3 can be build with ceph-mgr, however

```
2018-02-01 16:39:54.385 7fd309ffb700 -1 mgr[py] Class not found in module 'status'
2018-02-01 16:39:54.385 7fd309ffb700 -1 mgr[py] Error loading module 'status': (22) Invalid argument
2018-02-01 16:39:54.408 7fd309ffb700 -1 mgr[py] Module not found: 'mgr_module'
2018-02-01 16:39:54.408 7fd309ffb700 -1 mgr[py] Traceback (most recent call last):
File "/usr/local/lib/ceph/mgr/mgr_module.py", line 2, in <module>
import ceph_module # noqa
ModuleNotFoundError: No module named 'ceph_module'
```

Tested on Debian unstable, Python 3.6.4, ceph was build with `-DMGR_PYTHON_VERSION=3 -DWITH_PYTHON2=OFF -DWITH_PYTHON3=ON`

Actions #1

Updated by John Spray about 6 years ago

  • Assignee set to Kefu Chai

Kefu, do you know if a py3-compiled mgr has been seen to work? I've never tried it.

Actions #2

Updated by Nathan Cutler about 6 years ago

@John, we only just started compiling MGR with Python 3. The current status is that it builds. Working is another matter.

Actions #3

Updated by Kefu Chai about 6 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Kefu Chai about 6 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF