-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor aro-dnsmasq-pre.sh to not overwrite /etc/resolv.conf #4100
base: master
Are you sure you want to change the base?
Conversation
/azp run ci,e2e |
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What testing do you think we should do before this merges?
Do we need to make a corresponding change to what the installer puts down? My understanding is that for new clusters, the changes in our operator won't get applied until the cluster is first upgraded, and the cluster will run with what the installer has until then. |
@tsatam When the Operator is first installed, it is set to allow all reconciliations, and then that is switched to only on upgrades at the end of the install process. So, this will apply to new clusters (at the cost of a reboot + install time, so we should also update the installer wrapper). |
830431a
to
2c2ca5c
Compare
I've tested this now in a UDR + misconfigured DNS cluster (vnet dns = 172.16.0.0). I set After all nodes roll out they have the following config, which looks good
I made sure all the cluster operators were healthy, and worker machinesets can scale up. N.B. even with this change we still end up touching /etc/resolv.conf with dnsmasq.service's ExecStopPost=/bin/bash -c '/bin/mv /etc/resolv.conf.dnsmasq /etc/resolv.conf; /usr/sbin/restorecon /etc/resolv.conf' I'll fix that up to delete |
Which issue this PR addresses:
Fixes ARO-15180
What this PR does / why we need it:
We've been overwriting
/etc/resolv.conf
. NetworkManager owns this file and if NetworkManager needs to refresh it we will lose our changes. Instead, create a NetworkManager drop-in/etc/NetworkManager/conf.d/dns-servers.conf
with the node's IP.Test plan for issue:
Is there any documentation that needs to be updated for this PR?
No, but the change needs to be socialized amongst ARO SRE since it affects how nameservers are managed.
How do you know this will function as expected in production?
Testing is required.