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

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

    <bug>
          <bug_id>49695</bug_id>
          
          <creation_ts>2024-03-14 12:49:00 +0300</creation_ts>
          <short_desc>Ошибка при создании сертификата для dashboard</short_desc>
          <delta_ts>2025-12-19 11:44:19 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p11</product>
          <component>ceph</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          <cc>blinovdv</cc>
          
          <qa_contact name="qa-p11@altlinux.org">qa-p11</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>242992</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2024-03-14 12:49:00 +0300</bug_when>
    <thetext>Версия:
ceph-17.2.7-alt2

При выполнении команды &quot;ceph dashboard create-self-signed-cert&quot; (согласно инструкции https://docs.ceph.com/en/quincy/mgr/dashboard/#configuration) возникает ошибка:

# ceph dashboard create-self-signed-cert
Error EINVAL: Traceback (most recent call last):
  File &quot;/usr/share/ceph/mgr/mgr_module.py&quot;, line 1759, in _handle_command
    return CLICommand.COMMANDS[cmd[&apos;prefix&apos;]].call(self, cmd, inbuf)
  File &quot;/usr/share/ceph/mgr/mgr_module.py&quot;, line 462, in call
    return self.func(mgr, **kwargs)
  File &quot;/usr/share/ceph/mgr/dashboard/module.py&quot;, line 470, in set_mgr_created_self_signed_cert
    cert, pkey = create_self_signed_cert(&apos;IT&apos;, &apos;ceph-dashboard&apos;)
  File &quot;/usr/share/ceph/mgr/mgr_util.py&quot;, line 502, in create_self_signed_cert
    from OpenSSL import crypto
  File &quot;/usr/lib/python3/site-packages/OpenSSL/__init__.py&quot;, line 8, in &lt;module&gt;
    from OpenSSL import SSL, crypto
  File &quot;/usr/lib/python3/site-packages/OpenSSL/SSL.py&quot;, line 9, in &lt;module&gt;
    from OpenSSL._util import (
  File &quot;/usr/lib/python3/site-packages/OpenSSL/_util.py&quot;, line 6, in &lt;module&gt;
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File &quot;/usr/lib64/python3/site-packages/cryptography/hazmat/bindings/openssl/binding.py&quot;, line 15, in &lt;module&gt;
    from cryptography.exceptions import InternalError
  File &quot;/usr/lib64/python3/site-packages/cryptography/exceptions.py&quot;, line 9, in &lt;module&gt;
    from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: PyO3 modules may only be initialized once per interpreter process</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>279258</commentid>
    <comment_count>1</comment_count>
    <who name="Блинов Денис Вячеславович">blinovdv</who>
    <bug_when>2025-12-19 11:44:19 +0300</bug_when>
    <thetext>Воспроизвелось в p11 на версии ceph-19.2.3-alt1.x86_64
Платформа: p11-server-11.0-x86-64-minimal

# ceph dashboard create-self-signed-cert

Error EINVAL: Traceback (most recent call last):
  File &quot;/usr/share/ceph/mgr/mgr_module.py&quot;, line 1910, in _handle_command
    return CLICommand.COMMANDS[cmd[&apos;prefix&apos;]].call(self, cmd, inbuf)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/share/ceph/mgr/mgr_module.py&quot;, line 501, in call
    return self.func(mgr, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/share/ceph/mgr/dashboard/module.py&quot;, line 467, in set_mgr_created_self_signed_cert
    cert, pkey = create_self_signed_cert(&apos;IT&apos;, &apos;ceph-dashboard&apos;)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/share/ceph/mgr/mgr_util.py&quot;, line 534, in create_self_signed_cert
    from OpenSSL import crypto
  File &quot;/lib/python3/site-packages/OpenSSL/__init__.py&quot;, line 8, in &lt;module&gt;
    from OpenSSL import SSL, crypto
  File &quot;/lib/python3/site-packages/OpenSSL/SSL.py&quot;, line 15, in &lt;module&gt;
    from cryptography import x509
  File &quot;/lib64/python3/site-packages/cryptography/x509/__init__.py&quot;, line 7, in &lt;module&gt;
    from cryptography.x509 import certificate_transparency, verification
  File &quot;/lib64/python3/site-packages/cryptography/x509/certificate_transparency.py&quot;, line 8, in &lt;module&gt;
    from cryptography.hazmat.bindings._rust import x509 as rust_x509
ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>