Univention Bugzilla – Bug 52017
UCR: Fix python3 API - transition from ipaddr to ipaddress
Last modified: 2021-05-25 16:03:37 CEST
We need to use ipaddress instead of ipaddr in UCR. +++ This bug was initially created as a clone of Bug #51368 +++ (In reply to Florian Best from comment #4) > OK: after the daily we[Sönke,Arvid,me] decided to change the UCR Interfaces > API for Python2 and Python 3 in UCS 5.0 and leave this as is.
(In reply to Florian Best from Bug #51368 comment #2) > With the new API we need to differentiate the python version in: > > base/univention-base-files/conffiles/etc/network/interfaces.d/10-default: > AttributeError: 'IPv4Interface' object has no attribute 'prefixlen' > > services/univention-squid/conffiles/etc/squid/squid.conf: > AttributeError: 'IPv4Interface' object has no attribute 'prefixlen' > > → addr.network.prefixlen > > services/univention-printserver/conffiles/etc/cups/cupsd.conf.d/01cupsd-base: > AttributeError: 'IPv4Interface' object has no attribute 'masked' > > services/univention-samba4/96univention-samba4.inst: > AttributeError: 'IPv4Interface' object has no attribute 'masked'
All users of the UCR API have been adjusted as well as UCR itself: univention-squid (13.0.1-1) 9979e8d62b83 | Bug #52017 squid: ipaddr → ipaddress univention-samba4 (9.0.1-1) 736bbfe68930 | Bug #52017 Samba4: ipaddr → ipaddress univention-printserver (13.0.1-1) a7cde452e261 | Bug #52017 printserver: ipaddr → ipaddress univention-config-registry (15.0.2-0) b3bee6e89955 | Bug #52017: use python ipaddress univention-base-files (9.0.1-1) 8da289f02b37 | Bug #52017 base-files: ipaddr → ipaddress
*** Bug 52199 has been marked as a duplicate of this bug. ***
Changes are looking good -> OK jenkins looks good -> OK changelog -> OK -> Verified
Sorry I had missed two problems :( [5.0-0 f3771c2edc] Bug #52017: fix double netmask e.g. 1.2.3.4/24/24 [5.0-0 4d3bf6c0eb] Bug #52017: fix traceback with ipv6 address
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".