#9560 installutils.get_server_ip_address fails when setup_dns is set to False
Closed: invalid by somerandomhatter. Opened by somerandomhatter.

Issue

installutils.get_server_ip_address fails when setup_dns is set to False

Steps to Reproduce

  1. Execute installutils.get_server_ip_address with appropriate parameters setting "setup_dns" to False
  2. Receive ScriptError exception;
    Error: the hostname resolves to IP address(es) that are different
    from those provided on the command line. Please fix your DNS
    or /etc/hosts file and restart the installation.
    Provided but not resolved address(es):

Actual behavior

SciptError exception thrown

Expected behavior

List of IP addresses to be returned

Version/Release/Distribution

installutil code retrieved from GitHub, commit ID 0e0331529921f9e7e436ef9d176d6fd12ec4cc46

Additional info:

The issue is due to the comparison of set(ip_addresses) and set(ips) on line 554, the ips object is a list of ipautil.CheckedIPAddress objects and ip_addresses is a list of strings so of course the comparison will always fail.

Setting setup_dns to True avoids this code path (and also explicitly sets ips = ip_addresses)


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

Metadata