-
Bug
-
Resolution: Done
-
Blocker
-
maistra-1.1.1
OpenShift 4.2
Found a crash in the Maistra istio-operator. Logs are as follows:
{"level":"info","ts":1588879324.5780163,"logger":"servicemeshcontrolplane-controller","msg":"updating servicemeshcontrolplane with templates","ServiceMeshControlPlane":"istio-system/minimal-install"} {"level":"info","ts":1588879324.5780597,"logger":"servicemeshcontrolplane-controller","msg":"processing smcp template maistra","ServiceMeshControlPlane":"istio-system/minimal-install"} {"level":"info","ts":1588879324.5782137,"logger":"servicemeshcontrolplane-controller","msg":"updating image names for disconnected install","ServiceMeshControlPlane":"istio-system/minimal-install"} {"level":"info","ts":1588879324.5782907,"logger":"servicemeshcontrolplane-controller","msg":"Completed ServiceMeshControlPlane processing","ServiceMeshControlPlane":"istio-system/minimal-install"} Observed a panic: "assignment to entry in nil map" (assignment to entry in nil map) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:76 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51 /usr/lib/golang/src/runtime/panic.go:679 /usr/lib/golang/src/runtime/map_faststr.go:204 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go:214 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go:199 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:497 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:439 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:520 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:553 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:126 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/controller.go:227 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134 /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88 /usr/lib/golang/src/runtime/asm_amd64.s:1357 panic: assignment to entry in nil map [recovered] panic: assignment to entry in nil map goroutine 1558 [running]: k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:58 +0x105 panic(0x199a240, 0x1e63a40) /usr/lib/golang/src/runtime/panic.go:679 +0x1b2 k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.setNestedFieldNoCopy(0x0, 0x1905ce0, 0xc000604c70, 0xc001357c00, 0x2, 0x2, 0x1, 0xc000604c70) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go:214 +0x2dd k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.SetNestedField(0x0, 0x1905ce0, 0xc000604c70, 0xc001357c00, 0x2, 0x2, 0xc001357c00, 0x2) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go:199 +0x79 github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane.(*controlPlaneInstanceReconciler).updateImageField(0xc0020da0b0, 0x0, 0x1c0c982, 0xe, 0xc000363201, 0x24, 0x0, 0x0) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:497 +0xfc github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane.(*controlPlaneInstanceReconciler).applyDisconnectedSettings(0xc0020da0b0, 0x1ed0ae0, 0xc00115c840, 0xc0003fb130, 0x7, 0xc0003fb138, 0x4, 0x0, 0x0, 0x0, ...) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:439 +0x617 github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane.(*controlPlaneInstanceReconciler).applyTemplates(0xc0020da0b0, 0x1ed0ae0, 0xc00115c840, 0xc0003fb130, 0x7, 0xc0003fb138, 0x4, 0x0, 0x0, 0x0, ...) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:520 +0x57b github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane.(*controlPlaneInstanceReconciler).renderCharts(0xc0020da0b0, 0x1ed0ae0, 0xc00115c840, 0xc0003fb216, 0xa) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:553 +0x1b2 github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane.(*controlPlaneInstanceReconciler).Reconcile(0xc0020da0b0, 0x1ed0ae0, 0xc00115c840, 0x0, 0x0, 0x0, 0x0) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/reconciler.go:126 +0x118e github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane.(*ControlPlaneReconciler).Reconcile(0xc000b0d800, 0xc0003fb0c0,0xc, 0xc0003fb090, 0xf, 0x1c00400, 0x0, 0x0, 0x0) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/pkg/controller/servicemesh/controlplane/controller.go:227 +0x867 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0002eff40, 0x44bf00) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215 +0x20a sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1() /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158 +0x36 k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1(0xc000604a20) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x5e k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000604a20, 0x3b9aca00, 0x0, 0x1, 0xc0009c1620) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134 +0xf8 k8s.io/apimachinery/pkg/util/wait.Until(0xc000604a20, 0x3b9aca00, 0xc0009c1620) /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88 +0x4d created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start /builddir/build/BUILD/OPERATOR/src/github.com/maistra/istio-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:157 +0x32e
SMCP is:
oc get smcp -o yaml apiVersion: v1 items: - apiVersion: maistra.io/v1 kind: ServiceMeshControlPlane metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"maistra.io/v1","kind":"ServiceMeshControlPlane","metadata":{"annotations":{},"name":"minimal-install","namespace":"istio-system"},"spec":{"template":"maistra"}} creationTimestamp: "2020-05-07T19:21:17Z" finalizers: - maistra.io/istio-operator generation: 1 name: minimal-install namespace: istio-system resourceVersion: "233436" selfLink: /apis/maistra.io/v1/namespaces/istio-system/servicemeshcontrolplanes/minimal-install uid: ed02d9d7-9097-11ea-b0eb-0242ac110008 spec: template: maistra version: v1.1 status: components: null conditions: - lastTransitionTime: "2020-05-07T19:21:17Z" message: Installing mesh generation 1 reason: ResourceCreated status: "False" type: Installed - lastTransitionTime: "2020-05-07T19:21:17Z" message: Installing mesh generation 1 reason: ResourceCreated status: "False" type: Reconciled - lastTransitionTime: "2020-05-07T19:21:17Z" message: Installing mesh generation 1 reason: ResourceCreated status: "False" type: Ready lastAppliedConfiguration: template: maistra version: v1.1 kind: List metadata: resourceVersion: "" selfLink: ""
SMMR is:
oc get smmr -o yaml apiVersion: v1 items: [] kind: List metadata: resourceVersion: "" selfLink: ""