Closed philipp1992 closed 3 years ago
this does not happen, if we dont set the ingressVIP, but use an external loadbalancer.
This prepender would add CoreDNS entry, but .cluster.local
resolves won't work on host
It seems CoreDNS config has been updated in latest stable - https://github.com/openshift/machine-config-operator/commit/4c5fcbea0bb6694e4192a8dd81ffa471f8731ceb - let see if that has a fix
This happened on openshift-install 4.5.0-0.okd-2020-08-12-020541 using ovirt IPI when I did not set the correct value for machineNetwork in the install-config ... I got this in NetworkManager log:
NetworkManager[694]:
[1597309259.6449] dispatcher: (4) /etc/NetworkManager/dispatcher.d/30-resolv-prepender failed (failed): Script '/etc/NetworkManager/dispatcher.d/30-resolv-prepender' exited with error status 125.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen
.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Exclude this issue from closing again by commenting /lifecycle frozen
.
/close
@openshift-bot: Closing this issue.
We are using OKD4.5-GA release with vsphere cloud provider.
In our installer.yaml we have set ingressVIP and apiVIP.
Using this installation parameters, the installer will generate a 00-worker and 00-master machineconfig, that includes the following file:
/etc/NetworkManager/dispatcher.d/30-resolv-prepender
content of this file:
This file will lead to NetworkManager creating the following /etc/resolv.conf on our FCOS machines:
search x x x x our-cluster-id.our-base-domain
This resolv.conf will lead to all pods resolving any DNS entry to our ingressVIP, because the will append the wildcard dns domain to any hostname.
The $DOMAIN variable in the script should not include the cluster-id-base-domain, but just the DNS suffix or nothing at all.