Bug 49269 - Ошибка при включении модуля dashboard
Summary: Ошибка при включении модуля dashboard
Status: CLOSED FIXED
Alias: None
Product: Branch p10
Classification: Unclassified
Component: ceph (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-02 14:43 MSK by Alexander Makeenkov
Modified: 2024-03-14 15:27 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)