Bug 1955632 - CoreDNS resolution failure for external hostnames with "A: dns: overflow unpacking uint16"
Summary: CoreDNS resolution failure for external hostnames with "A: dns: overflow unpa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.5
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 4.6.z
Assignee: Stephen Greene
QA Contact: jechen
URL:
Whiteboard:
Depends On: 1953097
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-30 14:51 UTC by Stephen Greene
Modified: 2022-11-09 06:12 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Cluster upstream resolver returns DNS response that exceeds 512 bytes via UDP. Consequence: CoreDNS may return SERVFAIL and or log various error messages, sometimes forcing the client to retry over TCP. Fix: Enable the CoreDNS bufisze plugin with a UDP buffer size of 1232 bytes. Result: CoreDNS is less likely to return SERVFAIL or present any runtime errors when handling large DNS responses via UDP. Also, UDP packet fragmentation is less likely to occur.
Clone Of: 1953097
Environment:
Last Closed: 2021-05-26 06:27:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-dns-operator pull 272 0 None open [release-4.6] Bug 1955632: Corefile: Enable bufsize plugin for all servers 2021-05-03 17:24:31 UTC
Red Hat Product Errata RHBA-2021:1565 0 None None None 2021-05-26 06:28:06 UTC

Comment 2 jechen 2021-05-16 22:15:20 UTC
Verified in 4.6.0-0.nightly-2021-05-14-175757

$ oc get clusterversions.config.openshift.io 
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.6.0-0.nightly-2021-05-14-175757   True        False         32m     Cluster version is 4.6.0-0.nightly-2021-05-14-175757


# verified bufsize in default DNS
$ oc -n openshift-dns get cm/dns-default -oyaml
apiVersion: v1
data:
  Corefile: |
    .:5353 {
        bufsize 1232    <--verified the fix by https://github.com/openshift/cluster-dns-operator/pull/272
        errors
        health {
            lameduck 20s
        }


# created a test pod as custom DNS server, added custom forwarding into coreDNS, verified bufsize in custom DNS
$ oc create -f https://raw.githubusercontent.com/lihongan/test-dnsmasq/master/test-dnsmasq.json 
pod/test-dnsmasq created


$ oc get pod -owide
NAME           READY   STATUS    RESTARTS   AGE   IP            NODE                                       NOMINATED NODE   READINESS GATES
test-dnsmasq   1/1     Running   0          27s   10.129.2.15   ci-ln-f245bgt-f76d1-ghn6t-worker-c-2hkjt   <none>           <none>


$ oc edit dns.operator/default 
<--snip-->
spec:
  servers:
  - forwardPlugin:
      upstreams:
      - 10.129.2.15
    name: test
    zones:
    - mytest.ocp
<--snip-->


$ oc get cm dns-default -n openshift-dns -o yaml
apiVersion: v1
data:
  Corefile: |
    # test
    mytest.ocp:5353 {
        forward . 10.129.2.15
        errors
        bufsize 1232   <--verified the fix by https://github.com/openshift/cluster-dns-operator/pull/272
    }
    .:5353 {
        bufsize 1232   <--verified the fix by https://github.com/openshift/cluster-dns-operator/pull/272
        errors
        health {
            lameduck 20s
        }
<--snip-->

Comment 5 errata-xmlrpc 2021-05-26 06:27:55 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 (OpenShift Container Platform 4.6.30 bug fix update), 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-2021:1565


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