Univention Bugzilla – Bug 53624
computerroom/query: Error: Unknown IP address
Last modified: 2023-11-16 14:21:08 CET
This occurs when a Windows client joins a UCS@School domain and you do not specify the IP address of the Windows client in the "Computers (schools)" module after joining. If you assign that computer to a computer room and then try to open the "Computer Room" module and select a room, without specifying the IP of the joined Windows computer first, the following Traceback will show up. (I've only tested this for a missing IP address but this could probably also happen if you do not specify the MAC address of the joined client since that is also a required field) Internal server error during "computerroom/query". Request: computerroom/query Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 344, in __error_handling six.reraise(etype, exc, etraceback) File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise raise value File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 247, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python3/dist-packages/ucsschool/lib/school_umc_ldap_connection.py", line 154, in wrapper_func return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/__init__.py", line 534, in query result = [computer.dict for computer in self._computerroom.values()] File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/__init__.py", line 534, in <listcomp> result = [computer.dict for computer in self._computerroom.values()] File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/room_management.py", line 526, in dict "ip": self.ipAddress, File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/room_management.py", line 453, in ipAddress raise ComputerRoomError("Unknown IP address") univention.management.console.modules.computerroom.room_management.ComputerRoomError: Unknown IP address
*** Bug 53570 has been marked as a duplicate of this bug. ***
Version: 4.4-8 errata1057 (Blumenthal) - UCS@school 4.4 v9 Remark: Kann auf keinen Computerraum zugreifen Error: Interner Server-Fehler in "computerroom/query". Request: computerroom/query Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling six.reraise(etype, exc, etraceback) File "%PY2.7%/univention/management/console/base.py", line 262, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/ucsschool/lib/school_umc_ldap_connection.py", line 145, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/computerroom/__init__.py", line 551, in query result = [computer.dict for computer in self._italc.values()] File "%PY2.7%/univention/management/console/modules/computerroom/room_management.py", line 1080, in dict "ip": self.ipAddress, File "%PY2.7%/univention/management/console/modules/computerroom/room_management.py", line 1007, in ipAddress raise ComputerRoomError("Unknown IP address") ComputerRoomError: Unknown IP address Role: domaincontroller_slave
reported again: Version: 5.0-1 errata342 - UCS@school 5.0 v1; traceback see Description
Added another support ticket: #2023053121000191 UCS VERSION: 5.0-3 Errata 677 Interner Server-Fehler in "computerroom/query". Request: computerroom/query Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 351, in __error_handling six.reraise(etype, exc, etraceback) File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise raise value File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 254, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python3/dist-packages/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/__init__.py", line 562, in query result = [computer.dict for computer in self._computerroom.values()] File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/__init__.py", line 562, in <listcomp> result = [computer.dict for computer in self._computerroom.values()] File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/room_management.py", line 526, in dict "ip": self.ipAddress, File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/room_management.py", line 453, in ipAddress raise ComputerRoomError("Unknown IP address") univention.management.console.modules.computerroom.room_management.ComputerRoomError: Unknown IP address
2023090521000151 5.0-4 errata771 - UCS@school 5.0 v4
Happened again. The customer is not able to finish an exam, because switching to the computerroom, the traceback occurs. (5.0.5 errata 838) Interner Server-Fehler in "computerroom/query". Request: computerroom/query Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 387, in __error_handling six.reraise(etype, exc, etraceback) File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise raise value File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 285, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python3/dist-packages/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/__init__.py", line 562, in query result = [computer.dict for computer in self._computerroom.values()] File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/__init__.py", line 562, in <listcomp> result = [computer.dict for computer in self._computerroom.values()] File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/room_management.py", line 526, in dict "ip": self.ipAddress, File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/room_management.py", line 453, in ipAddress raise ComputerRoomError("Unknown IP address") univention.management.console.modules.computerroom.room_management.ComputerRoomError: Unknown IP address
If a computer does not have an IP address, it will not anymore raise an error and be still displayed in the computerroom. It's icon (which displays the computer's status) will change it's color to orange and the status will say "The computer is unreachable because no IP address has been assigned to the computer object.". With this issue, also https://forge.univention.org/bugzilla/show_bug.cgi?id=53571 is fixed. Merged & built with Package: ucs-school-umc-computerroom Version: 12.0.14 Branch: ucs_5.0-0 Scope: ucs-school-5.0 Package: ucs-test-ucsschool Version: 7.3.148 Branch: ucs_5.0-0 Scope: ucs-school-5.0
Created attachment 11142 [details] UI fix for Bug 53624 showing a computer missing an IP address with an orange icon and hover text I have verified the bug fix works as intended. When a computer is added without an IP address to a computer room, it no longer throws an error. Instead, it displays the computer with an orange icon. When hovering over the computer, the explanation is provided that the computer is missing an IP address. Additionally, when the room is first loaded, there are warnings in the logs that the computer is misconfigured.
Package: ucs-school-umc-computerroom Version: 12.0.15 Branch: ucs_5.0-0 Scope: ucs-school-5.0 changed icon to orange attention sign
Created attachment 11144 [details] New Icon We changed the icon to an orange attention sign.
Errata updates for UCS@school 5.0 v4 have been released. https://docs.software-univention.de/ucsschool-changelog/5.0v4/en/changelog.html https://docs.software-univention.de/ucsschool-changelog/5.0v4/de/changelog.html If this error occurs again, please clone this bug.