Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[4.1.1] ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process

Đang mở
#694 18 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
security

Hướng nghiên cứu

Start with the traceback locations /lib/python3/dist-packages/bcrypt/init.py and Ceph's mgr_util.py, then compare the reported bcrypt 4.0.1 and 4.1.1 environments under ceph-mgr. Reproduce the CPython initialization error and determine whether the affected Ceph manager modules load successfully without it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Similar as https://github.com/pyca/cryptography/issues/9016, my ceph-mgr in 18.2.1 get error message once upgrade from bcrypt 4.0.1 to 4.1.1:

root@node12:~# ceph health detail
HEALTH_WARN 9 mgr modules have failed dependencies
[WRN] MGR_MODULE_DEPENDENCY: 9 mgr modules have failed dependencies
   Module 'balancer' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
   Module 'crash' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
   Module 'devicehealth' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
   Module 'orchestrator' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
   Module 'pg_autoscaler' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
   Module 'progress' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
   Module 'rbd_support' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
   Module 'telemetry' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
   Module 'volumes' has failed dependency: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process

root@node12:~# journalctl -xef -u [email protected] 
Dec 12 03:41:13 node12 systemd[1]: Started Ceph cluster manager daemon.
░░ Subject: A start job for unit [email protected] has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit [email protected] has finished successfully.
░░ 
░░ The job identifier is 37868.
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.178+0000 7fc8359f5280 -1 mgr[py] Module status has missing NOTIFY_TYPES member
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.314+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.314+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:14 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.314+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'mirroring'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.314+0000 7fc8359f5280 -1 mgr[py] Error loading module 'mirroring': (22) Invalid argument
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.446+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.446+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:14 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.446+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'orchestrator'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.446+0000 7fc8359f5280 -1 mgr[py] Error loading module 'orchestrator': (22) Invalid argument
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.542+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.542+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:14 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.542+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'nfs'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.542+0000 7fc8359f5280 -1 mgr[py] Error loading module 'nfs': (22) Invalid argument
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.642+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.642+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:14 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.642+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'prometheus'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.642+0000 7fc8359f5280 -1 mgr[py] Error loading module 'prometheus': (22) Invalid argument
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.738+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.738+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:14 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.738+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'volumes'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.738+0000 7fc8359f5280 -1 mgr[py] Error loading module 'volumes': (22) Invalid argument
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.834+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.834+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:14 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.834+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'iostat'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.834+0000 7fc8359f5280 -1 mgr[py] Error loading module 'iostat': (22) Invalid argument
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.930+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.930+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:14 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:14 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:14 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.930+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'crash'
Dec 12 03:41:14 node12 ceph-mgr[3265527]: 2023-12-12T03:41:14.930+0000 7fc8359f5280 -1 mgr[py] Error loading module 'crash': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.026+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.026+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.026+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'devicehealth'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.026+0000 7fc8359f5280 -1 mgr[py] Error loading module 'devicehealth': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.122+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.122+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.122+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'osd_support'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.122+0000 7fc8359f5280 -1 mgr[py] Error loading module 'osd_support': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.218+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.218+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.218+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'restful'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.218+0000 7fc8359f5280 -1 mgr[py] Error loading module 'restful': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.318+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.318+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.318+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'localpool'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.318+0000 7fc8359f5280 -1 mgr[py] Error loading module 'localpool': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.418+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.418+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.418+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'pg_autoscaler'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.418+0000 7fc8359f5280 -1 mgr[py] Error loading module 'pg_autoscaler': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.518+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.518+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.518+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'zabbix'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.518+0000 7fc8359f5280 -1 mgr[py] Error loading module 'zabbix': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.618+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.618+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.622+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'snap_schedule'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.622+0000 7fc8359f5280 -1 mgr[py] Error loading module 'snap_schedule': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.718+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.718+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.718+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'test_orchestrator'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.722+0000 7fc8359f5280 -1 mgr[py] Error loading module 'test_orchestrator': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.838+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.838+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.838+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'stats'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.838+0000 7fc8359f5280 -1 mgr[py] Error loading module 'stats': (22) Invalid argument
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.950+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.950+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:15 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:15 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:15 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.950+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'progress'
Dec 12 03:41:15 node12 ceph-mgr[3265527]: 2023-12-12T03:41:15.950+0000 7fc8359f5280 -1 mgr[py] Error loading module 'progress': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.050+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.050+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.050+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'telemetry'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.050+0000 7fc8359f5280 -1 mgr[py] Error loading module 'telemetry': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.150+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.150+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.154+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'influx'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.154+0000 7fc8359f5280 -1 mgr[py] Error loading module 'influx': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.254+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.254+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.254+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'telegraf'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.254+0000 7fc8359f5280 -1 mgr[py] Error loading module 'telegraf': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.358+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.358+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.358+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'osd_perf_query'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.358+0000 7fc8359f5280 -1 mgr[py] Error loading module 'osd_perf_query': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.458+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.458+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.458+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'selftest'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.458+0000 7fc8359f5280 -1 mgr[py] Error loading module 'selftest': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.554+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.554+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.558+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'insights'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.558+0000 7fc8359f5280 -1 mgr[py] Error loading module 'insights': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.650+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.650+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.654+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'alerts'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.654+0000 7fc8359f5280 -1 mgr[py] Error loading module 'alerts': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.746+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.746+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.746+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'balancer'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.746+0000 7fc8359f5280 -1 mgr[py] Error loading module 'balancer': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.842+0000 7fc8359f5280 -1 mgr[py] Module not found: 'mgr_module'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.842+0000 7fc8359f5280 -1 mgr[py] Traceback (most recent call last):
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from mgr_util import profile_method
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     import bcrypt
Dec 12 03:41:16 node12 ceph-mgr[3265527]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Dec 12 03:41:16 node12 ceph-mgr[3265527]:     from ._bcrypt import (
Dec 12 03:41:16 node12 ceph-mgr[3265527]: ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.842+0000 7fc8359f5280 -1 mgr[py] Class not found in module 'rbd_support'
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.842+0000 7fc8359f5280 -1 mgr[py] Error loading module 'rbd_support': (22) Invalid argument
Dec 12 03:41:16 node12 ceph-mgr[3265527]: 2023-12-12T03:41:16.842+0000 7fc8359f5280 -1 log_channel(cluster) log [ERR] : Failed to load ceph-mgr modules: mirroring, orchestrator, nfs, prometheus, volumes, iostat, crash, devicehealth, osd_support, restful, localpool, pg_autoscaler, zabbix, snap_schedule, test_orchestrator, stats, progress, telemetry, influx, telegraf, osd_perf_query, selftest, insights, alerts, balancer, rbd_support

This was initially introduced by:

My only workaround for now is, revert back to bcrypt == 4.0.1, which still depends on pyo3 = { version = "0.15.2" }

Ngôn ngữ chính
Python
Star
1.5k
Fork
216
Merge trung bình
6 giờ 15 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pyca/bcrypt

Tất cả issue của pyca/bcrypt

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.