Project

General

Profile

Bug #22880

failed to load ceph_module with Python3

Added by Shengjing Zhu over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
python interface
Target version:
-
Start date:
02/02/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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`

History

#1 Updated by John Spray over 1 year 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.

#2 Updated by Nathan Cutler over 1 year ago

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

#3 Updated by Kefu Chai over 1 year ago

  • Status changed from New to Need Review

#4 Updated by Kefu Chai over 1 year ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF