Details
-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.10.z
-
None
-
Moderate
-
2
-
Sprint 230, Sprint 231, Sprint 232, Sprint 233
-
Rejected
-
-
-
Bug Fix
Description
Description of problem:
when fs full, update-dns-resolver fails to build a proper /etc/hosts, resulting in /etc/hosts only containing the openshift-generated-node-resolver lines, missing the localhost lines. This causes issues on pods having hostNetwork: true like openstack-cinder-csi-driver-controller
Version-Release number of selected component (if applicable):
OpenShift 4.10.39
How reproducible:
See: https://github.com/openshift/cluster-dns-operator/blob/a5ea3fcb7be49a12115bd6648403df3d65661542/assets/node-resolver/update-node-resolver.sh
Steps to Reproduce:
1. make sure the file system is full when running the cp at line 13 2. 3.
Actual results:
/etc/hosts is missing the localhost lines
Expected results:
/etc/hosts should contain the localhost lines
Additional info: