Bug 49269

Summary: Ошибка при включении модуля dashboard
Product: Branch p10 Reporter: Alexander Makeenkov <amakeenk>
Component: cephAssignee: Alexey Shabalin <shaba>
Status: CLOSED FIXED QA Contact: qa-p10 <qa-p10>
Severity: normal    
Priority: P5    
Version: не указана   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2024-02-02 14:43:46 MSK
- Версии пакетов -

ceph-17.2.7-alt1.x86_64
python3-module-openssl-22.1.0-alt1.noarch
python3-module-cryptography-41.0.7-alt0.p10.1.x86_64

- Шаги воспроизведения -

1. Настроить кластер ceph и на первую ноду установить пакет:
# apt-get install ceph-mgr-dashboard

2. Включить модуль:
# ceph mgr module enable dashboard

3. Перезагрузить сервис ceph-mgr:
# systemctl restart ceph-mgr@ceph-hosta.service

- Получаемый результат -

В логах сервиса ошибка:
ceph-mgr[6777]: 2024-02-02T13:00:20.599+0300 7f50411a2000 -1 mgr[py] Traceback (most recent call last):
ceph-mgr[6777]:   File "/usr/share/ceph/mgr/restful/__init__.py", line 1, in <module>
ceph-mgr[6777]:     from .module import Module
ceph-mgr[6777]:   File "/usr/share/ceph/mgr/restful/module.py", line 21, in <module>
ceph-mgr[6777]:     from OpenSSL import crypto
ceph-mgr[6777]:   File "/usr/lib/python3/site-packages/OpenSSL/__init__.py", line 8, in <module>
ceph-mgr[6777]:     from OpenSSL import SSL, crypto
ceph-mgr[6777]:   File "/usr/lib/python3/site-packages/OpenSSL/SSL.py", line 9, in <module>
ceph-mgr[6777]:     from OpenSSL._util import (
ceph-mgr[6777]:   File "/usr/lib/python3/site-packages/OpenSSL/_util.py", line 6, in <module>
ceph-mgr[6777]:     from cryptography.hazmat.bindings.openssl.binding import Binding
ceph-mgr[6777]:   File "/usr/lib64/python3/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 15, in <module>
ceph-mgr[6777]:     from cryptography.exceptions import InternalError
ceph-mgr[6777]:   File "/usr/lib64/python3/site-packages/cryptography/exceptions.py", line 9, in <module>
ceph-mgr[6777]:     from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ceph-mgr[6777]: ImportError: PyO3 modules may only be initialized once per interpreter process
ceph-mgr[6777]: 2024-02-02T13:00:20.601+0300 7f50411a2000 -1 mgr[py] Class not found in module 'restful'
ceph-mgr[6777]: 2024-02-02T13:00:20.601+0300 7f50411a2000 -1 mgr[py] Error loading module 'restful': (2) No such file or directory
Comment 1 Repository Robot 2024-03-14 15:27:27 MSK
ceph-17.2.7-alt2 -> p10:

 Sat Mar 02 2024 Alexey Shabalin <shaba@altlinux> 17.2.7-alt2
 - backport mgr/dashboard: Simplify authentication protocol (ALT#49269)