zos icon indicating copy to clipboard operation
zos copied to clipboard

networkd: extend dhcp timeout on failure

Open maxux opened this issue 1 year ago • 2 comments

The DHCP request always tries for 20 seconds and then timeouts. https://github.com/threefoldtech/zos/blob/main/pkg/network/dhcp/dhcp.go#L50-L51

On networks that have switches with spanning-tree enabled or anything related, these ports can take several seconds before starting to forward and 20 seconds after the port is brought up can be too short.

Just extending this timeout would increase boot time for everybody, which is not the best idea either. I think a good compromise would be testing with a small timeout first then increase it if it fails.

maxux avatar Sep 24 '24 09:09 maxux

Can this wait till the next release? or is it a blocker?

xmonader avatar Sep 30 '24 13:09 xmonader

AFAIK this can wait, farmer affected fixed their switch.

maxux avatar Oct 01 '24 12:10 maxux

azmy is advising against adding another retry mechanism on top of udhcpc command check https://github.com/threefoldtech/zos/pull/2450#pullrequestreview-2407711981

Eslam-Nawara avatar Nov 03 '24 09:11 Eslam-Nawara