Univention Bugzilla – Bug 40727
74_radius_internetrules_priority fails sometimes
Last modified: 2019-01-06 21:23:28 CET
[2016-02-17 23:13:03.858617]Waiting for replication... [2016-02-17 23:13:04.027615]<closed file '<fdopen>', mode 'rb' at 0x3544c90> [2016-02-17 23:13:05.133694]<closed file '<fdopen>', mode 'rb' at 0x3544ae0> [2016-02-17 23:13:06.220712]Done: replication complete. (2016-02-17 23:13:06.220750)Traceback (most recent call last): (2016-02-17 23:13:06.220762) File "74_radius_internetrules_priority", line 67, in <module> (2016-02-17 23:13:06.220770) main() (2016-02-17 23:13:06.220779) File "74_radius_internetrules_priority", line 64, in main (2016-02-17 23:13:06.220795) test_peap_auth(username, password, radius_secret, should_succeed=should_succeed) (2016-02-17 23:13:06.220805) File "/usr/share/ucs-test/90_ucsschool/essential/radius.py", line 33, in test_peap_auth (2016-02-17 23:13:06.220814) auth_result, should_succeed, username)) (2016-02-17 23:13:06.220825)essential.radius.TestFail: PEAP authentication unexpected result (False), while the expected is (True) (2016-02-17 23:13:06.220833)User=dpl0qldx3g
Package: ucs-test-ucsschool Version: 5.0.2-22A~4.3.0.201803201305 Branch: ucs_4.3-0 Scope: ucs-school-4.3 ucs-test-ucsschool (5.0.2-22) 237bb87fa091 | Bug #40727: wait in 74_radius_internetrules_priority for LDAP and S4 replication
ucs-test-ucsschool has been uploaded to test app center as U@S 4.3v2
The test used a new umc connection for every internetrule and workgroup it created. If I count correctly that results in 16 module processes. On my system this test consumed over 700M of memory. See also bug 32118. The test might fail because the system starts swapping, which might result in a timing problem somewhere. Anyway it's probably a good idea to use just one umc connection. [4.3 171d269ca] Bug #40727: reuse umc connection to save memory
Found it :) internetrule.py which is used by 74_radius_internetrules_priority did randomize the rule priority if the priority was set to zero for a new rule. [4.3 2b54e0774] Bug #40727: Fix bug in essential/internetrule.py [4.2 babdf02b0] Bug #40727: Fix bug in essential/internetrule.py
Test does not fail anymore. Good catch.