When an asterisk (*) is used for noProxy in Openshift Container Platform 4, machine-config-operator pod crashes with panic.

Solution Verified - Updated -

Issue

When an asterisk (*) is used for noProxy, i.e. bypass proxy for all destination, machine-config-operator pod crashes with the following message:

W0701 19:22:36.948626       1 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
E0701 19:22:37.001258       1 runtime.go:78] Observed a panic: &errors.errorString{s:"yaml: line 51: did not find expected alphabetic or numeric character"} (yaml: line 51: did not find expected alphabetic or numeric character)
goroutine 269 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic(0x16cfda0, 0xc0002698b0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x95
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x89
panic(0x16cfda0, 0xc0002698b0)
        /usr/lib/golang/src/runtime/panic.go:969 +0x1b9
github.com/openshift/machine-config-operator/lib/resourceread.ReadDaemonSetV1OrDie(0xc00396a000, 0xb6c, 0x151d, 0xc00396a000)
        /go/src/github.com/openshift/machine-config-operator/lib/resourceread/apps.go:33 +0x18c
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).syncMachineConfigDaemon(0xc0006a4000, 0xc0008a7880, 0xc039bccaa4, 0x1ceb74e8e0f)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/sync.go:483 +0x5e5
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).syncAll(0xc0006a4000, 0xc003b87cb8, 0x6, 0x6, 0x168a901, 0x414bdb)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/sync.go:70 +0x17c
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).sync(0xc0006a4000, 0xc0003ff3b0, 0x30, 0x0, 0x0)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/operator.go:347 +0x425
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).processNextWorkItem(0xc0006a4000, 0x203000)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/operator.go:303 +0xd2
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).worker(0xc0006a4000)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/operator.go:292 +0x2b
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc0009a2710)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x5f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc0009a2710, 0x1ad20e0, 0xc000bc67b0, 0x1, 0xc00059c1e0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xad
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc0009a2710, 0x3b9aca00, 0x0, 0x1, 0xc00059c1e0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x98
k8s.io/apimachinery/pkg/util/wait.Until(0xc0009a2710, 0x3b9aca00, 0xc00059c1e0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x4d
created by github.com/openshift/machine-config-operator/pkg/operator.(*Operator).Run
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/operator.go:261 +0x3d7
panic: yaml: line 51: did not find expected alphabetic or numeric character [recovered]
        panic: yaml: line 51: did not find expected alphabetic or numeric character

goroutine 269 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0x10c
panic(0x16cfda0, 0xc0002698b0)
        /usr/lib/golang/src/runtime/panic.go:969 +0x1b9
github.com/openshift/machine-config-operator/lib/resourceread.ReadDaemonSetV1OrDie(0xc00396a000, 0xb6c, 0x151d, 0xc00396a000)
        /go/src/github.com/openshift/machine-config-operator/lib/resourceread/apps.go:33 +0x18c
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).syncMachineConfigDaemon(0xc0006a4000, 0xc0008a7880, 0xc039bccaa4, 0x1ceb74e8e0f)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/sync.go:483 +0x5e5
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).syncAll(0xc0006a4000, 0xc003b87cb8, 0x6, 0x6, 0x168a901, 0x414bdb)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/sync.go:70 +0x17c
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).sync(0xc0006a4000, 0xc0003ff3b0, 0x30, 0x0, 0x0)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/operator.go:347 +0x425
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).processNextWorkItem(0xc0006a4000, 0x203000)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/operator.go:303 +0xd2
github.com/openshift/machine-config-operator/pkg/operator.(*Operator).worker(0xc0006a4000)
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/operator.go:292 +0x2b
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc0009a2710)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x5f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc0009a2710, 0x1ad20e0, 0xc000bc67b0, 0x1, 0xc00059c1e0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xad
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc0009a2710, 0x3b9aca00, 0x0, 0x1, 0xc00059c1e0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x98
k8s.io/apimachinery/pkg/util/wait.Until(0xc0009a2710, 0x3b9aca00, 0xc00059c1e0)
        /go/src/github.com/openshift/machine-config-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x4d
created by github.com/openshift/machine-config-operator/pkg/operator.(*Operator).Run
        /go/src/github.com/openshift/machine-config-operator/pkg/operator/operator.go:261 +0x3d7

Environment

  • Openshift Container Platform 4 [OCP]
  • Proxy environment.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content