Univention Bugzilla – Bug 52604
Migrate UCR Templates to Python 3
Last modified: 2021-07-01 12:06:02 CEST
All UCR Templates must be Python 2 and Python 3 compatible: As well as UCR templates ACLs / Schema definitions: UCR Templates: ucs-school-import/conffiles/etc/apache2/sites-available/ucs-school-import-http-api.conf ucs-school-import/conffiles/etc/cron.d/ucs-school-import ucs-school-netlogon-user-logonscripts/conffiles/etc/logrotate.d/ucs-school-netlogon-user-logonscripts ucs-school-umc-exam/conffiles/etc/cron.d/ucs-school-umc-exam ucs-school-umc-exam/conffiles/etc/cron.d/ucs-school-umc-exam-master ucs-school-webproxy/conffiles/etc/cron.d/ucs-school-webproxy ucs-school-webproxy/conffiles/var/www/proxy.pac LDAP Schema/ACLs: ucs-school-import/schema/ucs-school-import.schema ucs-school-ldap-acls-master/61ucsschool_presettings ucs-school-ldap-acls-master/65ucsschool ucs-school-umc-helpdesk/umc-helpdesk.schema ucs-school-metapackage/ucsschool-join-hook.py
For the ACL's --ucsversionstart and --ucsversionend must be set.
If not already the case, the UCR template output should also be made idempotent. With the test case this can be checked: /usr/share/ucs-test/03_ucr/37check-ucr-templates-py3-migration-status.py
ucs-school-webproxy.yaml eb4eb925310b | Bug #52604: migrate ucs-school-webproxy UCR templates to Python 3 ucs-school-webproxy (15.0.2) eb4eb925310b | Bug #52604: migrate ucs-school-webproxy UCR templates to Python 3 ucs-school-umc-exam.yaml ee3c62a2cf0d | Bug #52604: migrate UCR templates to Python 3 ucs-school-umc-exam (9.0.1-54) ee3c62a2cf0d | Bug #52604: migrate UCR templates to Python 3 ucs-school-netlogon-user-logonscripts.yaml 9e96b2371326 | Bug #52604: migrate UCR template to Python 3 ucs-school-netlogon-user-logonscripts (15.0.0-2) 9e96b2371326 | Bug #52604: migrate UCR template to Python 3 ucs-school-metapackage.yaml 9ec166c24335 | Bug #52604: migrate join hook to Python 3 ucs-school-metapackage (12.0.4-17) 9ec166c24335 | Bug #52604: migrate join hook to Python 3 ucs-school-ldap-acls-master.yaml 34773bfe4883 | Bug #52604: migrate UCR ACL templates to be python3 compatible ucs-school-ldap-acls-master (17.0.4-10) 34773bfe4883 | Bug #52604: migrate UCR ACL templates to be python3 compatible ucs-school-import.yaml 986a9885b6d0 | Bug #52604: make UCR templates Python 3 compatible ucs-school-import (17.0.62) 986a9885b6d0 | Bug #52604: make UCR templates Python 3 compatible
QA: all OK, verify Packages involved: ucs-school-netlogon-user-logonscripts ucs-school-umc-exam ucs-school-webproxy ucs-school-import ucs-school-ldap-acls-master ucs-school-metapackage code review OK tested the templates -> no errors ucs-school-webproxy/conffiles/etc/cron.d/ucs-school-webproxy OK ucs-school-webproxy/conffiles/var/www/proxy.pac OK ucs-school-netlogon-user-logonscripts/conffiles/etc/logrotate.d/ucs-school-netlogon-user-logonscripts OK ucs-school-import/conffiles/etc/cron.d/ucs-school-import OK Jenkins is happy
Errata updates for UCS@school 4.4 v9 have been released. https://docs.software-univention.de/changelog-ucsschool-4.4v9-de.html If this error occurs again, please clone this bug.