Univention Bugzilla – Bug 56904
Failing to reset the SMB connections on a computer results in an exam that can't be stopped, which blocks other exams
Last modified: 2024-01-17 13:09:32 CET
Created attachment 11157 [details] Patch to prevent an SMB reset failure from stopping the exam When running an exam, if there is a failure while trying to kill the SMB process (see here: https://git.knut.univention.de/univention/ucsschool/-/blob/5.0/ucs-school-umc-computerroom/umc/python/computerroom/__init__.py?ref_type=heads#L966), this prevents the exam from starting up. Additionally, this leaves the exam in a half-started state, and room is still marked as being used by the exam, so new exams can't be started in the room. Additionally, the exam files don't get collected or otherwise cleaned up. Attached is a simplistic patch that prevents an SMB failure from starting the exam. However, a better, more long-term solution would be to catch any failures during startup and perform a cleanup of the exam, files, and room.