Univention Bugzilla – Bug 55119
import_computer script cannot import Ubuntu computers in UCS@school 5.0
Last modified: 2022-11-17 16:25:52 CET
The "import_computer" script was upgraded to instead of using UDM directly to use the UCS@school library. That however does not have support for the "computers/ubuntu" UDM object type and thus the "import_computer" script does not support it anymore. As this was supported before and not noted in the release notes, IMHO it's a regression. A customer noted this: https://help.univention.com/t/rechnerobjekt-per-cli-import/20342 Add a "UbuntuComputer" class to ucs-school-lib/modules/ucsschool/lib/models/computer.py and that to the "computer_to_class_mapping" in the "import_computer" script.
Turns out the script did officially never support Ubuntu computers, only "ipmanagedclient, macos, windows": https://docs.software-univention.de/ucsschool-handbuch-4.4.html#school:schoolcreate:computers:import Still it would be good to be able to import a non-proprietary OS.
during further communication with customers it was also requested to import "computers/linux" as far as I know the "ubuntu" flavour is used once a system is joined using the domain-join-assistant there appears to be no functional difference (see also bug 34641). So it shouldnt make a difference in the "linux" flavour can be used for import too. Once this is implemented the documentation should make clear that the ability to import doesnt mean that the full featureset of Windows-Clients in UCS@School is available. This has to include "macos" too at least until there is a decision to document and support them in the same way as Windows-PC.
Package: ucs-school-import Version: 18.0.26A~5.0.0.202211151540 Branch: ucs_5.0-0 Scope: ucs-school-5.0 Package: ucs-test-ucsschool Version: 7.3.83 User: twenzel Scope: ucs-school-5.0 Package: ucs-school-lib Version: 13.0.30 User: twenzel Scope: ucs-school-5.0 this also fixes https://forge.univention.org/bugzilla/show_bug.cgi?id=55386 but creates an inconsistency https://forge.univention.org/bugzilla/show_bug.cgi?id=55427
Test was fixed with ucs-test-ucsschool Version: 7.3.84A~5.0.0.202211170855
ucs-test-ucsschool 7.3.84A~5.0.0.202211170855 fixes the failing tests (83_python_hooks.py) seen in the Jenkins pipeline.
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.