-
Bug
-
Resolution: Done
-
Major
-
None
-
4.19
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
While investigating the current samples operator install issue, I found a panic in this job: https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-ci-4.19-upgrade-from-stable-4.18-e2e-gcp-ovn-upgrade/1900430675614371840
Following is the error message:
fatal error: concurrent map iteration and map write
goroutine 191 [running]:
github.com/openshift/cluster-samples-operator/pkg/stub.(*Handler).createSamples(0xc00069ac60, 0xc000a47400, 0x0, 0x0, 0xc000bb1c50, 0xc000bb1c20)
/go/src/github.com/openshift/cluster-samples-operator/pkg/stub/handler.go:1209 +0x4d6
github.com/openshift/cluster-samples-operator/pkg/stub.(*Handler).Handle(0xc00069ac60, {{0x29d5f50?, 0xc000604a00?}, 0x48?})
/go/src/github.com/openshift/cluster-samples-operator/pkg/stub/handler.go:940 +0x1b54
github.com/openshift/cluster-samples-operator/pkg/operator.(*Controller).handleWork(0xc0006728c0, {0x29cce60, 0x3fd45e0}, {0x20b54c0, 0xc000981360})
/go/src/github.com/openshift/cluster-samples-operator/pkg/operator/controller.go:304 +0x329
github.com/openshift/cluster-samples-operator/pkg/operator.(*queueWorker).workqueueProcessor.func1(0xc00088a0c0, {0x20b54c0, 0xc000981360})
/go/src/github.com/openshift/cluster-samples-operator/pkg/operator/controller.go:386 +0x26d
github.com/openshift/cluster-samples-operator/pkg/operator.(*queueWorker).workqueueProcessor(0xc00088a0c0)
/go/src/github.com/openshift/cluster-samples-operator/pkg/operator/controller.go:393 +0x6f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x30?)
/go/src/github.com/openshift/cluster-samples-operator/vendor/k8s.io/apimachinery/pkg/util/wait/backoff.go:226 +0x33
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000a12000, {0x29cd540, 0xc00088a930}, 0x1, 0xc0000f4770)
/go/src/github.com/openshift/cluster-samples-operator/vendor/k8s.io/apimachinery/pkg/util/wait/backoff.go:227 +0xaf
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000a12000, 0x3b9aca00, 0x0, 0x1, 0xc0000f4770)
/go/src/github.com/openshift/cluster-samples-operator/vendor/k8s.io/apimachinery/pkg/util/wait/backoff.go:204 +0x7f
k8s.io/apimachinery/pkg/util/wait.Until(...)
/go/src/github.com/openshift/cluster-samples-operator/vendor/k8s.io/apimachinery/pkg/util/wait/backoff.go:161
created by github.com/openshift/cluster-samples-operator/pkg/operator.(*Controller).Run in goroutine 1
/go/src/github.com/openshift/cluster-samples-operator/pkg/operator/controller.go:197 +0x569
goroutine 1 [chan receive, 40 minutes]:
github.com/openshift/cluster-samples-operator/pkg/operator.(*Controller).Run(0xc0006728c0, 0xc0000f4770)
/go/src/github.com/openshift/cluster-samples-operator/pkg/operator/controller.go:230 +0xbee
main.runOperator(0xc000602900?, {0x3fd45e0, 0x0, 0x261c1ca?})
/go/src/github.com/openshift/cluster-samples-operator/cmd/cluster-samples-operator/main.go:58 +0x115
github.com/spf13/cobra.(*Command).execute(0xc0005f6608, {0xc0001301b0, 0x0, 0x0})
/go/src/github.com/openshift/cluster-samples-operator/vendor/github.com/spf13/cobra/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0xc0005f6608)
/go/src/github.com/openshift/cluster-samples-operator/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
/go/src/github.com/openshift/cluster-samples-operator/vendor/github.com/spf13/cobra/command.go:1041
main.main()
/go/src/github.com/openshift/cluster-samples-operator/cmd/cluster-samples-operator/main.go:31 +0x85
This is from the this log file: https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/logs/periodic-ci-openshift-release-master-ci-4.19-upgrade-from-stable-4.18-e2e-gcp-ovn-upgrade/1900430675614371840/artifacts/e2e-gcp-ovn-upgrade/gather-extra/artifacts/pods/openshift-cluster-samples-operator_cluster-samples-operator-6d49c5b7f9-bzdtj_cluster-samples-operator_previous.log
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info: