-
Notifications
You must be signed in to change notification settings - Fork 412
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
OCPBUGS-48469: Fix CoreDNS static pod bring-up on cloud platforms #4830
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 |
71cc2fd
to
34e381d
Compare
@sadasu: This pull request references Jira Issue OCPBUGS-48469, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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. |
513164e
to
1bb98dc
Compare
/label acknowledge-critical-fixes-only |
/retest |
// If this is a cloud platform with DNSType set to `ClusterHosted` with | ||
// LB IPs provided, include path for their CoreDNS files | ||
if cloudPlatformLoadBalancerIPState(*config) == availableLBIPState { | ||
platformBasedPaths = append(platformBasedPaths, cloudPlatformAltDNS) |
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.
Before this, was anything processing the templates in cloud-platform-alt-dns
? Was is being done in bootstrap only?
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.
It was being done on the Bootstrap node successfully and while debugging for the CoreDNS pod not starting on the master nodes, I found this issue.
/retest-required |
|
1bb98dc
to
3a4599e
Compare
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.
One new comment for the changed invocation of runtimecfg.
Plus a test will be good. MCO has all what's needed to test if the rendered config looks good.
- "--resolvconf-path" | ||
- "/var/run/NetworkManager/resolv.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.
Why? Isn't passing /etc/resolv.conf enough?
We do it in Metal in case you run a scenario where /etc/resolv.conf is not ready when we run. But I don't see yet how you could have a cloud VM that does not have any DNS server configured at startup
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 think /etc/resolv.conf is sufficient. I was going to ask you why /var/run/NetworkManager/resolv.conf was chosen for metal platform. Thanks for clarifying.
Fix issues with CoreDNS Corefile and template path for cloud platforms when UserProvisionedDNS is enabled. Pass in the optional parameter `--resolvconf-path` to the render method in baremetal-runtimecfg for cloud platforms too. The resolv.conf file would be used to populate `DNSUpstreams` in the Corefile template.
Also add test_data containing ControllerConfig for GCP when DNStype is `ClusterHosted` and all the LB IP values are available.
60b714b
to
0060c15
Compare
@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. |
Fixes: OCPBUGS-48469
- What I did
- How to verify it
Set
UserProvisionedDNS
toEnabled
for GCP via install-config and start installation- Description for the changelog
Fixed issues with CoreDNS Corefile and template path for cloud platforms when UserProvisionedDNS is enabled.
Added test_data for GCP with all the UserProvisionedDNS configuration to better test this path.