Skip to content

Compare DHCP config based on its effect#6

Open
milan-zededa wants to merge 2 commits intomasterfrom
dhcp-config-comparison
Open

Compare DHCP config based on its effect#6
milan-zededa wants to merge 2 commits intomasterfrom
dhcp-config-comparison

Conversation

@milan-zededa
Copy link
Copy Markdown
Owner

In situations where customers use override.json, we can sometimes see that going from override to zedagent DPC may trigger unecessary restarts of dhcpcd instances, resulting in interfaces giving up on their existing IP addresses and immediately asking for new ones. This can for example break an ongoing download process.
These restarts are unecessary in the sense that arguments of restarted dhcpcd instances might have not actually changed. This can be prevented by improving the Equal method for DHCP config, considering two configs as equivalent if their effect is the same (i.e. same dhcpcd args).

Signed-off-by: Milan Lenco milan@zededa.com

Multiple statically selected DNS servers should be configured for dhcpcd
as a one-line "--static domain_name_servers" command line option, with
space-separated DNS server IP addresses. Putting DNS servers individually
is not correct, dhcpcd will only use the last entry.

Additionally, since output from dhcpcd is used to feed resolv.conf
(even with static IP config), it makes sense to put to same data
into DeviceNetworkStatus, as opposed to just copying DNS servers
from DPC, otherwise it can be confusing during debugging.

Signed-off-by: Milan Lenco <milan@zededa.com>
In situations where customers use override.json, we can sometimes see
that going from override to zedagent DPC may trigger unecessary restarts
of dhcpcd instances, resulting in interfaces giving up on their existing
IP addresses and immediately asking for new ones. This can for example
break an ongoing download process.
These restarts are unecessary in the sense that arguments of restarted
dhcpcd instances might have not actually changed. This can be prevented
by improving the Equal method for DHCP config, considering two configs
as equivalent if their effect is the same (i.e. same dhcpcd args).

Signed-off-by: Milan Lenco <milan@zededa.com>
milan-zededa pushed a commit that referenced this pull request May 22, 2023
initialize LinuxDpcReconciler KubeClusterMode in nim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant