Red Hat Bugzilla – Bug 1015008
rhevm-manage-domains -action=add fail completely with only IPv6 DNS servers in /etc/resolv.conf
Last modified: 2016-02-10 14:21:57 EST
I was unable to find the RHEV module in bugzilla, so I try to report it here. Please reassign if it is the wrong bug metadata.
Description of problem:
I discovered this problem when trying to use RHEV in an IPv6 only environment. The RHEV master maskine was set up with IPv4 and IPv6 addresses, and its /etc/resolv.conf was pointing to the networks DNS servers, with only IPV6 addresses listed.
rhevm-manage-domains -action=add -domain=internal.network.no -provider=activeDirectory -user=rhevad -interactive
The program would fail with the message "No KDC can be obtained for domain internal.network.no". The cause was that the program have its own DNS resolver implementation reading /etc/resolv.conf, and this implementation do not understand IPv6 addresses in the nameserver lines in /etc/resolv.conf.
Please fix rhevm-manage-domains to handle IPv6 DNS servers (and the rest of RHEV too, of course), or at least give a more understanding error message
when the home made DNS resolver find nameserver lines it do not understand.
We managed to work around this problem by assigning IPv4 addresses to the DNS servers, and changing /etc/resolv.conf on the RHEVM machine to use these addresses.
moving to rhev-m. i suggest also opening a support ticket with red hat
Enclosing the resolve.conf ipv6 address in square brackets seems to do the trick.
I tried the below and rhevm-manage-domains worked fine
The code that reads the resolv.conf file is in JDK and looks like there could be an issue there.
moved to on QA please test with instructions from comment 3
Closing as part of 3.4.0