samba.tests.samba3 test failure from 4.6.4 on AIX 7
Albert Chin
samba-technical at mlists.thewrittenword.com
Fri Jun 23 07:18:03 UTC 2017
I had to make some patches to selftest/wscript selftest/selftest.pl
for the tests to work on AIX. The first test failure is
samba.tests.samba3. A log of the output is below.
The failures all seem related to the following:
UNEXPECTED(failure): samba.tests.samba3.samba.tests.samba3.PassdbTestCase.test_get_sid(none)
REASON: Exception: Exception: Traceback (most recent call last):
File "/opt/build/samba-4.6.4/bin/python/samba/tests/samba3.py", line 105, in test_get_sid
self.assertEquals(dom_sid("S-1-5-21-2470180966-3899876309-2637894779"), domain_sid)
AssertionError: dom_sid('S-1-5-21-2470180966-3899876309-2637894779') != dom_sid('S-1-5-352321536-1727544211-3580064744-2064923549')
Any hints on how to debug this?
--
albert chin (china at thewrittenword.com)
-- snip snip
'test' finished successfully (0.051s)
Waf: Entering directory `/opt/build/samba-4.6.4/bin'
Selected embedded Heimdal build
Waf: Leaving directory `/opt/build/samba-4.6.4/bin'
'build' finished successfully (12.156s)
skipping subunit (testscenarios not available)
LDR_PRELOAD=/opt/build/samba-4.6.4/bin/default/lib/resolv_wrapper/libresolv-wrapper.so:/opt/build/samba-4.6.4/bin/default/lib/socket_wrapper/libsocket-wrapper.so:/opt/build/samba-4.6.4/bin/default/lib/uid_wrapper/libuid-wrapper.so
SOCKET_WRAPPER_DIR=/opt/build/samba-4.6.4/st/w
DNS: Faking nameserver
OPTIONS --configfile=$SMB_CONF_PATH --option='fss:sequence timeout=1' --maximum-runtime=$SELFTEST_MAXTIME --basedir=$SELFTEST_TMPDIR --format=subunit --option=torture:progress=no
[1(0)/2 at 0s] samba.tests.samba3
lp_load_ex: refreshing parameters
Freeing parametrics:
Processing section "[global]"
doing parameter workgroup = SAMBA
doing parameter security = user
doing parameter passdb backend = smbpasswd:../testdata/samba3/smbpasswd tdbsam:../testdata/samba3/passdb.tdb ldapsam:tdb://samba3.ldb
doing parameter debug level = 5
INFO: Current debug levels:
all: 5
tdb: 5
printdrivers: 5
lanman: 5
smb: 5
rpc_parse: 5
rpc_srv: 5
rpc_cli: 5
passdb: 5
sam: 5
auth: 5
winbind: 5
vfs: 5
idmap: 5
quota: 5
acls: 5
locking: 5
msdfs: 5
dmapi: 5
registry: 5
scavenger: 5
dns: 5
ldb: 5
tevent: 5
doing parameter netbios name = BEDWYR
Processing section "[cd1]"
doing parameter path = /mnt/cd1
doing parameter public = yes
Processing section "[cd2]"
doing parameter path = /mnt/cd2
doing parameter public = yes
Processing section "[media]"
doing parameter path = /media
doing parameter public = yes
Processing section "[tmp]"
doing parameter path = /tmp
doing parameter guest only = yes
doing parameter public = yes
doing parameter read only = no
pm_process() returned Yes
Attempting to find a passdb backend to match tdbsam (tdbsam)
Found pdb backend tdbsam
pdb backend tdbsam has a valid init
UNEXPECTED(failure): samba.tests.samba3.samba.tests.samba3.PassdbTestCase.test_get_sid(none)
REASON: Exception: Exception: Traceback (most recent call last):
File "/opt/build/samba-4.6.4/bin/python/samba/tests/samba3.py", line 105, in test_get_sid
self.assertEquals(dom_sid("S-1-5-21-2470180966-3899876309-2637894779"), domain_sid)
AssertionError: dom_sid('S-1-5-21-2470180966-3899876309-2637894779') != dom_sid('S-1-5-352321536-1727544211-3580064744-2064923549')
lp_load_ex: refreshing parameters
Freeing parametrics:
Processing section "[global]"
doing parameter workgroup = SAMBA
doing parameter security = user
doing parameter passdb backend = smbpasswd:../testdata/samba3/smbpasswd tdbsam:../testdata/samba3/passdb.tdb ldapsam:tdb://samba3.ldb
doing parameter debug level = 5
INFO: Current debug levels:
all: 5
tdb: 5
printdrivers: 5
lanman: 5
smb: 5
rpc_parse: 5
rpc_srv: 5
rpc_cli: 5
passdb: 5
sam: 5
auth: 5
winbind: 5
vfs: 5
idmap: 5
quota: 5
acls: 5
locking: 5
msdfs: 5
dmapi: 5
registry: 5
scavenger: 5
dns: 5
ldb: 5
tevent: 5
doing parameter netbios name = BEDWYR
Processing section "[cd1]"
doing parameter path = /mnt/cd1
doing parameter public = yes
Processing section "[cd2]"
doing parameter path = /mnt/cd2
doing parameter public = yes
Processing section "[media]"
doing parameter path = /media
doing parameter public = yes
Processing section "[tmp]"
doing parameter path = /tmp
doing parameter guest only = yes
doing parameter public = yes
doing parameter read only = no
pm_process() returned Yes
Attempting to find a passdb backend to match tdbsam (tdbsam)
Found pdb backend tdbsam
pdb backend tdbsam has a valid init
tdbsam_open: Converting version 2.0 database to version 4.0.
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb.tmp
tdbsam_convert_backup: updated /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb file.
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb
Home server: BEDWYR
Home server: BEDWYR
Attempting to find a passdb backend to match smbpasswd:../testdata/samba3/smbpasswd tdbsam:../testdata/samba3/passdb.tdb ldapsam:tdb://samba3.ldb (smbpasswd)
Found pdb backend smbpasswd
pdb backend smbpasswd:../testdata/samba3/smbpasswd tdbsam:../testdata/samba3/passdb.tdb ldapsam:tdb://samba3.ldb has a valid init
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
tdb(/opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb): tdb_transaction_start: nesting 1
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
get_privileges: No privileges assigned to SID [S-1-1-0]
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
get_privileges: No privileges assigned to SID [S-1-5-32-548]
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
get_privileges: No privileges assigned to SID [S-1-5-32-549]
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
get_privileges: No privileges assigned to SID [S-1-5-32-550]
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
get_privileges: No privileges assigned to SID [S-1-5-32-551]
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
get_privileges: No privileges assigned to SID [S-1-5-32-544]
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/account_policy.tdb
Opening cache file at /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/gencache.tdb
Opening cache file at /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/gencache_notrans.tdb
lookup_global_sam_rid: looking up RID 3001.
startsmbfilepwent_internal: file ../testdata/samba3/smbpasswd tdbsam:../testdata/samba3/passdb.tdb ldapsam:tdb://samba3.ldb did not exist. Couldn't create new one. Error was: No such file or directoryUnable to open passdb database.
Can't find a unix id for an unmapped group
SID S-1-5-352321536-1727544211-3580064744-2064923549-3001 belongs to our domain, but there is no corresponding object in the database.
Home server: BEDWYR
Home server: BEDWYR
lookup_global_sam_rid: looking up RID 1001.
startsmbfilepwent_internal: file ../testdata/samba3/smbpasswd tdbsam:../testdata/samba3/passdb.tdb ldapsam:tdb://samba3.ldb did not exist. Couldn't create new one. Error was: No such file or directoryUnable to open passdb database.
Can't find a unix id for an unmapped group
SID S-1-5-352321536-1727544211-3580064744-2064923549-1001 belongs to our domain, but there is no corresponding object in the database.
Home server: BEDWYR
Home server: BEDWYR
lookup_global_sam_rid: looking up RID 514.
startsmbfilepwent_internal: file ../testdata/samba3/smbpasswd tdbsam:../testdata/samba3/passdb.tdb ldapsam:tdb://samba3.ldb did not exist. Couldn't create new one. Error was: No such file or directoryUnable to open passdb database.
Can't find a unix id for an unmapped group
SID S-1-5-352321536-1727544211-3580064744-2064923549-514 belongs to our domain, but there is no corresponding object in the database.
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb
check lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb
release lock order 1 for /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb
TDBSAM converted successfully.
tdbsam_open: successfully opened /opt/build/samba-4.6.4/st/tmp/tmps9n4Lm/samba3/passdb.tdb
Home server: BEDWYR
Home server: BEDWYR
Finding user root
Trying _Get_Pwnam(), username as lowercase is root
Get_Pwnam_internals did find user [root]!
gid_to_sid: winbind failed to find a sid for gid 0
Forcing Primary Group to 'Domain Users' for root
UNEXPECTED(failure): samba.tests.samba3.samba.tests.samba3.PassdbTestCase.test_getuser(none)
REASON: Exception: Exception: Traceback (most recent call last):
File "/opt/build/samba-4.6.4/bin/python/samba/tests/samba3.py", line 123, in test_getuser
self.assertEquals(dom_sid('S-1-5-21-2470180966-3899876309-2637894779-513'), user.group_sid)
AssertionError: dom_sid('S-1-5-21-2470180966-3899876309-2637894779-513') != dom_sid('S-1-5-352321536-1727544211-3580064744-2064923549-513')
command: python -m samba.subunit.run $LOADLIST samba.tests.samba3 2>&1 | /opt/build/samba-4.6.4/selftest/filter-subunit --fail-on-empty --prefix="samba.tests.samba3." --suffix="(none)"
expanded command: python -m samba.subunit.run $LOADLIST samba.tests.samba3 2>&1 | /opt/build/samba-4.6.4/selftest/filter-subunit --fail-on-empty --prefix="samba.tests.samba3." --suffix="(none)"
ERROR: Testsuite[samba.tests.samba3]
REASON: Exit code was 1
[2(21)/2 at 5s, 1 errors] samba.tests.samba3sam
FAILED (2 failures, 0 errors and 0 unexpected successes in 1 testsuites)
A summary with detailed information can be found in:
./st/summary
TOP 10 slowest tests
samba.tests.samba3sam -> 14
samba.tests.samba3 -> 5
test: running (/opt/TWWfsw/perl5162/bin/perl /opt/build/samba-4.6.4/selftest/selftest.pl --target=samba --prefix=./st --srcdir=/opt/build/samba-4.6.4 --exclude=/opt/build/samba-4.6.4/selftest/skip --testlist="/opt/TWWfsw/python27/bin/python /opt/build/samba-4.6.4/selftest/tests.py|" --testlist="/opt/TWWfsw/python27/bin/python /opt/build/samba-4.6.4/source3/selftest/tests.py|" --testlist="/opt/TWWfsw/python27/bin/python /opt/build/samba-4.6.4/source4/selftest/tests.py|" --exclude=/opt/build/samba-4.6.4/selftest/slow --resolv_wrapper_so_path=/opt/build/samba-4.6.4/bin/default/lib/resolv_wrapper/libresolv-wrapper.so --socket_wrapper_so_path=/opt/build/samba-4.6.4/bin/default/lib/socket_wrapper/libsocket-wrapper.so --uid_wrapper_so_path=/opt/build/samba-4.6.4/bin/default/lib/uid_wrapper/libuid-wrapper.so --use-dns-faking --socket-wrapper samba.tests.samba3 && touch ./st/st_done) | /opt/TWWfsw/python27/bin/python -u /opt/build/samba-4.6.4/selftest/filter-subunit --expected-failures=/opt/build/samba-4.6.4/selftest/knownfail --flapping=/opt/build/samba-4.6.4/selftest/flapping | tee ./st/subunit | /opt/TWWfsw/python27/bin/python -u /opt/build/samba-4.6.4/selftest/format-subunit --prefix=./st --immediate
ERROR: test failed with exit code 1
More information about the samba-technical
mailing list