Bug 51063 - Ошибка установки сервера FreeIPA
Summary: Ошибка установки сервера FreeIPA
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: 2024-08-05 16:18 MSK by Alexander Makeenkov
Modified: 2024-08-06 06:21 MSK (History)
5 users (show)

See Also:


Attachments
ipaserver-install.log (999.38 KB, text/x-log)
2024-08-05 16:18 MSK, Alexander Makeenkov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2024-08-05 16:18:01 MSK
Created attachment 16557 [details]
ipaserver-install.log

Версия пакета: 4.11.2-alt1

Запуск ipa-server-install завершается ошибкой: Can't instantiate abstract class IPACertificate without an implementation for abstract method 'public_key_algorithm_oid'

Полный лог установки во вложении.

Не воспроизводится в p11.
Comment 1 Evgeny Sinelnikov 2024-08-05 21:45:15 MSK
Известная проблема:
https://pagure.io/freeipa/issue/9641

Это подарок от python3-module-cryptography-43.0.0

> rcritten commented 4 days ago
> 
> PR https://github.com/freeipa/freeipa/pull/7476
> 
> @slev this should fix things up for you.

Но дальше, больше...

=================================== FAILURES ===================================
__________________ test_ip_address[10.11.12.13/14-words2-14] ___________________

self = <[AttributeError("'CheckedIPAddress' object has no attribute '_module'") raised in repr()] CheckedIPAddress object at 0x7ff42d981810>
addr = '10.11.12.13/14'

    def __init__(self, addr):
        if isinstance(addr, UnsafeIPAddress):
            self._net = addr._net
            super(UnsafeIPAddress, self).__init__(addr,
                                                  flags=self.netaddr_ip_flags)
            return
    
        elif isinstance(addr, netaddr.IPAddress):
            self._net = None  # no information about netmask
            super(UnsafeIPAddress, self).__init__(addr,
                                                  flags=self.netaddr_ip_flags)
            return
    
        elif isinstance(addr, netaddr.IPNetwork):
            self._net = addr
            super(UnsafeIPAddress, self).__init__(self._net.ip,
                                                  flags=self.netaddr_ip_flags)
            return
    
        # option of last resort: parse it as string
        self._net = None
        addr = str(addr)
        try:
            try:
>               addr = netaddr.IPAddress(addr, flags=self.netaddr_ip_flags)

../ipapython/ipautil.py:110:

[...]

А это, похоже, подарок от python3-module-netaddr-1.3.0.
Comment 2 Evgeny Sinelnikov 2024-08-06 00:14:50 MSK
Ну, это, конечно, здорово. Чтобы собрать новую samba, нужно пересобрать freeipa, которая не работает с новым netaddr... То есть нужно вначале починить freeipa в upstream'е.

А кто в p11 кто будет обновлять netaddr до версии 0.10.1 ?

Или мы будем жить в сизифе на всём сломанном, как они:
https://packages.fedoraproject.org/pkgs/python-netaddr/python3-netaddr/

А в p11 у нас будет тухнуть старый netaddr?

Когда мы начнём думать перед обновлением критически важных пакетов? Зачем на новый netaddr, с которым всё ломается без промежуточной, более старшей версии?
Comment 3 Repository Robot 2024-08-06 06:21:24 MSK
freeipa-4.11.2-alt2 -> sisyphus:

 Sat Aug 03 2024 Evgeny Sinelnikov <sin@altlinux> 4.11.2-alt2
 - Fixed compatibility with Cryptography 43 (closes: #51063).
 - Backported upstream patches for known issue:
   + https://pagure.io/freeipa/issue/9641
 - Backported replacment python module netifaces with ifaddr:
   + https://pagure.io/freeipa/issue/9555
 - Fix compatibility with modern versions of netaddr:
   + https://pagure.io/freeipa/issue/9645