Univention Bugzilla – Bug 55386
UCS@school computer room module should ignore Ubuntu computers .....
Last modified: 2022-11-17 16:31:50 CET
or make it possible to use them! (Bug 51571) The customer has 3 school with linux ubuntu Clients in the school. With ucs4 it was still possible to have them in a computerroom. Since UCS5 opening the computerroom with Ubuntu Clients it shows the following traceback: 03.11.22 09:48:07.538 MAIN ( ERROR ) : Interner Server-Fehler in "schoolrooms/get". Request: schoolrooms/get Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 347, 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 250, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 184, in _response return function(self, request) 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/schoolrooms/__init__.py", line 105, in get host = SchoolComputer.from_dn(host_dn, None, ldap_user_read) # Please remove with Bug #49611 File "/usr/lib/python3/dist-packages/ucsschool/lib/models/base.py", line 1104, in from_dn return cls.from_udm_obj(udm_obj, school, lo) File "/usr/lib/python3/dist-packages/ucsschool/lib/models/computer.py", line 415, in from_udm_obj obj = super(SchoolComputer, cls).from_udm_obj(udm_obj, school, lo) File "/usr/lib/python3/dist-packages/ucsschool/lib/models/base.py", line 1003, in from_udm_obj raise UnknownModel(udm_obj.dn, cls) ucsschool.lib.models.base.UnknownModel: Could not find object of type None with DN "No python class: 'cn=sun-ubuntu,cn=computers,ou=sun,dc=schein,dc=de' is not a SchoolComputer". -------------------------------------------------------------- Object seems to have Role and ObjectClass: root@primary:~# univention-ldapsearch -LLL cn=sun-ubuntu objectClass ucsschoolRole dn: cn=gygagc-ubuntu,cn=computers,ou=sun,dc=schein,dc=de ucsschoolRole: ubuntu_computer:school:sun objectClass: krb5KDCEntry objectClass: top objectClass: univentionHost objectClass: univentionUbuntuClient objectClass: univentionObject objectClass: sambaSamAccount objectClass: person objectClass: shadowAccount objectClass: krb5Principal objectClass: ucsschoolComputer objectClass: posixAccount
Version: 5.0-2 errata471 - UCS@school 5.0 v3 Remark: Nach Upgrade auf UCS 56.02 Klick auf Computerraum "Test-PCs" einer Schule Error: Interner Server-Fehler in "schoolrooms/get". Request: schoolrooms/get Traceback (most recent call last): File "%PY3%/univention/management/console/base.py", line 347, in __error_handling six.reraise(etype, exc, etraceback) File "%PY3%/six.py", line 693, in reraise raise value File "%PY3%/univention/management/console/base.py", line 250, in execute function.__func__(self, request, *args, **kwargs) File "%PY3%/univention/management/console/modules/decorators.py", line 184, in _response return function(self, request) File "%PY3%/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func return func(*args, **kwargs) File "%PY3%/univention/management/console/modules/schoolrooms/__init__.py", line 105, in get host = SchoolComputer.from_dn(host_dn, None, ldap_user_read) # Please remove with Bug #49611 File "%PY3%/ucsschool/lib/models/base.py", line 1104, in from_dn return cls.from_udm_obj(udm_obj, school, lo) File "%PY3%/ucsschool/lib/models/computer.py", line 415, in from_udm_obj obj = super(SchoolComputer, cls).from_udm_obj(udm_obj, school, lo) File "%PY3%/ucsschool/lib/models/base.py", line 1003, in from_udm_obj raise UnknownModel(udm_obj.dn, cls) ucsschool.lib.models.base.UnknownModel: Could not find object of type None with DN "No python class: 'cn=***-ubuntu,cn=computers,ou=***,dc=***,dc=de' is not a SchoolComputer". Role: domaincontroller_master
errata updates for UCS@school 5.0 v3 have been released. https://docs.software-univention.de/ucsschool-changelog/5.0v3/de/changelog.html If this error occurs again, please clone this bug. ---- fixed with https://forge.univention.org/bugzilla/show_bug.cgi?id=55119 It is now possible to use linux + ubuntu computers in the computerrroom