Failing tests on Fedora
Andreas Schneider
asn at samba.org
Thu Feb 16 08:04:21 UTC 2023
Hi,
I'm currently trying to run 'make test' as part of the RPM build process
(%check). So I'm trying to get everything working, but I'm seeing strange
issues and I need some help to track them down.
The errors happen only if I run a full 'make test' and I don't see them when
running the test individually (make test TESTS="..").
Lets take a look at the samba.tests.samba_tool.gpo_exts.ad_dc_ntvfs test.
[2583(16283)/2929 at 1h59m32s, 15 errors]
samba.tests.samba_tool.gpo_exts(ad_dc_ntvfs:local)
UNEXPECTED(failure):
samba.tests.samba_tool.gpo_exts.samba.tests.samba_tool.gpo_exts.GpoCmdTestCase.test_vgp_access_add(ad_dc_ntvfs:local)
REASON: Exception: Exception: Traceback (most recent call last):
File "/builddir/build/BUILD/samba-4.18.0rc2/bin/python/samba/tests/
samba_tool/gpo_exts.py", line 111, in test_vgp_access_add
self.assertCmdSuccess(result, out, err, 'Access add failed')
File "/builddir/build/BUILD/samba-4.18.0rc2/bin/python/samba/tests/
samba_tool/base.py", line 97, in assertCmdSuccess
self.assertIsNone(exit, msg=msg.replace("\n]\n", "\n] \n"))
AssertionError: -1 is not None : exit[-1] stdout[] stderr[ERROR: Unable to
find user or group "testuser"
]: Access add failed
The pattern is the same with other tests failing.
We create a test user with `samba-tool user add`, which succeeds! Note that
samba-tool directly operates on the database here!
Next we try to do an operation via ldap:// and if you look at the error above
it tells us the user we sucessfully createa a few moments agao doesn't exist.
It looks like the samba process didn't recognize that that the database was
modified.
I also see something like that with Kerberos tests, we create a user with
`samba-tool add user` and then the KDC can't find it in the database => same
pattern.
I don't have deep knowledge of the AD server, so hints how to track this down
are much appreciated.
(I'm now running the tests on ext4, but the filesystem doesn't matter here).
Best regards
Andreas
--
Andreas Schneider asn at samba.org
Samba Team www.samba.org
GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
More information about the samba-technical
mailing list