Bug 43142 - 98_samba4_evaluate_windows_gpo is flaky on UCS@school Slave PDC
98_samba4_evaluate_windows_gpo is flaky on UCS@school Slave PDC
Status: NEW
Product: UCS Test
Classification: Unclassified
Component: UCS@school
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-08 21:27 CET by Arvid Requate
Modified: 2018-07-09 19:12 CEST (History)
1 user (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:
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 Arvid Requate univentionstaff 2016-12-08 21:27:35 CET
http://jenkins.knut.univention.de:8080/job/UCSschool%204.1/job/UCSschool%204.1%20(R2)%20Multiserver/SambaVersion=s4/lastCompletedBuild/testReport/90_ucsschool/98_samba4_evaluate_windows_gpo/history/

There seem to be two issues:

1. The Traceback looks like force_drs_replication(direction="out") somehow doesn't detect that master203 is not a possible DRS replication partner of slave2032.
Currently I don't understand how this can happen, because 

univention.testing.ucs_samba.get_available_s4connector_dc

and

univention.testing.ucs_samba.force_drs_replication

should check for this case and not replicate.

2. samba-tool gpo listall doesn't find the GPO that should have been created by the Windows client at the UCS@schol Slave PDC.

======================================================================
Standard Ausgabe (STDOUT)

[2016-12-04 03:20:49.723327] 
[2016-12-04 03:20:49.723365] Looking for 'IP-0AD26C51' host ip address:
[2016-12-04 03:20:49.730098] Host IP is: 10.210.108.81
[2016-12-04 03:20:49.730124] Trying to check Windows host '10.210.108.81' domain
[2016-12-04 03:20:51.177635] Creating groups/group object with /usr/sbin/udm-test groups/group create --position cn=klassen,cn=schueler,cn=groups,ou=School2,dc=autotest203,dc=local --set name=School2-AA1
[2016-12-04 03:20:52.714317] . *** Creating new user 'j2s31t5bmu' with {'disabled': False, 'school': 'School2', 'name': 'j2s31t5bmu', 'firstname': 'bdyqteqpnb', 'schools': ['School2'], 'lastname': 'ktekipmmvs', 'password': 'univention', 'email': '', 'school_classes': {}}.
[2016-12-04 03:20:53.095410] *** Result of Student(...).create(): True
[2016-12-04 03:20:53.095439] Waiting for replication...
[2016-12-04 03:21:01.277013] . . . Done: replication complete.
[2016-12-04 03:21:01.277047] Modifying groups/group object with /usr/sbin/udm-test groups/group modify --dn cn=School2-AA1,cn=klassen,cn=schueler,cn=groups,ou=School2,dc=autotest203,dc=local --append users=uid=j2s31t5bmu,cn=schueler,cn=users,ou=School2,dc=autotest203,dc=local
[2016-12-04 03:21:02.722310] . *** Creating new room 'rl9hnthjmt'
[2016-12-04 03:21:02.792701] *** Result of ComputerRoom(...).create(): True
[2016-12-04 03:21:02.792782] Waiting for replication...
[2016-12-04 03:21:04.075214] . Done: replication complete.
[2016-12-04 03:21:04.268313] 
[2016-12-04 03:21:04.268442] GPOTest.__enter__
[2016-12-04 03:21:04.268592] 
[2016-12-04 03:21:04.268616] Creating GPO for the test with a name: test_user_gpo_qguz
[2016-12-04 03:21:15.534574] USING partition_dn: DC=autotest203,DC=local
(2016-12-04 03:21:16.044767) ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - drsException: DsReplicaSync failed (-1073610699, 'The operation cannot be performed.')
(2016-12-04 03:21:16.044873)   File "/usr/lib/python2.7/dist-packages/samba/netcmd/drs.py", line 368, in run
(2016-12-04 03:21:16.045178)     drs_utils.sendDsReplicaSync(server_bind, server_bind_handle, source_dsa_guid, NC, req_options)
(2016-12-04 03:21:16.045234)   File "/usr/lib/python2.7/dist-packages/samba/drs_utils.py", line 83, in sendDsReplicaSync
(2016-12-04 03:21:16.045385)     raise drsException("DsReplicaSync failed %s" % estr)
[2016-12-04 03:21:16.824635] USING partition_dn: DC=autotest203,DC=local
[2016-12-04 03:21:17.578325] Replicate from slave2032 to master203 was successful.
[2016-12-04 03:21:17.598614] 
[2016-12-04 03:21:17.598689] Checking that GPO 'test_user_gpo_qguz' exists.
[2016-12-04 03:21:17.994007] ### FAIL ###
[2016-12-04 03:21:18.006334] The GPO 'test_user_gpo_qguz' was not found in the list of all GPOs.
[2016-12-04 03:21:18.006352] ###      ###
[2016-12-04 03:21:18.006364] *** Cleanup after exception: <type 'exceptions.SystemExit'> 1
[2016-12-04 03:21:18.006375] Waiting for replication...
[2016-12-04 03:21:18.089307] Done: replication complete.
[2016-12-04 03:21:18.089354] Cleanup after exception: <type 'exceptions.SystemExit'> 1
[2016-12-04 03:21:18.089365] Performing UCSTestUDM cleanup...
[2016-12-04 03:21:18.334563] UCSTestUDM cleanup done

Standard Fehler (STDERR)

(2016-12-04 03:21:16.044767) ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - drsException: DsReplicaSync failed (-1073610699, 'The operation cannot be performed.')
(2016-12-04 03:21:16.044873)   File "/usr/lib/python2.7/dist-packages/samba/netcmd/drs.py", line 368, in run
(2016-12-04 03:21:16.045178)     drs_utils.sendDsReplicaSync(server_bind, server_bind_handle, source_dsa_guid, NC, req_options)
(2016-12-04 03:21:16.045234)   File "/usr/lib/python2.7/dist-packages/samba/drs_utils.py", line 83, in sendDsReplicaSync
(2016-12-04 03:21:16.045385)     raise drsException("DsReplicaSync failed %s" % estr)
======================================================================

I've added some additional Debug output.