Bug 53166 - IPv6 network does not work : ipaddress.AddressValueError
IPv6 network does not work : ipaddress.AddressValueError
Status: CLOSED DUPLICATE of bug 50648
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Philipp Hahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-27 07:46 CEST by Philipp Hahn
Modified: 2021-05-25 16:01 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.257
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): IPv6
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2021-04-27 07:46:08 CEST
# udm computers/ipmanagedclient create --set name=ipv6 --set network=cn=ipv6,cn=networks,dc=phahn0,dc=qa
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 210, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 389, in doit
    out = _doit(arglist)
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 658, in _doit
    out.extend(cli.create(input, append, ignore_exists, parsed_options, parsed_append_options, parsed_remove_options, policy_reference))
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 686, in create
    return self._create(self.module_name, self.module, self.dn, self.lo, self.position, self.superordinate, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 722, in _create
    out.extend(object_input(module, object, input, append=append))
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 371, in object_input
    object[key] = value
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 3250, in __setitem__
    subnet = IPv4Network(u"%(network)s/%(netmask)s" % network_object, strict=False)
  File "/usr/lib/python3.7/ipaddress.py", line 1528, in __init__
    addr = self._ip_int_from_string(args[0])
  File "/usr/lib/python3.7/ipaddress.py", line 1135, in _ip_int_from_string
    raise AddressValueError("Expected 4 octets in %r" % ip_str)
ipaddress.AddressValueError: Expected 4 octets in '2001:1:2:3::'


# univention-ldapsearch -LLLb cn=ipv6,cn=networks,dc=phahn0,dc=qa
dn: cn=ipv6,cn=networks,dc=phahn0,dc=qa
cn: ipv6
univentionNetwork: 2001:1:2:3::
univentionNetmask: 64
univentionDnsForwardZone: zoneName=hahn0.qa,cn=dns,dc=phahn0,dc=qa
univentionDnsReverseZone: zoneName=3.0.0.0.2.0.0.0.1.0.0.0.1.0.0.2.ip6.arpa,cn=dns,dc=phahn0,dc=qa
univentionIpRange: 2001:1:2:3::1 2001:1:2:3:0:ffff:ffff:ffff
univentionNextIp: 2001:1:2:3::1
objectClass: top
objectClass: univentionObject
objectClass: univentionNetworkClass
univentionObjectType: networks/network
Comment 1 Florian Best univentionstaff 2021-04-27 09:41:20 CEST
univention-directory-manager-modules (15.0.8-2)
7a66dff8e913 | fixup! Bug #50648 UDM: migrate ipaddr → ipaddress

*** This bug has been marked as a duplicate of bug 50648 ***
Comment 2 Philipp Hahn univentionstaff 2021-04-27 18:51:42 CEST
OKAY
Comment 3 Florian Best univentionstaff 2021-05-25 16:01:34 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".