Bug 44082 - exam mode: cleanup of ucr variables fails (othershares/hosts/deny, marktplatz/hosts/deny, printmode/hosts/none, sharemode/room/examroom)
exam mode: cleanup of ucr variables fails (othershares/hosts/deny, marktplatz...
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 v11
Assigned To: Sönke Schwardt-Krummrich
Daniel Tröder
:
Depends on:
Blocks: 44109
  Show dependency treegraph
 
Reported: 2017-03-27 13:42 CEST by Jens Thorp-Hansen
Modified: 2017-05-08 09:38 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 4: Will affect most installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.571
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017032721000276, 2017021521000586
Bug group (optional): Workaround is available
Max CVSS v3 score:


Attachments
config-registry.replog (1.96 KB, text/plain)
2017-03-28 08:48 CEST, Jens Thorp-Hansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Thorp-Hansen univentionstaff 2017-03-27 13:42:10 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]
Comment 1 Jens Thorp-Hansen univentionstaff 2017-03-27 13:51:33 CEST
basic workaround would be to clean up the variables manually, since they are known a simple bash script should be sufficient.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2017-03-27 13:58:17 CEST
(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.
Comment 3 Jens Thorp-Hansen univentionstaff 2017-03-28 08:46:06 CEST
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).
Comment 4 Jens Thorp-Hansen univentionstaff 2017-03-28 08:48:25 CEST
Created attachment 8661 [details]
config-registry.replog
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2017-03-28 13:50:03 CEST
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
Comment 6 Daniel Tröder univentionstaff 2017-04-04 13:19:46 CEST
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'}
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2017-04-10 11:50:23 CEST
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.