harvester-installer icon indicating copy to clipboard operation
harvester-installer copied to clipboard

Retry DHCP option 57 default value when failure happens

Open w13915984028 opened this issue 7 months ago • 21 comments

Problem:

Harvester installer reported DHCP failed when the DHCP server was running on a Windows server.

Solution:

The DHCP client used by Harvester, is using value 1500 for option 57. It is not wrong, but as RFC only defined the min value 576, did not define the max value limitation, 1500 may be refused by some DHCP servers.

Give DHCP client an addtional try with the generally used DHCP option 57 values.

Related Issue:

Partially related to https://github.com/harvester/harvester/issues/3428

Test plan:

Install Harvester with dhcp mode IP, it should get IP successfully.

image

The DHCP client function on new cluster worked as expected

 Expiry Time           MAC address         Protocol   IP address           Hostname   Client ID or DUID
------------------------------------------------------------------------------------------------------------------------------------------------
 2024-07-18 20:05:26   52:54:00:6e:5c:2a   ipv4       192.168.122.131/24   harv31     ff:00:6e:5c:2a:00:01:00:01:2e:2b:fe:c8:52:54:00:6e:5c:2a

w13915984028 avatar Jul 18 '24 14:07 w13915984028