Univention Bugzilla – Full Text Bug Listing |
Summary: | Traceback when a computer's networks/network's netmask is set to 255.255.255.0 instead of 24 | ||
---|---|---|---|
Product: | UCS | Reporter: | Dirk Wiesenthal <wiesenthal> |
Component: | UDM (Generic) | Assignee: | UMC maintainers <umc-maintainers> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P5 | CC: | best, castens, gohmann, keiser |
Version: | UCS 5.0 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: |
https://forge.univention.org/bugzilla/show_bug.cgi?id=24674 https://forge.univention.org/bugzilla/show_bug.cgi?id=24828 |
||
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?: | 2: A Pain – users won’t like this once they notice it |
User Pain: | 0.171 | Enterprise Customer affected?: | Yes |
School Customer affected?: | ISV affected?: | Yes | |
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2018072221000258, 2018011921000533, 2018011921000499, 2017112821000795, 2017112521000013, 2016120221000539, 2017010721000021, 2017041321000906, 2017041021000699, 2017031221000339, 2017081521000477, 2020122021000238, 2020102621000123, 2021060421000742 | Bug group (optional): | Error handling, External feedback |
Max CVSS v3 score: |
Description
Dirk Wiesenthal
2014-02-03 10:20:26 CET
Reported again: 3.2-3 errata225 Reported again, 4.0-2 errata213 (Walle) Die Ausführung des Kommandos udm/put computers/computer ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 207, in _decorated return function(self, request, *args, **kwargs) File "%PY2.7%/notifier/threads.py", line 82, in _run tmp = self._function() File "%PY2.7%/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 412, in _thread module.modify(properties) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 163, in _decorated return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 146, in wrapper_func return _func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 139, in _func ret = func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 552, in modify self._map_properties(obj, ldap_object) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 441, in _map_properties obj[property_name] = property_obj.syntax.parse(value) File "%PY2.7%/univention/admin/handlers/__init__.py", line 2665, in __setitem__ network_object['netmask'], self['ip'][ 0 ]): File "%PY2.7%/univention/admin/ipaddress.py", line 51, in ip_is_in_network lip=struct.unpack('!I', socket.inet_aton(ip))[0] >> 32-int(subnetmask) ValueError: invalid literal for int() with base 10: '255.255.255.0' Reported again, comment #2, 4.0-2 errata263 (Walle) Reported again, 4.1-1 errata153 (Vahr), comment #2 Reported again, 4.1-4 errata350 (Vahr) Reported again, 4.1-4 errata371 (Vahr) Version: 4.2-0 errata1 (Lesum) Version: 4.1-4 errata408 (Vahr) Version: 4.1-4 errata406 (Vahr) Version: 4.2-1 errata133 (Lesum) Version: 4.2-2 errata231 (Lesum) Reported again: Version: 4.2-3 errata231 (Lesum) Reported again: Version: 4.3-0 errata0 (Neustadt) Internal server error during "udm/put (computers/computer)". Request: udm/put (computers/computer) I spoke with a partner having this problem on a new installation of UCS 4.3-0: Our network/network "default" object has the problematic value "255.255.255.0" in LDAP. This is set by management/univention-ldap/10univention-ldap-server.inst but UDM should transform it into the format "24" except if the UCR variable directory/manager/web/modules/networks/network/properties/netmask/syntax is set (to e.g. "string"). But that variable is not set on that system. To fix the problem the following can be executed as root on the DC Master: eval "$(ucr shell ldap/base)" ldapmodify -x -D "cn=admin,$ldap_base" -y /etc/ldap.secret <<-%EOR dn: cn=default,cn=networks,$ldap_base changetype: modify replace: univentionNetmask univentionNetmask: 24 %EOR Reported again: Version: 4.3-1 errata151 (Neustadt) Interner Server-Fehler in "udm/put (computers/computer)". Request: udm/put (computers/computer) Traceback (most recent call last): File "%PY2.7%/notifier/threads.py", line 82, in _run tmp = self._function() File "%PY2.7%/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 407, in _thread module.modify(properties) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 83, in _decorated return method(*args, **kwargs) File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated result = func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 452, in modify self._map_properties(obj, ldap_object) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 342, in _map_properties obj[property_name] = property_obj.syntax.parse(value) File "%PY2.7%/univention/admin/handlers/__init__.py", line 3085, in __setitem__ if not self['ip'] or len(self['ip']) < 1 or not self['ip'][0] or not univention.admin.ipaddress.ip_is_in_network(network_object['network'], network_object['netmask'], self['ip'][0]): File "%PY2.7%/univention/admin/ipaddress.py", line 54, in ip_is_in_network lip = struct.unpack('!I', socket.inet_aton(ip))[0] >> 32 - int(subnetmask) ValueError: invalid literal for int() with base 10: '255.255.255.0' Reported again: Version: 4.3-2 errata332 (Neustadt) Interner Server-Fehler in "udm/put (computers/computer)". Request: udm/put (computers/computer) File "%PY2.7%/notifier/threads.py", line 78, in _run tmp = self._function() File "%PY2.7%/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 431, in _thread module.modify(properties) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 84, in _decorated return method(*args, **kwargs) File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated result = func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 453, in modify self._map_properties(obj, ldap_object) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 343, in _map_properties obj[property_name] = property_obj.syntax.parse(value) File "%PY2.7%/univention/admin/handlers/__init__.py", line 3129, in __setitem__ if not self['ip'] or len(self['ip']) < 1 or not self['ip'][0] or not univention.admin.ipaddress.ip_is_in_network(network_object['network'], network_object['netmask'], self['ip'][0]): File "%PY2.7%/univention/admin/ipaddress.py", line 54, in ip_is_in_network lip = struct.unpack('!I', socket.inet_aton(ip))[0] >> 32 - int(subnetmask) ValueError: invalid literal for int() with base 10: '255.255.255.0' Role: domaincontroller_master reported again Version: 4.4-7 errata850 (Blumenthal) Error: Interner Server-Fehler in "udm/put (computers/computer)". Request: udm/put (computers/computer) File "%PY2.7%/notifier/threads.py", line 80, in _run result = self._function() File "%PY2.7%/notifier/__init__.py", line 104, in __call__ return self._function(*tmp, **self._kwargs) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 440, in _thread module.modify(properties) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 643, in modify self._map_properties(obj, ldap_object) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 509, in _map_properties obj[property_name] = property_obj.syntax.parse(value) File "%PY2.7%/univention/admin/handlers/__init__.py", line 3326, in __setitem__ if not self['ip'] or len(self['ip']) < 1 or not self['ip'][0] or not univention.admin.ipaddress.ip_is_in_network(network_object['network'], network_object['netmask'], self['ip'][0]): File "%PY2.7%/univention/admin/ipaddress.py", line 105, in ip_is_in_network lip = struct.unpack('!I', socket.inet_aton(ip))[0] >> 32 - int(subnetmask) ValueError: invalid literal for int() with base 10: '255.255.255.0' Role: domaincontroller_master reported again: 2021061121000274 Version: 4.4-8 errata992 (Blumenthal) Error: Interner Server-Fehler in "udm/put (computers/computer)". Request: udm/put (computers/computer) File "%PY2.7%/notifier/threads.py", line 80, in _run result = self._function() File "%PY2.7%/notifier/__init__.py", line 104, in __call__ return self._function(*tmp, **self._kwargs) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 440, in _thread module.modify(properties) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 643, in modify self._map_properties(obj, ldap_object) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 509, in _map_properties obj[property_name] = property_obj.syntax.parse(value) File "%PY2.7%/univention/admin/handlers/__init__.py", line 3326, in __setitem__ if not self['ip'] or len(self['ip']) < 1 or not self['ip'][0] or not univention.admin.ipaddress.ip_is_in_network(network_object['network'], network_object['netmask'], self['ip'][0]): File "%PY2.7%/univention/admin/ipaddress.py", line 105, in ip_is_in_network lip = struct.unpack('!I', socket.inet_aton(ip))[0] >> 32 - int(subnetmask) ValueError: invalid literal for int() with base 10: '255.255.255.255' Role: domaincontroller_master reported again: #2021060421000742 Version: 4.4-8 errata987 (Blumenthal) Remark: I've set a network for domain controller in the computers list. |