{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68647","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68647/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68647/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68647/events","html_url":"https://github.com/kubernetes/kubernetes/issues/68647","id":360130681,"node_id":"MDU6SXNzdWUzNjAxMzA2ODE=","number":68647,"title":"[bug] kube-apiserver panic due to concurrent map read and write","user":{"login":"shenlanse","id":8132300,"node_id":"MDQ6VXNlcjgxMzIzMDA=","avatar_url":"https://avatars1.githubusercontent.com/u/8132300?v=4","gravatar_id":"","url":"https://api.github.com/users/shenlanse","html_url":"https://github.com/shenlanse","followers_url":"https://api.github.com/users/shenlanse/followers","following_url":"https://api.github.com/users/shenlanse/following{/other_user}","gists_url":"https://api.github.com/users/shenlanse/gists{/gist_id}","starred_url":"https://api.github.com/users/shenlanse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenlanse/subscriptions","organizations_url":"https://api.github.com/users/shenlanse/orgs","repos_url":"https://api.github.com/users/shenlanse/repos","events_url":"https://api.github.com/users/shenlanse/events{/privacy}","received_events_url":"https://api.github.com/users/shenlanse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-14T02:09:34Z","updated_at":"2018-09-14T02:09:34Z","closed_at":null,"author_association":"NONE","body":"**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n /kind bug\r\n\r\n\r\n**What happened**:\r\n\r\nkube-apiserver panic due to concurrent map read and write\r\n\r\n**What you expected to happen**:\r\n\r\nkeep running stablely\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\ndon't know\r\n\r\n**Anything else we need to know?**:\r\n\r\nkube-apiserver panic log\r\n\r\n```\r\nfatal error: concurrent map read and map write\r\n/root/.gvm/gos/go1.9.2/src/runtime/panic.go:605\r\n/root/.gvm/gos/go1.9.2/src/runtime/hashmap_fast.go:324\r\nk8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.nestedFieldNoCopy\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go:48\r\nk8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.nestedMapNoCopy\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go:169\r\nk8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.(*Unstructured).GetInitializers \r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go:340 \r\nk8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/registry/customresource.customResourceDefinitionStorageStrategy.GetAttrs \r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go:95 \r\nk8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/registry/customresource.(customResourceDefinitionStorageStrategy).GetAttrs-fm \r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/registry/customresource/etcd.go:51 \r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage.(*SelectionPredicate).Matches \r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/selection_predicate.go:90 \r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage.SimpleFilter.func1\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/util.go:47\r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage.filterFunction.func1\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/cacher.go:690\r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage.(*Cacher).List\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/cacher.go:530\r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/registry/generic/registry.(*Store).ListPredicate\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/registry/generic/registry/store.go:306\r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/registry/generic/registry.(*Store).List\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/registry/generic/registry/store.go:271 \r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/endpoints/handlers.ListResource.func1 \r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/endpoints/handlers/get.go:255 \r\nk8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/apiserver.(*crdHandler).ServeHTTP\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go:197  \r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server/mux.(*pathHandler).ServeHTTP \r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server/mux/pathrecorder.go:248 \r\nk8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server/mux.(*PathRecorderMux).ServeHTTP\r\n/data/gerrit/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server/mux/pathrecorder.go:234\r\n\r\n...\r\n```\r\n\r\n**Environment**:\r\n\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"6+\", GitVersion:\"v1.6.2-beta.0.70+477efc3cbe6a7e-dirty\", GitCommit:\"477efc3cbe6a7effca06bd1452fa356e2201e1ee\", GitTreeState:\"dirty\", BuildDate:\"2017-04-26T11:00:09Z\", GoVersion:\"go1.7.4\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"9+\", GitVersion:\"v1.9.2-81+c57bd3a8666a38-dirty\", GitCommit:\"c57bd3a8666a382b14870b18595bc143945aa3b4\", GitTreeState:\"dirty\", BuildDate:\"2018-08-08T02:48:14Z\", GoVersion:\"go1.9.2\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n\r\n```\r\nPRETTY_NAME=\"Debian GNU/Linux 7 (wheezy)\"\r\nNAME=\"Debian GNU/Linux\"\r\nVERSION_ID=\"7\"\r\nVERSION=\"7 (wheezy)\"\r\nID=debian\r\nANSI_COLOR=\"1;31\"\r\nHOME_URL=\"http://www.debian.org/\"\r\nSUPPORT_URL=\"http://www.debian.org/support/\"\r\nBUG_REPORT_URL=\"http://bugs.debian.org/\"\r\n```\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"shenlanse"}}