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

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

    <bug>
          <bug_id>43823</bug_id>
          
          <creation_ts>2022-09-19 12:29:18 +0300</creation_ts>
          <short_desc>Ошибка в связанных пакетах рушит работу системы</short_desc>
          <delta_ts>2022-09-20 12:22:01 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>freeipa</component>
          <version>unstable</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="Anatoly Rudnev">a.v.rudnev</reporter>
          <assigned_to name="Stanislav Levin">slev</assigned_to>
          <cc>sem</cc>
    
    <cc>sin</cc>
    
    <cc>slev</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>215056</commentid>
    <comment_count>0</comment_count>
    <who name="Anatoly Rudnev">a.v.rudnev</who>
    <bug_when>2022-09-19 12:29:18 +0300</bug_when>
    <thetext>После обновления системы перестает работать криптография - порушенная функциональность питонячьего модуля. Обновление из локального зеркала сизифа. Репликация ежедневная.

Аналогичная проблема описана здесь https://jasonralph.org/?p=997

виновник радости: python3-module-cryptography-38.0.1 

Рекомендации помогли, в стабильной версии не проявилось 

== error log ==
[root@tmpl-server ~]# ipa
Traceback (most recent call last):
  File &quot;/usr/bin/ipa&quot;, line 27, in &lt;module&gt;
    from ipaclient.__main__ import main
  File &quot;/usr/lib64/python3/site-packages/ipaclient/__main__.py&quot;, line 7, in &lt;module&gt;
    from ipalib import api, cli
  File &quot;/usr/lib64/python3/site-packages/ipalib/__init__.py&quot;, line 921, in &lt;module&gt;
    from ipalib.frontend import Command, LocalOrRemote, Updater
  File &quot;/usr/lib64/python3/site-packages/ipalib/frontend.py&quot;, line 31, in &lt;module&gt;
    from ipalib.parameters import create_param, Param, Str, Flag
  File &quot;/usr/lib64/python3/site-packages/ipalib/parameters.py&quot;, line 125, in &lt;module&gt;
    from ipalib.x509 import (
  File &quot;/usr/lib64/python3/site-packages/ipalib/x509.py&quot;, line 91, in &lt;module&gt;
    @crypto_utils.register_interface(crypto_x509.Certificate)
AttributeError: module &apos;cryptography.utils&apos; has no attribute &apos;register_interface&apos;. Did you mean: &apos;verify_interface&apos;?
[root@tmpl-server ~]#

==
[root@tmpl-server ~]# python3.10 -m pip uninstall -y cryptography
Found existing installation: cryptography 38.0.1
Uninstalling cryptography-38.0.1:
  Successfully uninstalled cryptography-38.0.1
WARNING: Running pip as the &apos;root&apos; user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[root@tmpl-server ~]# python3.10 -m pip install cryptography==37.0.4
Collecting cryptography==37.0.4
  Downloading cryptography-37.0.4-cp36-abi3-manylinux_2_24_x86_64.whl (4.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.1/4.1 MB 19.4 MB/s eta 0:00:00
Requirement already satisfied: cffi&gt;=1.12 in /usr/lib64/python3/site-packages (from cryptography==37.0.4) (1.15.0)
Requirement already satisfied: pycparser in /usr/lib/python3/site-packages (from cffi&gt;=1.12-&gt;cryptography==37.0.4) (2.21)
Installing collected packages: cryptography
Successfully installed cryptography-37.0.4
WARNING: Running pip as the &apos;root&apos; user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[root@tmpl-server ~]# ipa
IPA client is not configured on this system</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215057</commentid>
    <comment_count>1</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2022-09-19 12:36:27 +0300</bug_when>
    <thetext>Known issue:
https://pagure.io/freeipa/issue/9160</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215075</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2022-09-20 12:22:01 +0300</bug_when>
    <thetext>freeipa-4.9.10-alt3 -&gt; sisyphus:

 Tue Sep 20 2022 Stanislav Levin &lt;slev@altlinux&gt; 4.9.10-alt3
 - Replaced removed register_interface with subclassing (closes: #43823).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>