Bug 43823 - Ошибка в связанных пакетах рушит работу системы
Summary: Ошибка в связанных пакетах рушит работу системы
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: freeipa (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Stanislav Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-19 12:29 MSK by Anatoly Rudnev
Modified: 2022-09-20 12:22 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Rudnev 2022-09-19 12:29:18 MSK
После обновления системы перестает работать криптография - порушенная функциональность питонячьего модуля. Обновление из локального зеркала сизифа. Репликация ежедневная.

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

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

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

== error log ==
[root@tmpl-server ~]# ipa
Traceback (most recent call last):
  File "/usr/bin/ipa", line 27, in <module>
    from ipaclient.__main__ import main
  File "/usr/lib64/python3/site-packages/ipaclient/__main__.py", line 7, in <module>
    from ipalib import api, cli
  File "/usr/lib64/python3/site-packages/ipalib/__init__.py", line 921, in <module>
    from ipalib.frontend import Command, LocalOrRemote, Updater
  File "/usr/lib64/python3/site-packages/ipalib/frontend.py", line 31, in <module>
    from ipalib.parameters import create_param, Param, Str, Flag
  File "/usr/lib64/python3/site-packages/ipalib/parameters.py", line 125, in <module>
    from ipalib.x509 import (
  File "/usr/lib64/python3/site-packages/ipalib/x509.py", line 91, in <module>
    @crypto_utils.register_interface(crypto_x509.Certificate)
AttributeError: module 'cryptography.utils' has no attribute 'register_interface'. Did you mean: 'verify_interface'?
[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 'root' 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>=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>=1.12->cryptography==37.0.4) (2.21)
Installing collected packages: cryptography
Successfully installed cryptography-37.0.4
WARNING: Running pip as the 'root' 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
Comment 1 Stanislav Levin 2022-09-19 12:36:27 MSK
Known issue:
https://pagure.io/freeipa/issue/9160
Comment 2 Repository Robot 2022-09-20 12:22:01 MSK
freeipa-4.9.10-alt3 -> sisyphus:

 Tue Sep 20 2022 Stanislav Levin <slev@altlinux> 4.9.10-alt3
 - Replaced removed register_interface with subclassing (closes: #43823).