Univention Bugzilla – Bug 37763
DNS timeout when opening school installer prevents installing UCS@school
Last modified: 2015-02-27 15:19:41 CET
+++ This bug was initially created as a clone of Bug #32050 +++ Ticket#2013072321001826 If the DNS-Lookup for the DC-Master fails, the UMC configuration wizard reports: --- UCS@school can only be installed on the system roles master domain controller, backup domain controller, or slave domain controller. --- ==> /var/log/univention/management-console-module-schoolinstaller.log <== 24.07.13 11:55:33.165 MODULE ( PROCESS ) : Execution of command 'schoolinstaller/query' has failed: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 204, in execute func( request ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 282, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 384, in _response for res in function(self, iterator, *nones): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 266, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolinstaller/__init__.py", line 468, in query 'guessed_master': get_master_dns_lookup(), File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolinstaller/__init__.py", line 152, in get_master_dns_lookup result = dns.resolver.query(query, 'SRV') File "/usr/lib/pymodules/python2.6/dns/resolver.py", line 732, in query return get_default_resolver().query(qname, rdtype, rdclass, tcp, source) File "/usr/lib/pymodules/python2.6/dns/resolver.py", line 608, in query timeout = self._compute_timeout(start) File "/usr/lib/pymodules/python2.6/dns/resolver.py", line 541, in _compute_timeout raise Timeout Timeout ==> /var/log/univention/management-console-web-server.log <== 24.07.13 11:55:33.167 MAIN ( PROCESS ) : CPCommand (172.25.10.250:38457) response status code: 591 24.07.13 11:55:33.168 MAIN ( PROCESS ) : CPCommand (172.25.10.250:38457) response message: Execution of command 'schoolinstaller/query' has failed: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 204, in execute func( request ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 282, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 384, in _response for res in function(self, iterator, *nones): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 266, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolinstaller/__init__.py", line 468, in query 'guessed_master': get_master_dns_lookup(), File "/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolinstaller/__init__.py", line 152, in get_master_dns_lookup result = dns.resolver.query(query, 'SRV') File "/usr/lib/pymodules/python2.6/dns/resolver.py", line 732, in query return get_default_resolver().query(qname, rdtype, rdclass, tcp, source) File "/usr/lib/pymodules/python2.6/dns/resolver.py", line 608, in query timeout = self._compute_timeout(start) File "/usr/lib/pymodules/python2.6/dns/resolver.py", line 541, in _compute_timeout raise Timeout Timeout 24.07.13 11:55:33.168 MAIN ( PROCESS ) : CPCommand (172.25.10.250:38457) response result: None
I got another error after I set the ucr variable nameserver1 to an invalid address and still had a valid nameserver2: message: "Eine Option für install hat den falschen Typ: 1 Fehler aufgetreten" result: {master:Wert ist ungültig} master: "Wert ist ungültig" status: 409 Florian adapted the following lines in schoolinstaller/__init__.py: 100 class HostSanitizer(StringSanitizer): + 101 def _sanitize(self, value, name, further_args): + 102 if not value and ucr['server/role'] == 'domaincontroller_master': # or further_args.get('setup') in ('singlemaster', 'multimaster'): + 103 return ''
Fixed, a warning is displayed, too. svn r58301
as discussed: - adapted the first sentence that the dns lookup failed (no maybe ...) - set the timeout to 6 - show the warning only on slaves (at the credentials, fqdn)
(In reply to Alexander Kramer from comment #3) > as discussed: > > - adapted the first sentence that the dns lookup failed (no maybe ...) > - set the timeout to 6 > - show the warning only on slaves (at the credentials, fqdn) done, package builds.
OK - debian/changelog OK - changelog OK - warning message -- adpated first sentence: Could not find the DNS entry for the domaincontroller master. -- is only displayed on system role slave OK - set Timeout to 6seconds: resolver.lifetime = 6.0
UCS@school 4.0 v2 has been released: http://docs.univention.de/release-notes-ucsschool-4.0v2-de.html If this error occurs again, please use "Clone This Bug".