Bug 2030943 - Windows Containers on Windows Nodes get assigned the DNS Server IP “172.30.0.10”, which is wrong, if the default kubernetes subnet is not used
Summary: Windows Containers on Windows Nodes get assigned the DNS Server IP “172.30.0....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Windows Containers
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.8.z
Assignee: jvaldes
QA Contact: Ronnie Rasouli
URL:
Whiteboard:
Depends On: 2020350
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-10 03:03 UTC by OpenShift BugZilla Robot
Modified: 2022-11-09 13:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Hard-coded Cluster DNS (172.30.0.10) in kubelet configuration template. Consequence: Windows Containers on Windows Nodes get assigned a wrong DNS Server IP, hence DNS resolution does not work. Fix: Remove the hard-coded Cluster DNS information and parametrize the value as a command-line argument. Result: Windows Containers on Windows Nodes get assigned a valid DNS Server IP and DNS resolution works for Windows workloads.
Clone Of:
Environment:
Last Closed: 2022-11-09 13:11:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift windows-machine-config-bootstrapper pull 311 0 None Merged [release-4.8] Bug 2030943: Parametrize Cluster DNS 2022-02-23 21:06:25 UTC
Github openshift windows-machine-config-operator pull 878 0 None Merged [release-4.8] Bug 2030943: Get and pass Cluster DNS to wmcb.exe 2022-02-25 13:18:08 UTC
Red Hat Product Errata RHBA-2022:7076 0 None None None 2022-11-09 13:11:47 UTC

Comment 1 Ronnie Rasouli 2022-03-06 10:31:42 UTC
oc get network cluster -o yaml
apiVersion: config.openshift.io/v1
kind: Network
metadata:
  creationTimestamp: "2022-03-06T07:36:50Z"
  generation: 2
  name: cluster
  resourceVersion: "3575"
  uid: e2b65b50-c594-46b4-9bd6-1f55aa244999
spec:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  externalIP:
    policy: {}
  networkType: OVNKubernetes
  serviceNetwork:
  - 172.30.0.0/16
status:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  clusterNetworkMTU: 8901
  networkType: OVNKubernetes
  serviceNetwork:

"clusterDNS":["172.30.0.10"]

Comment 4 errata-xmlrpc 2022-11-09 13:11:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenShift support for Windows Containers 3.1.2 product release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7076


Note You need to log in before you can comment on or make changes to this bug.