Univention Bugzilla – Bug 42032
Apps->kix2016-> App Autotest MultiEnv -> s4,slave: some mail tests fail
Last modified: 2016-09-29 17:14:02 CEST
very strange, some early tests fail but after 7 test or so, it works
(2016-08-18 08:09:03.736432) File "/usr/lib/python2.7/poplib.py", line 350, in __init__
(2016-08-18 08:09:03.749626) raise socket.error, msg
(2016-08-18 08:09:03.749795) socket.error: [Errno 111] Connection refused
Aug 18 08:09:04 slave105 dovecot: master: Dovecot v2.2.13 starting up for imap, lmtp, sieve, pop3 (core dumps disabled)
Aug 18 08:09:04 slave105 dovecot: ssl-params: Warning: Regenerating /var/lib/dovecot/ssl-parameters.dat for ssl_dh_parameters_length=2048
Aug 18 08:09:04 slave105 dovecot: ssl-params: Generating SSL parameters
Aug 18 08:09:07 slave105 dovecot: ssl-params: SSL parameters regenerat
Why is the mailserver started after ucs-test is started?
Created attachment 7897 [details]
/var/log/ from the slave
This happens for all app tests, but only on slave/s4 + mailserver.
The mail test run fine on slave/s3 + mailserver.
Added config-registry.replog to autotest-105-app-slave-s4.cfg
It seems to be a timing issue: Dovecot ist started first with the Debian configuration. It starts a SSL parameters generation for 512 bit. Then univention-mail-dovecot changes the Dovecot-configuration and in the postinst does a restart. This happens while the 512 bit SSL parameters generation is still running. It triggers a 1024 bit generation, followed by a reload and the start of a 2048 bit generation in the background.
There seems to be a difficult-to-reproduce situation during all this, that leads to the Dovecot-server not running at all.
The joinscript later does only a reload, which leads to nothing.
This situation must be avoided, especially in appliances. A possible solution would be to add a "invoke-rc.d dovecot restart" to the end of the join script.
Yep, i added
service dovecot stop
service dovecot start
to the s4/slave job cfg before the start of ucs-test. Now all mail tests succeeded.
+1 add dovecot restart to univention-mail-dovecot join script
r72435: Dovecot is restarted at the end of the join script (+ merge to 4.2)
r72436: advisory build# update
OK - app test successful
OK - univention-mail-dovecot, dovecot restart in join script
OK - yaml (small fix, r72522 univention-mail-dovecot.yaml)