<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>49269</bug_id>
          
          <creation_ts>2024-02-02 14:43:46 +0300</creation_ts>
          <short_desc>Ошибка при включении модуля dashboard</short_desc>
          <delta_ts>2024-03-14 15:27:27 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>ceph</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>241050</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2024-02-02 14:43:46 +0300</bug_when>
    <thetext>- Версии пакетов -

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 &quot;/usr/share/ceph/mgr/restful/__init__.py&quot;, line 1, in &lt;module&gt;
ceph-mgr[6777]:     from .module import Module
ceph-mgr[6777]:   File &quot;/usr/share/ceph/mgr/restful/module.py&quot;, line 21, in &lt;module&gt;
ceph-mgr[6777]:     from OpenSSL import crypto
ceph-mgr[6777]:   File &quot;/usr/lib/python3/site-packages/OpenSSL/__init__.py&quot;, line 8, in &lt;module&gt;
ceph-mgr[6777]:     from OpenSSL import SSL, crypto
ceph-mgr[6777]:   File &quot;/usr/lib/python3/site-packages/OpenSSL/SSL.py&quot;, line 9, in &lt;module&gt;
ceph-mgr[6777]:     from OpenSSL._util import (
ceph-mgr[6777]:   File &quot;/usr/lib/python3/site-packages/OpenSSL/_util.py&quot;, line 6, in &lt;module&gt;
ceph-mgr[6777]:     from cryptography.hazmat.bindings.openssl.binding import Binding
ceph-mgr[6777]:   File &quot;/usr/lib64/python3/site-packages/cryptography/hazmat/bindings/openssl/binding.py&quot;, line 15, in &lt;module&gt;
ceph-mgr[6777]:     from cryptography.exceptions import InternalError
ceph-mgr[6777]:   File &quot;/usr/lib64/python3/site-packages/cryptography/exceptions.py&quot;, line 9, in &lt;module&gt;
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 &apos;restful&apos;
ceph-mgr[6777]: 2024-02-02T13:00:20.601+0300 7f50411a2000 -1 mgr[py] Error loading module &apos;restful&apos;: (2) No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242997</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-03-14 15:27:27 +0300</bug_when>
    <thetext>ceph-17.2.7-alt2 -&gt; p10:

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

    </bug>

</bugzilla>