Bug 42179 - NoNameservers exception in setup wizard validation
NoNameservers exception in setup wizard validation
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Setup wizard
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4
Assigned To: Florian Best
Erik Damrose
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-30 12:44 CEST by Florian Best
Modified: 2016-11-08 13:26 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.206
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-08-30 12:44:12 CEST
Version: 4.1-3 errata234 (Vahr)

Remark: What am I getting wrong?

Traceback(c3d4d15fc5d458505cba2bcf766a4e89):
Execution of command 'setup/validate wizard' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 283, in execute
    function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 513, in validate
    guessed_domain = guess_domain(obj)
  File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 499, in guess_domain
    guessed_domain = util.get_ucs_domain(nameserver)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 908, in get_ucs_domain
    domain = get_domain(nameserver)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 914, in get_domain
    fqdn = get_fqdn(nameserver)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 925, in get_fqdn
    reverse_lookup = resolver.query(reverse_address, 'PTR')
  File "/usr/lib/python2.7/dist-packages/dns/resolver.py", line 772, in query
    raise NoNameservers
NoNameservers
Comment 1 Florian Best univentionstaff 2016-10-24 17:54:26 CEST
Simply catch every DNSException.

r73518 | Changelog Bug #42179

univention-system-setup (9.0.5-1):
r73517 | Bug #42179: Catch NoNameservers exception
Comment 2 Florian Best univentionstaff 2016-10-24 17:57:51 CEST
UCS 4.2 merge:

univention-system-setup (10.0.0-12):
r73519 | Bug #42179: Catch NoNameservers exception
Comment 3 Erik Damrose univentionstaff 2016-11-03 15:21:24 CET
OK: catch nonameserver exception
OK: merge to ucs 4.2
OK: I slightly adapted the changelog entry

Verified
Comment 4 Stefan Gohmann univentionstaff 2016-11-08 13:26:39 CET
UCS 4.1-4 has been released:
 https://docs.software-univention.de/release-notes-4.1-4-en.html
 https://docs.software-univention.de/release-notes-4.1-4-de.html

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