Univention Bugzilla – Bug 44082
exam mode: cleanup of ucr variables fails (othershares/hosts/deny, marktplatz/hosts/deny, printmode/hosts/none, sharemode/room/examroom)
Last modified: 2017-05-08 09:38:05 CEST
certain ucr variables are not cleaned up after an exam. Examples from the customer environment: config-registry-replog: 2017-03-27 12:31:15: set samba/othershares/hosts/deny='10.101.69.116 10.101.69.177 10.101.69.29' old:[Previously undefined] 2017-03-27 12:31:15: set samba/share/Marktplatz/hosts/deny='10.101.69.116 10.101.69.177 10.101.69.29' old:[Previously undefined] 2017-03-27 12:31:15: set samba/printmode/hosts/none='""' old:[Previously undefined] 2017-03-27 12:31:15: set samba/sharemode/room/examroom=home old:[Previously undefined]
basic workaround would be to clean up the variables manually, since they are known a simple bash script should be sufficient.
(In reply to Jens Thorp-Hansen from comment #1) > basic workaround would be to clean up the variables manually, since they are > known a simple bash script should be sufficient. exam-and-room-cleanup does remove these UCR variables. So no special script required. Nevertheless the exam mode should remove these UCR variables automatically.
reproduced in testenvironment: master: 10.200.16.11 slave: 10.200.16.40 exam mode startet on slave. config-registry-replog from after the end of the exam is attached (and shows the behaviour).
Created attachment 8661 [details] config-registry.replog
ucs-school-umc-exam.yaml: r78410 | Bug #44082: added advisory ucs-school-umc-exam (6.0.10-8): r78409 | Bug #44082: reset computerroom settings after exam has been finished The computerroom settings are now explicitely reset to default values when the user presses the "finish exam" button. Package: ucs-school-umc-exam Version: 6.0.10-9.130.201703281344 Branch: ucs_4.1-0 Scope: ucs-school-4.1r2
OK: code OK: advisory (r78653 wording) OK: manual test: room settings returned to defaults after exam ended Logfiles: ==> /var/log/univention/management-console-module-schoolexam.log <== 30.03.17 17:54:33.352 MODULE ( INFO ) : Reset room settings: cn=SchuleEinz-room1a,cn=raeume,cn=groups,ou=SchuleEinz,dc=uni,dc=dtr ==> /var/log/univention/management-console-module-computerroom.log <== 30.03.17 17:54:33.374 MODULE ( INFO ) : Executing ['computerroom/settings/set'] 30.03.17 17:54:33.387 MODULE ( INFO ) : unsetting room settings for exam (exam111): /usr/share/ucs-school-umc-computerroom/ucs-school-deactivate-rules -r samba/sharemode/room/room1a -r proxy/filter/room/room1a/rule -e samba/othershares/hosts/deny -e samba/share/Marktplatz/hosts/deny -e proxy/filter/room/room1a/ip 10.200.3.3 [..] 30.03.17 17:54:35.250 MODULE ( INFO ) : Executing ['computerroom/update'] 30.03.17 17:54:35.251 MODULE ( INFO ) : Update: result: {'room_info': {'examDescription': 'exam111', 'exam': 'exam111', 'examEndTime': '18:37', 'cmd': '/usr/share/ucs-school-umc-computerroom/ucs-school-deactivate-rules -r samba/sharemode/room/room1a -r proxy/filter/room/room1a/rule -e samba/othershares/hosts/deny -e samba/share/Marktplatz/hosts/deny -e proxy/filter/room/room1a/ip 10.200.3.3', 'pid': 1258, 'user': 'uid=Administrator,cn=users,dc=uni,dc=dtr', 'room': 'cn=SchuleEinz-room1a,cn=raeume,cn=groups,ou=SchuleEinz,dc=uni,dc=dtr'}, 'computers': [], 'locked': False, 'user': 'uid=Administrator,cn=users,dc=uni,dc=dtr'}
UCS@school 4.1 R2 v11 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v11-de.html If this error occurs again, please clone this bug.