Bug 50707 - ucs-school-purge-expired-users is run on DC master and DC backup
ucs-school-purge-expired-users is run on DC master and DC backup
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v4-errata
Assigned To: Tobias Wenzel
Sönke Schwardt-Krummrich
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-01-10 12:21 CET by Sönke Schwardt-Krummrich
Modified: 2020-02-13 21:42 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.137
Enterprise Customer affected?:
School Customer affected?: Yes
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 Sönke Schwardt-Krummrich univentionstaff 2020-01-10 12:21:38 CET
The cron job for ucs-school-purge-expired-users is run on DC master and DC backup (same UCS@school meta package!) which seems to cause trouble since the jobs are executed simultaneously.
Comment 1 Tobias Wenzel univentionstaff 2020-02-07 12:05:17 CET
Fix by adjusting the file ucs-school-import/conffiles/etc/cron.d/ucs-school-import. Now the cronjob is not run on dc backup, otherwise print 'Skipping ucs-school-purge-expired-users on backup.'.
Comment 2 Tobias Wenzel univentionstaff 2020-02-11 11:32:09 CET
[4.4 14efdf3f4] Bug #50765: Add server/role variable to ucs-school-umc-exam-master.univention-config-registry and ucs-school-import.univention-config-registry.


Package: ucs-school-import
Version: 17.0.25A~4.4.0.202002111008
Branch: ucs_4.4-0
Scope: ucs-school-4.4
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2020-02-13 18:10:29 CET
OK: code change
OK: changelog entry
OK: advisory
OK: functional change
OK: package built and installable

Cronjob has been successfully tested on DC master and DC backup systems.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2020-02-13 21:42:36 CET
UCS@school 4.4 v4 has been released.

https://docs.software-univention.de/changelog-ucsschool-4.4v4-de.html

If this error occurs again, please clone this bug.