Project

General

Profile

Bug #57945

On Rocky Os mgr could not start do to wrong python version

Added by Shimon Tanny 3 months ago. Updated 3 months ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Category:
build
Target version:
-
% Done:

0%

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

Description

Reproduction
Compile and run ceph on Rocky os
run vstart

Result
error in manager process
python module was not found
see log mgr.x.log
2022-10-30T05:26:26.224-0400 7fdc0e634200 1 mgr[py] Loading python module 'cephadm'
2022-10-30T05:26:26.252-0400 7fdc0e634200 10 mgr[py] Computed sys.path '/home/user1/ceph/src/pybind/mgr:/usr/local/lib64/python3.8/site-packages:/usr/local/lib/python3.8/site-packages:/usr/lib64/python3.8/site-packages:/usr/lib/python3.8/site-packages:/home/user1/ceph/src/pybind:/home/user1/ceph/build/lib/cython_modules/lib.3:/home/user1/ceph/src/python-common::/usr/lib64/python38.zip:/usr/lib64/python3.8:/usr/lib64/python3.8/lib-dynload'
2022-10-30T05:26:26.667-0400 7fdc0e634200 -1 mgr[py] Module not found: 'cephadm'
2022-10-30T05:26:26.667-0400 7fdc0e634200 -1 mgr[py] Traceback (most recent call last):
File "/home/user1/ceph/src/pybind/mgr/cephadm/__init__.py", line 1, in <module>
from .module import CephadmOrchestrator
File "/home/user1/ceph/src/pybind/mgr/cephadm/module.py", line 13, in <module>
from cephadm.service_discovery import ServiceDiscovery
File "/home/user1/ceph/src/pybind/mgr/cephadm/service_discovery.py", line 17, in <module>
from cephadm.ssl_cert_utils import SSLCerts
File "/home/user1/ceph/src/pybind/mgr/cephadm/ssl_cert_utils.py", line 8, in <module>
from cryptography import x509
ModuleNotFoundError: No module named 'cryptography'

2022-10-30T05:26:26.671-0400 7fdc0e634200 -1 mgr[py] Class not found in module 'cephadm'
2022-10-30T05:26:26.671-0400 7fdc0e634200 -1 mgr[py] Error loading module 'cephadm': (2) No such file or directory
2022-10-30T05:26:26.671-0400 7fdc0e634200 1 mgr[py] Loading python module 'cli_api'
2022-10-30T05:26:26.700-0400 7fdc0e634200 10 mgr[py] Computed sys.path '/home/user1/ceph/src/pybind/mgr:/usr/local/lib64/python3.8/site-packages:/usr/local/lib/python3.8/site-packages:/usr/lib64/python3.8/site-packages:/usr/lib/python3.8/site-packages:/home/user1/ceph/src/pybind:/home/user1/ceph/build/lib/cython_modules/lib.3:/home/user1/ceph/src/python-common::/usr/lib64/python38.zip:/usr/lib64/python3.8:/usr/lib64/python3.8/lib-dynload'
2022-10-30T05:26:26.909-0400 7fdc0e634200 4 mgr[py] load_subclass_of: found class: 'cli_api.CLI'
2022-10-30T05:26:26.909-0400 7fdc0e634200 20 mgr[py] loaded command mgr cli_benchmark name=iterations,type=CephInt name=threads,type=CephInt name=func_name,type=CephString name=func_args,req=false,n=N,type=CephString

History

#1 Updated by Ilya Dryomov 3 months ago

  • Subject changed from quincy,Main:On Rocky Os mgr could not start do to wrong python version to On Rocky Os mgr could not start do to wrong python version
  • Status changed from New to Fix Under Review
  • Assignee set to Shimon Tanny
  • Backport set to quincy
  • Pull request ID set to 48672

#2 Updated by Ilya Dryomov 3 months ago

Is pacific affected as well? For now, I have set Backport to just quincy based on the original title of the issue.

#3 Updated by Shimon Tanny 3 months ago

Ilya Dryomov wrote:

Is pacific affected as well? For now, I have set Backport to just quincy based on the original title of the issue.

No, I didn't see an issue when worked on pacific

Also available in: Atom PDF