Bug 52017 - UCR: Fix python3 API - transition from ipaddr to ipaddress
UCR: Fix python3 API - transition from ipaddr to ipaddress
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCR
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Jürn Brodersen
:
: 52199 (view as bug list)
Depends on: 51368
Blocks:
  Show dependency treegraph
 
Reported: 2020-09-15 15:30 CEST by Florian Best
Modified: 2021-05-25 16:03 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): API change
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-09-15 15:30:31 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.
Comment 1 Florian Best univentionstaff 2020-09-15 16:51:15 CEST
(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'
Comment 2 Florian Best univentionstaff 2020-09-22 10:26:26 CEST
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
Comment 3 Jürn Brodersen univentionstaff 2020-10-21 10:09:09 CEST
*** Bug 52199 has been marked as a duplicate of this bug. ***
Comment 4 Jürn Brodersen univentionstaff 2021-03-11 10:19:16 CET
Changes are looking good -> OK
jenkins looks good -> OK
changelog -> OK

-> Verified
Comment 5 Jürn Brodersen univentionstaff 2021-03-15 14:54:39 CET
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
Comment 6 Florian Best univentionstaff 2021-05-25 16:03:37 CEST
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".