harvester / harvester

Open source hyperconverged infrastructure (HCI) software
https://harvesterhci.io/
Apache License 2.0
3.87k stars 327 forks source link

[BUG] DNS servers offered by DHCP server are not set in PXE boot installation #1214

Closed bk201 closed 3 years ago

bk201 commented 3 years ago

Describe the bug The DNS servers offered by the DHCP server are not configured in the PXE boot installation time. If the Harvester configuration file is served from a server that needs name resolution, the installation will fail.

To Reproduce Steps to reproduce the behavior:

  1. Create a DHCP server to offer IPs and DNS servers for PXE boot installation.
  2. Perform PXE boot installation. The DNS servers are not configured correctly:
    rancher:~ # cat /etc/resolv.conf
    ### /etc/resolv.conf is a symlink to /var/run/netconfig/resolv.conf
    ### autogenerated by netconfig!
    #
    # Before you change this file manually, consider to define the
    # static DNS configuration using the following variables in the
    # /etc/sysconfig/network/config file:
    #     NETCONFIG_DNS_STATIC_SEARCHLIST
    #     NETCONFIG_DNS_STATIC_SERVERS
    #     NETCONFIG_DNS_FORWARDER
    # or disable DNS configuration updates via netconfig by setting:
    #     NETCONFIG_DNS_POLICY=''
    #
    # See also the netconfig(8) manual page and other documentation.
    #
    ### Call "netconfig update -f" to force adjusting of /etc/resolv.conf.

Expected behavior The DNS servers provided by the DHCP server should be configured in the /etc/resolv.conf file.

Support bundle

Environment:

Additional context

guangbochen commented 3 years ago

@guangyee can u guys please help to verify if this is fixed in the master-head.iso, thanks

juadk commented 3 years ago

I was impacted by this issue and now it's ok with the last master-head.iso. /etc/resolt.confis filled with the good DNS information and I'm able to download the harvester ISO and the config file using the DNS name of my webserver.