Bug 45277

Summary: 00_checks/81_diagnostic_checks.py samba-tool dbcheck fails
Product: UCS Test Reporter: Arvid Requate <requate>
Component: SambaAssignee: Stefan Gohmann <gohmann>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P5 CC: best, gohmann, hinrichs, hupertz, michelsmidt, oyen, requate
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=50358
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:
Bug Depends on: 40605    
Bug Blocks:    

Description Arvid Requate univentionstaff 2017-08-29 11:16:15 CEST
The UMC system diagnostic module check run by tests/00_checks/81_diagnostic_checks.py fails in samba_tool_dbcheck.py:


[2017-08-29 00:15:51.016341] =================================== FAILURES ===================================
[2017-08-29 00:15:51.016419] __________________________ test_run_diagnostic_checks __________________________
[2017-08-29 00:15:51.016474] 
[2017-08-29 00:15:51.016548]     def test_run_diagnostic_checks():
[2017-08-29 00:15:51.016614]     	client = Client.get_test_connection()
[2017-08-29 00:15:51.016680]     	plugins = client.umc_command('diagnostic/query').result
[2017-08-29 00:15:51.016743]     	failures = []
[2017-08-29 00:15:51.016808]     	for plugin in plugins:
[2017-08-29 00:15:51.016873]     		result = client.umc_command('diagnostic/run', {'plugin': plugin['id']}).result
[2017-08-29 00:15:51.031748]     		if result['type'] != 'success':
[2017-08-29 00:15:51.031779]     			failures.append(result)
[2017-08-29 00:15:51.031791]     	error = ''.join('###############\n%s\n%s###############\n\n' % (x['title'], x['description']) for x in failures)
[2017-08-29 00:15:51.031800]     	if failures:
[2017-08-29 00:15:51.031809] >   		raise Exception(error)
[2017-08-29 00:15:51.031817] E     Exception: ###############
[2017-08-29 00:15:51.031825] E     Teste die lokale AD Datenbank auf Fehler
[2017-08-29 00:15:51.031834] E     `samba-tool dbcheck` fand Probleme mit der lokalen AD Datenbank.
[2017-08-29 00:15:51.031842] E     
[2017-08-29 00:15:51.031850] E     STDOUT:
[2017-08-29 00:15:51.031857] E     Checking 226 objects
[2017-08-29 00:15:51.031873] E     ERROR: incorrect DN SID component for member in object CN=Domain Users,CN=Groups,DC=autotest091,DC=local - <GUID=ff392550-f71c-4801-87a1-e7af1a892d53>;<RMD_ADDTIME=131484315130000000>;<RMD_CHANGETIME=131484315130000000>;<RMD_FLAGS=0>;<RMD_INVOCID=56258900-02c8-4b92-9773-299b6994038a>;<RMD_LOCAL_USN=3729>;<RMD_ORIGINATING_USN=3729>;<RMD_VERSION=0>;CN=Administrator,CN=Users,DC=autotest091,DC=local
[2017-08-29 00:15:51.031883] E     Not fixing SID component mismatch
[2017-08-29 00:15:51.031891] E     Please use --fix to fix these errors
[2017-08-29 00:15:51.031899] E     Checked 226 objects (1 errors)
[2017-08-29 00:15:51.031906] E     
[2017-08-29 00:15:51.031931] E     Sie können `samba-tool dbcheck --fix` ausführen um die Probleme zu beheben.###############
[2017-08-29 00:15:51.031942] 81_diagnostic_checks.py:19: Exception
Comment 1 Arvid Requate univentionstaff 2017-08-29 11:18:32 CEST
See Bug 40605 Comment 6 and Bug 40605 Comment 14.
Comment 2 Stefan Gohmann univentionstaff 2017-09-08 19:55:28 CEST
The diagnostic plugin for dbcheck is now skipped in 00_checks/81_diagnostic_checks.py:

7b141f03
by Stefan Gohmann at 2017-09-08T19:42:38+02:00
00_checks/81_diagnostic_checks.py: added the possibility to skip tests (Bug #45277)

77e475ba
by Stefan Gohmann at 2017-09-08T19:45:10+02:00
00_checks/81_diagnostic_checks.py: skip 40_samba_tool_dbcheck (Bug #45277)