On 07/30/2015 04:15 PM, Lukas Slebodnik wrote:
On (29/07/15 17:05), Lukas Slebodnik wrote:
Attached is a new patch set. I also contains fix for #2712 and not just for
#2716. Otherwise there would be a crash. So it would be better
push them together.
Integration test were failing sporadically due to bug in clien code.
3rd patch fix this problem.
Other patches are the same.
LS
Integration tests still do not work for me even with
this version.
$ contrib/ci/run -n -r
autoreconf: success 00:00:14 ci-autoreconf.log
DEBUG BUILD: ci-build-debug
configure: success 00:00:10 ci-build-debug/ci-configure.log
make-tests: success 00:02:18 ci-build-debug/ci-make-tests.log
make-check-valgrind: success 00:01:41
ci-build-debug/ci-make-check-valgrind.log
make-intgcheck: failure 00:01:55
ci-build-debug/ci-make-intgcheck.log
FAILURE
See sanitized log. These are the newly added _with_mc tests.
Michal
--
Senior Principal Intern
============================= test session starts ==============================
platform linux2 -- Python 2.7.8 -- py-1.4.28 -- pytest-2.6.4 -- /usr/bin/python2
collecting ... collected 31 items
ent_test.py::test_assert_passwd_by_name PASSED
ent_test.py::test_assert_passwd_by_uid PASSED
ent_test.py::test_assert_passwd_list PASSED
ent_test.py::test_assert_each_passwd_by_name PASSED
ent_test.py::test_assert_each_passwd_by_uid PASSED
ent_test.py::test_assert_each_passwd_with_name PASSED
ent_test.py::test_assert_each_passwd_with_uid PASSED
ent_test.py::test_assert_passwd PASSED
ent_test.py::test_group_member_matching PASSED
ent_test.py::test_assert_group_by_name PASSED
ent_test.py::test_assert_group_by_gid PASSED
ent_test.py::test_assert_group_list PASSED
ent_test.py::test_assert_each_group_by_name PASSED
ent_test.py::test_assert_each_group_by_gid PASSED
ent_test.py::test_assert_each_group_with_name PASSED
ent_test.py::test_assert_each_group_with_gid PASSED
ent_test.py::test_assert_group PASSED
ldap_test.py::test_sanity_rfc2307 PASSED
ldap_test.py::test_sanity_rfc2307_bis PASSED
test_memory_cache.py::test_getpwnam PASSED
test_memory_cache.py::test_getpwnam_with_mc FAILED
test_memory_cache.py::test_getgrnam_simple PASSED
test_memory_cache.py::test_getgrnam_simple_with_mc FAILED
test_memory_cache.py::test_getgrnam_membership PASSED
test_memory_cache.py::test_getgrnam_membership_with_mc FAILED
test_memory_cache.py::test_initgroups PASSED
test_memory_cache.py::test_initgroups_with_mc FAILED
test_memory_cache.py::test_initgroups_fqname_with_mc FAILED
test_memory_cache.py::test_initgroups_case_insensitive_with_mc1 FAILED
test_memory_cache.py::test_initgroups_case_insensitive_with_mc2 FAILED
test_memory_cache.py::test_initgroups_case_insensitive_with_mc3 FAILED
=================================== FAILURES ===================================
____________________________ test_getpwnam_with_mc _____________________________
Traceback (most recent call last):
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 298, in test_getpwnam_with_mc
test_getpwnam(ldap_conn, sanity_rfc2307)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 216, in test_getpwnam
gecos='1001', shell='/bin/bash'))
File "/home/user/gitrepo/sssd-ci/src/tests/intg/ent.py", line 210, in assert_passwd_by_name
assert False, err
AssertionError: 'getpwnam(): name not found: user1'
---------------------------- Captured stderr setup -----------------------------
ldb: unable to dlopen /usr/lib64/ldb/modules/ldb/memberof.la : /usr/lib64/ldb/modules/ldb/memberof.la: invalid ELF header
_________________________ test_getgrnam_simple_with_mc _________________________
Traceback (most recent call last):
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 324, in test_getgrnam_simple_with_mc
test_getgrnam_simple(ldap_conn, sanity_rfc2307)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 302, in test_getgrnam_simple
ent.assert_group_by_name("group1", dict(name="group1", gid=2001))
File "/home/user/gitrepo/sssd-ci/src/tests/intg/ent.py", line 353, in assert_group_by_name
assert False, err
AssertionError: 'getgrnam(): name not found: group1'
---------------------------- Captured stderr setup -----------------------------
ldb: unable to dlopen /usr/lib64/ldb/modules/ldb/memberof.la : /usr/lib64/ldb/modules/ldb/memberof.la: invalid ELF header
_______________________ test_getgrnam_membership_with_mc _______________________
Traceback (most recent call last):
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 374, in test_getgrnam_membership_with_mc
test_getgrnam_membership(ldap_conn, sanity_rfc2307)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 330, in test_getgrnam_membership
dict(mem=ent.contains_only("user1", "user11", "user21")))
File "/home/user/gitrepo/sssd-ci/src/tests/intg/ent.py", line 353, in assert_group_by_name
assert False, err
AssertionError: 'getgrnam(): name not found: group1'
---------------------------- Captured stderr setup -----------------------------
ldb: unable to dlopen /usr/lib64/ldb/modules/ldb/memberof.la : /usr/lib64/ldb/modules/ldb/memberof.la: invalid ELF header
___________________________ test_initgroups_with_mc ____________________________
Traceback (most recent call last):
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 406, in test_initgroups_with_mc
test_initgroups(ldap_conn, sanity_rfc2307)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 390, in test_initgroups
assert_user_gids_equal('user1', [2000, 2001])
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 378, in assert_user_gids_equal
(res, errno, gids) = sssd_id.get_user_gids(user)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/sssd_id.py", line 91, in get_user_gids
pwd_user = pwd.getpwnam(user)
KeyError: 'getpwnam(): name not found: user1'
---------------------------- Captured stderr setup -----------------------------
ldb: unable to dlopen /usr/lib64/ldb/modules/ldb/memberof.la : /usr/lib64/ldb/modules/ldb/memberof.la: invalid ELF header
________________________ test_initgroups_fqname_with_mc ________________________
Traceback (most recent call last):
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 412, in test_initgroups_fqname_with_mc
assert_user_gids_equal('user1@LDAP', [2000, 2001])
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 378, in assert_user_gids_equal
(res, errno, gids) = sssd_id.get_user_gids(user)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/sssd_id.py", line 91, in get_user_gids
pwd_user = pwd.getpwnam(user)
KeyError: 'getpwnam(): name not found: user1@LDAP'
---------------------------- Captured stderr setup -----------------------------
ldb: unable to dlopen /usr/lib64/ldb/modules/ldb/memberof.la : /usr/lib64/ldb/modules/ldb/memberof.la: invalid ELF header
__________________ test_initgroups_case_insensitive_with_mc1 ___________________
Traceback (most recent call last):
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 459, in test_initgroups_case_insensitive_with_mc1
primary_gid, expected_gids)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 447, in assert_stored_last_initgroups
assert_initgroups_equal(user1_case_last, primary_gid, expected_gids)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 417, in assert_initgroups_equal
assert res == sssd_id.NssReturnCode.SUCCESS, \
AssertionError: Could not find groups for user usEr1@LDAP, 111
assert -1 == 1
+ where 1 = <class 'sssd_id.NssReturnCode'>.SUCCESS
+ where <class 'sssd_id.NssReturnCode'> = sssd_id.NssReturnCode
---------------------------- Captured stderr setup -----------------------------
ldb: unable to dlopen /usr/lib64/ldb/modules/ldb/memberof.la : /usr/lib64/ldb/modules/ldb/memberof.la: invalid ELF header
__________________ test_initgroups_case_insensitive_with_mc2 ___________________
Traceback (most recent call last):
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 471, in test_initgroups_case_insensitive_with_mc2
primary_gid, expected_gids)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 447, in assert_stored_last_initgroups
assert_initgroups_equal(user1_case_last, primary_gid, expected_gids)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 417, in assert_initgroups_equal
assert res == sssd_id.NssReturnCode.SUCCESS, \
AssertionError: Could not find groups for user uSer1@LDAP, 111
assert -1 == 1
+ where 1 = <class 'sssd_id.NssReturnCode'>.SUCCESS
+ where <class 'sssd_id.NssReturnCode'> = sssd_id.NssReturnCode
---------------------------- Captured stderr setup -----------------------------
ldb: unable to dlopen /usr/lib64/ldb/modules/ldb/memberof.la : /usr/lib64/ldb/modules/ldb/memberof.la: invalid ELF header
__________________ test_initgroups_case_insensitive_with_mc3 ___________________
Traceback (most recent call last):
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 483, in test_initgroups_case_insensitive_with_mc3
primary_gid, expected_gids)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 447, in assert_stored_last_initgroups
assert_initgroups_equal(user1_case_last, primary_gid, expected_gids)
File "/home/user/gitrepo/sssd-ci/src/tests/intg/test_memory_cache.py", line 417, in assert_initgroups_equal
assert res == sssd_id.NssReturnCode.SUCCESS, \
AssertionError: Could not find groups for user User1@LDAP, 111
assert -1 == 1
+ where 1 = <class 'sssd_id.NssReturnCode'>.SUCCESS
+ where <class 'sssd_id.NssReturnCode'> = sssd_id.NssReturnCode
---------------------------- Captured stderr setup -----------------------------
ldb: unable to dlopen /usr/lib64/ldb/modules/ldb/memberof.la : /usr/lib64/ldb/modules/ldb/memberof.la: invalid ELF header
===================== 8 failed, 23 passed in 25.26 seconds =====================
Makefile:683: recipe for target 'intgcheck-installed' failed
make[1]: *** [intgcheck-installed] Error 1
make[1]: Leaving directory '/home/user/gitrepo/sssd-ci/ci-build-debug/intg/bld/src/tests/intg'
Makefile:22520: recipe for target 'intgcheck' failed
make: *** [intgcheck] Error 2
End: Thu Jul 30 17:00:12 CEST 2015
_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel