Bug 52604 - Migrate UCR Templates to Python 3
Migrate UCR Templates to Python 3
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 5.0
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v9-errata
Assigned To: Florian Best
Tobias Wenzel
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-12 14:55 CET by Florian Best
Modified: 2021-07-01 12:06 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
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 Florian Best univentionstaff 2021-01-12 14:55:00 CET
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
Comment 1 Florian Best univentionstaff 2021-01-12 15:08:31 CET
For the ACL's --ucsversionstart and --ucsversionend must be set.
Comment 2 Florian Best univentionstaff 2021-01-12 21:16:32 CET
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
Comment 4 Florian Best univentionstaff 2021-06-02 00:25:18 CEST
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
Comment 5 Tobias Wenzel univentionstaff 2021-06-08 14:33:02 CEST
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
Comment 6 Tobias Wenzel univentionstaff 2021-07-01 12:06:02 CEST
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.