#3298 Make DNS error messages more clear - say exactly what is wrong
Closed: wontfix 4 years ago Opened 10 years ago by pspacek.

Current IPA can spit error message like

Host does not have corresponding DNS A record

even if the record is present in LDAP. Current DNS checks use regular DNS query (which is good) rather than direct LDAP search (which should be stated in error message). Similar error messages create confusion in cases where DNS resolution is broken for some reason.

I propose following error message format:

Host '%s' does not have corresponding DNS A record (DNS query sent from '%s')

Moving my tickets back to free-to-take pool.

Moving more imporant usability improvements back to NEEDS_TRIAGE.

Acked, we will do it earlier.

ipa-replica-install could be improved too:

# ipa-replica-install --setup-ca --setup-dns --forwarder=10.34.47.1 -p root4lab -w root4lab replica-info-vm-100.idm.lab.eng.brq.redhat.com.gpg

Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.

Unexpected error - see /var/log/ipareplica-install.log for details:
HostReverseLookupError: Unable to resolve the reverse ip address, check /etc/hosts or DNS name resolution

The information is available in logs so there is no reason not to print it to standard output:

2014-09-23T12:11:50Z DEBUG Check if vm-133.idm.lab.eng.brq.redhat.com is not a CNAME
2014-09-23T12:11:50Z DEBUG Check reverse address of 10.34.47.133
2014-09-23T12:11:50Z DEBUG Check failed: [Errno 1] Unknown host
2014-09-23T12:11:50Z DEBUG   File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 638, in run_script
    return_value = main_function()

  File "/sbin/ipa-replica-install", line 543, in main
    installutils.verify_fqdn(config.master_host_name, options.no_host_dns)

  File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 169, in verify_fqdn
    raise HostReverseLookupError("Unable to resolve the reverse ip address, check /etc/hosts or DNS name resolution")

2014-09-23T12:11:50Z DEBUG The ipa-replica-install command failed, exception: HostReverseLookupError: Unable to resolve the reverse ip address, check /etc/hosts or DNS name resolution

This would be nice for better troubleshooting.

FreeIPA 4.2.1 was released, moving to 4.2.x.

Metadata Update from @pspacek:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.5 backlog

6 years ago

Metadata Update from @mbasti:
- Assignee reset

6 years ago

Thank you taking time to submit this request for FreeIPA. Unfortunately this bug was not given priority and the team lacks the capacity to work on it at this time.

Given that we are unable to fulfil this request I am closing the issue as wontfix. To request re-consideration of this decision please reopen this issue and provide additional technical details about its importance to you.

Metadata Update from @rcritten:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata