-
Notifications
You must be signed in to change notification settings - Fork 392
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
WIP: OCPBUGS-29067: Set /etc/NetworkManager/conf.d/dns-servers.conf for GCP #4367
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sadasu The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
745b62e
to
09b1a30
Compare
echo "Added by OpenShift" >> /etc/NetworkManager/conf.d/dns-servers.conf | ||
echo "[global-dns-domain-*]" >> /etc/NetworkManager/conf.d/dns-servers.conf | ||
echo "servers=$(ip route get 8.8.8.8 | head -1 | cut -d' ' -f7),169.254.169.254" >> /etc/NetworkManager/conf.d/dns-servers.conf |
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.
If you're changing DNS settings after NM is running you probably need to restart/reload it to pick up the new values. We've also used "nmcli general reload dns-rc" to force reconfiguration of DNS stuff, but I'm not positive that will do what you need here. It may be less invasive than a complete service restart though.
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.
I'll start with "nmcli general reload dns-rc" and update based on testing.
templates/common/gcp/files/usr-local-bin-update-dns-server.yaml
Outdated
Show resolved
Hide resolved
templates/common/gcp/files/usr-local-bin-update-dns-server.yaml
Outdated
Show resolved
Hide resolved
templates/common/gcp/files/usr-local-bin-update-dns-server.yaml
Outdated
Show resolved
Hide resolved
47cc754
to
6d21b37
Compare
@sadasu: This pull request references Jira Issue OCPBUGS-29067, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@sadasu: This pull request references Jira Issue OCPBUGS-29067, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (yunjiang@redhat.com), skipping review request. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
templates/common/gcp/files/usr-local-bin-update-dns-server.yaml
Outdated
Show resolved
Hide resolved
c00b188
to
4269c52
Compare
/test ci/prow/images |
@sadasu: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test images |
/test e2e-hypershift |
@sadasu: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
- What I did
Added a update-dns-server script that adds DNS servers to /etc/NetworkManager/conf.d/dns-servers.conf. This script is run as part of gcp-update-dns.service which is also added as part of this PR. This service should run when the DNSType on the GCP platform is set to "ClusterHosted".
- How to verify it
Start an IPI Install on GCP with userProvisionedDNS=true
- Description for the changelog
Creates a gcp-update-dns.service that updates DNS configuration when GCP's DNSType is "ClusterHosted"