Bug 55386 - UCS@school computer room module should ignore Ubuntu computers .....
UCS@school computer room module should ignore Ubuntu computers .....
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Computer room
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-11-04 10:26 CET by Christina Scheinig
Modified: 2022-11-17 16:31 CET (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.057
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022110321000367, 2022110321000223
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2022-11-04 10:26:17 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
Comment 1 Mika Westphal univentionstaff 2022-11-04 10:49:46 CET
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
Comment 3 Tobias Wenzel univentionstaff 2022-11-17 16:31:44 CET
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