Bug 43172 - 101_exam_mode_home_directories test fails
101_exam_mode_home_directories test fails
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 v10
Assigned To: Sönke Schwardt-Krummrich
Florian Best
:
Depends on: 37955
Blocks: 43086
  Show dependency treegraph
 
Reported: 2016-12-13 06:21 CET by Stefan Gohmann
Modified: 2017-03-22 10:17 CET (History)
4 users (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: 0.171
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 Stefan Gohmann univentionstaff 2016-12-13 06:21:29 CET
The test case 101_exam_mode_home_directories still fails:

http://jenkins.knut.univention.de:8080/job/UCSschool%204.1/job/UCSschool%204.1%20(R2)%20Multiserver/335/SambaVersion=s4-all-components/testReport/90_ucsschool/101_exam_mode_home_directories/test/

[2016-12-12 21:41:08.085376] 
[2016-12-12 21:41:08.085517] *** Creating new OU 'r4644zz55'
[2016-12-12 21:41:11.046265] *** Result of School(...).create(): True
[2016-12-12 21:41:11.046295] Waiting for replication...
[2016-12-12 21:41:12.281650] . Done: replication complete.
[2016-12-12 21:41:12.281687] Creating groups/group object with /usr/sbin/udm-test groups/group create --position cn=klassen,cn=schueler,cn=groups,ou=r4644zz55,dc=autotest203,dc=local --set name=r4644zz55-AA1
[2016-12-12 21:41:12.784088] *** Creating new user 'f9ukpr64ul' with {'disabled': False, 'school': 'r4644zz55', 'name': 'f9ukpr64ul', 'firstname': 'kjyziecqpz', 'schools': ['r4644zz55'], 'lastname': 'uszjlvvdoj', 'password': 'univention', 'email': '', 'school_classes': {}}.
[2016-12-12 21:41:13.157892] *** Result of Teacher(...).create(): True
[2016-12-12 21:41:13.157921] Waiting for replication...
[2016-12-12 21:41:14.382848] . Done: replication complete.
[2016-12-12 21:41:14.382886] *** Creating new user 'dguwh1xort' with {'disabled': False, 'school': 'r4644zz55', 'name': 'dguwh1xort', 'firstname': 'kilqhvxndc', 'schools': ['r4644zz55'], 'lastname': 'ezhoxvkipe', 'password': 'univention', 'email': '', 'school_classes': {}}.
[2016-12-12 21:41:14.774852] *** Result of Student(...).create(): True
[2016-12-12 21:41:14.774878] Waiting for replication...
[2016-12-12 21:41:15.993613] . Done: replication complete.
[2016-12-12 21:41:16.360733] Modifying groups/group object with /usr/sbin/udm-test groups/group modify --dn cn=r4644zz55-AA1,cn=klassen,cn=schueler,cn=groups,ou=r4644zz55,dc=autotest203,dc=local --append users=uid=f9ukpr64ul,cn=lehrer,cn=users,ou=r4644zz55,dc=autotest203,dc=local
[2016-12-12 21:41:16.966858] Modifying groups/group object with /usr/sbin/udm-test groups/group modify --dn cn=r4644zz55-AA1,cn=klassen,cn=schueler,cn=groups,ou=r4644zz55,dc=autotest203,dc=local --append users=uid=dguwh1xort,cn=schueler,cn=users,ou=r4644zz55,dc=autotest203,dc=local
[2016-12-12 21:41:17.322794] Modifying groups/group object with /usr/sbin/udm-test groups/group modify --dn cn=r4644zz55-AA1,cn=klassen,cn=schueler,cn=groups,ou=r4644zz55,dc=autotest203,dc=local --append users=uid=yeirzpf5ai,cn=users,dc=autotest203,dc=local
[2016-12-12 21:41:17.742200] ********** Create computers
[2016-12-12 21:41:18.133228] *** Creating new room 'i6r9bqgfog'
[2016-12-12 21:41:18.286393] *** Result of ComputerRoom(...).create(): True
[2016-12-12 21:41:18.286420] Waiting for replication...
[2016-12-12 21:41:19.554838] . Done: replication complete.
[2016-12-12 21:41:19.554872] *** Creating new room 'fnb8e218im'
[2016-12-12 21:41:19.627486] *** Result of ComputerRoom(...).create(): True
[2016-12-12 21:41:19.627568] Waiting for replication...
[2016-12-12 21:41:20.843757] . Done: replication complete.
[2016-12-12 21:41:21.091525] Starting exam wxa0qob6ix in room cn=r4644zz55-fnb8e218im,cn=raeume,cn=groups,ou=r4644zz55,dc=autotest203,dc=local
[2016-12-12 21:41:21.091792] param = {'files': [], 'directory': 'wxa0qob6ix', 'school': 'r4644zz55', 'name': 'wxa0qob6ix', 'recipients': ['cn=r4644zz55-AA1,cn=klassen,cn=schueler,cn=groups,ou=r4644zz55,dc=autotest203,dc=local'], 'examEndTime': '23:41', 'internetRule': 'none', 'shareMode': 'home', 'customRule': '', 'room': 'cn=r4644zz55-fnb8e218im,cn=raeume,cn=groups,ou=r4644zz55,dc=autotest203,dc=local'}
[2016-12-12 21:41:21.091814] *** UMC request: "command/schoolexam/exam/start"  
[2016-12-12 21:41:21.091824] data = {'customRule': '',
[2016-12-12 21:41:21.091832]  'directory': 'wxa0qob6ix',
[2016-12-12 21:41:21.091840]  'examEndTime': '23:41',
[2016-12-12 21:41:21.091847]  'files': [],
[2016-12-12 21:41:21.091855]  'internetRule': 'none',
[2016-12-12 21:41:21.091863]  'name': 'wxa0qob6ix',
[2016-12-12 21:41:21.091873]  'recipients': ['cn=r4644zz55-AA1,cn=klassen,cn=schueler,cn=groups,ou=r4644zz55,dc=autotest203,dc=local'],
[2016-12-12 21:41:21.091885]  'room': 'cn=r4644zz55-fnb8e218im,cn=raeume,cn=groups,ou=r4644zz55,dc=autotest203,dc=local',
[2016-12-12 21:41:21.091894]  'school': 'r4644zz55',
[2016-12-12 21:41:21.091902]  'shareMode': 'home'}
[2016-12-12 21:41:30.658078] *** UMC response: {u'success': True}
[2016-12-12 21:41:30.658103] Start exam response =  {u'success': True}
[2016-12-12 21:41:30.662143] Finishing exam wxa0qob6ix in room cn=r4644zz55-fnb8e218im,cn=raeume,cn=groups,ou=r4644zz55,dc=autotest203,dc=local
[2016-12-12 21:41:30.662219] param = {'exam': 'wxa0qob6ix', 'room': 'cn=r4644zz55-fnb8e218im,cn=raeume,cn=groups,ou=r4644zz55,dc=autotest203,dc=local'}
[2016-12-12 21:41:30.662259] 
[2016-12-12 21:41:30.662415] *** UMC request: "command/schoolexam/exam/finish"  
[2016-12-12 21:41:30.662429] data = {'exam': 'wxa0qob6ix',
[2016-12-12 21:41:30.662468]  'room': 'cn=r4644zz55-fnb8e218im,cn=raeume,cn=groups,ou=r4644zz55,dc=autotest203,dc=local'}
[2016-12-12 21:41:32.758697] *** UMC response: {u'success': True}
[2016-12-12 21:41:32.758722] Finish exam response =  {u'success': True}
[2016-12-12 21:41:32.806836] ### FAIL ###
[2016-12-12 21:41:32.806863] homeDirectory '/' for 'cn=kx1ns9mqdf,cn=computers,ou=r4644zz55,dc=autotest203,dc=local' is not in expected state: found=True  expected=False
[2016-12-12 21:41:32.806873] ###      ###
[2016-12-12 21:41:32.859657] Unsetting samba/printmode/hosts/none
[2016-12-12 21:41:32.859737] Unsetting samba/share/Marktplatz/hosts/deny
[2016-12-12 21:41:32.859799] Unsetting samba/othershares/hosts/deny
[2016-12-12 21:41:32.859858] Unsetting samba/sharemode/room/fnb8e218im
[2016-12-12 21:41:33.125260] Script: /etc/univention/templates/scripts/samba.local.config.py
[2016-12-12 21:41:33.258133] Multifile: /etc/samba/smb.conf
[2016-12-12 21:41:34.245112] *** Cleanup after exception: <type 'exceptions.SystemExit'> 1
[2016-12-12 21:41:34.245177] 
[2016-12-12 21:41:34.245236] *** Purging OU r4644zz55 and related objects
[2016-12-12 21:41:34.245810] *** Calling following command: ['/usr/sbin/udm-test', 'groups/group', 'remove', '--dn', 'cn=OUr4644zz55-Member-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local']
[2016-12-12 21:41:34.488947] Object removed: cn=OUr4644zz55-Member-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local
[2016-12-12 21:41:34.496844] *** Calling following command: ['/usr/sbin/udm-test', 'groups/group', 'remove', '--dn', 'cn=OUr4644zz55-Member-Edukativnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local']
[2016-12-12 21:41:34.757046] Object removed: cn=OUr4644zz55-Member-Edukativnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local
[2016-12-12 21:41:34.763571] *** Calling following command: ['/usr/sbin/udm-test', 'groups/group', 'remove', '--dn', 'cn=OUr4644zz55-Klassenarbeit,cn=ucsschool,cn=groups,dc=autotest203,dc=local']
[2016-12-12 21:41:35.088158] Object removed: cn=OUr4644zz55-Klassenarbeit,cn=ucsschool,cn=groups,dc=autotest203,dc=local
[2016-12-12 21:41:35.090962] *** Calling following command: ['/usr/sbin/udm-test', 'groups/group', 'remove', '--dn', 'cn=OUr4644zz55-DC-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local']
[2016-12-12 21:41:35.662595] Object removed: cn=OUr4644zz55-DC-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local
[2016-12-12 21:41:35.676988] *** Calling following command: ['/usr/sbin/udm-test', 'groups/group', 'remove', '--dn', 'cn=OUr4644zz55-DC-Edukativnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local']
[2016-12-12 21:41:36.038819] Object removed: cn=OUr4644zz55-DC-Edukativnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local
[2016-12-12 21:41:36.044129] *** Calling following command: ['/usr/sbin/udm-test', 'groups/group', 'remove', '--dn', 'cn=admins-r4644zz55,cn=ouadmins,cn=groups,dc=autotest203,dc=local']
[2016-12-12 21:41:36.317384] Object removed: cn=admins-r4644zz55,cn=ouadmins,cn=groups,dc=autotest203,dc=local
[2016-12-12 21:41:36.322008] *** Calling following command: ['/usr/sbin/udm-test', 'container/ou', 'remove', '--dn', 'ou=r4644zz55,dc=autotest203,dc=local']
[2016-12-12 21:41:37.029605] Object removed: ou=r4644zz55,dc=autotest203,dc=local
[2016-12-12 21:41:37.037892] *** Purging OU r4644zz55 and related objects (ou=r4644zz55,dc=autotest203,dc=local): done
[2016-12-12 21:41:37.037912] Waiting for replication...
[2016-12-12 21:41:38.246015] . Done: replication complete.
[2016-12-12 21:41:38.246045] Cleanup after exception: <type 'exceptions.SystemExit'> 1
[2016-12-12 21:41:38.246056] Performing UCSTestUDM cleanup...
[2016-12-12 21:41:38.718840] UCSTestUDM cleanup done


+++ This bug was initially created as a clone of Bug #37955 +++

Report by a customer:

If a teacher stops the exam mode and collects the results from the students while some students are still logged on at the windows client, the windows client keeps the home directory of the exam user.

During the next exam, there are permission problems with the user's home directory, because a new exam user with new SID is created but the home directory is still owned by the old SID.

The exam/computerroom module should force a logoff of all users (e.g. via iTALC), to make sure that home dir and profile are synced back to the server.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2016-12-16 01:01:06 CET
ucs-test-ucsschool (3.0.17-33):
r75274 | Bug #43172: fixed 101_exam_mode_home_directories
→ fixed
Comment 2 Florian Best univentionstaff 2016-12-20 16:10:38 CET
OK: changes
OK: jenkins