Bug 46382 - 10_ldap.27reconnect_uldap_2.test fails on 4.3
10_ldap.27reconnect_uldap_2.test fails on 4.3
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Felix Botner
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-23 12:59 CET by Felix Botner
Modified: 2018-03-14 14:38 CET (History)
0 users

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2018-02-23 12:59:05 CET

    
Comment 1 Felix Botner univentionstaff 2018-02-23 13:04:41 CET
fails in jenkins with

arning: slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[2018-02-22 20:29:26.341994] Restarting slapd again
(2018-02-22 20:29:26.435067) Warning: slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[2018-02-22 20:29:29.807670] Restart finished
[2018-02-22 20:29:32.811168] Restarting slapd
(2018-02-22 20:29:32.849860) Warning: slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[2018-02-22 20:29:39.252409] Restarting slapd again
(2018-02-22 20:29:39.314487) Warning: slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[2018-02-22 20:29:42.703216] Restart finished
[2018-02-22 20:29:42.727462] Starting test set with connection <univention.admin.uldap.access instance at 0x7f81a042d8c0>
[2018-02-22 20:29:42.727565] Testing lo.search operation...
[2018-02-22 20:29:45.735266] Restarting slapd
(2018-02-22 20:29:45.779325) Warning: slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[2018-02-22 20:29:45.903465] Traceback (most recent call last):
[2018-02-22 20:29:45.903506]   File "27reconnect_uldap_2", line 71, in main
[2018-02-22 20:29:45.903520]     lo.search(filter=filter_s)[0][0]
[2018-02-22 20:29:45.903533]   File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 437, in search
[2018-02-22 20:29:45.903545]     raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
[2018-02-22 20:29:45.903556] ldapError: Server is unavailable
[2018-02-22 20:29:45.903619] 
[2018-02-22 20:29:45.903725] ### FAIL ###
[2018-02-22 20:29:45.903782] lo.search() is not restart-safe with <univention.admin.uldap.access instance at 0x7f81a042d8c0> follow_referral=False: Server is unavailable
[2018-02-22 20:29:45.903835] ###      ###

but i could not reproduce this, but because of

 "ice changed on disk. Run 'systemctl daemon-reloa"

i added a systemctl daemon-reload to the delayed_slapd_restart() in the test, also the slapd restart is changed to stop/start, systemd sometimes can't handle the restarts, so better stop and start

wait for the jenkins tests ...
Comment 2 Felix Botner univentionstaff 2018-02-26 17:45:56 CET
9ca2197a02d0141b94eb95082700b55d012f4b93
stop/start slapd  in 26reconnect_univention_ldapsearch too
Comment 3 Felix Botner univentionstaff 2018-02-27 12:48:50 CET
seems to be fixed
Comment 4 Stefan Gohmann univentionstaff 2018-02-27 13:26:02 CET
(In reply to Felix Botner from comment #3)
> seems to be fixed

Yes: http://jenkins.knut.univention.de:8080/job/UCS-4.3/job/UCS-4.3-0/job/AutotestJoin/80/testReport/
Comment 5 Stefan Gohmann univentionstaff 2018-03-14 14:38:44 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".