Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator install plans fail w/repeat count regexp parsing error with OLM 0.8.1+ on OCP 3.11 #735

Closed
ron1 opened this issue Mar 2, 2019 · 3 comments

Comments

@ron1
Copy link
Contributor

ron1 commented Mar 2, 2019

I'm running OLM ocp/0.8.1+ on OCP 3.11 with the manifest patches below to work-around already reported issues. The patch includes replacement of image coreos/olm with openshift/origin-operator-lifecycle-manager:latest dated 2019-02-28. I'm also using an upstream-community-operators image built 2019-02-28 via https://github.com/operator-framework/community-operators/blob/master/upstream.Dockerfile. The manifest for this installation is also included below. The approach was inspired by the @njhale comment here: #715 (comment). If you have a better way to use latest OLM and upstream-community-operators with OCP 3.11 please let me know.

My attempts to create install plans for couchbase and etcd upstream-community-operators subscriptions fail with the master api stack trace below. Is it possible this issue is related to Kubernetes issue kubernetes/kubernetes#65470 "Invalid regex in OpenAPI validation crashes API server"?

{"log":"I0301 11:15:29.732959       1 controller.go:597] quota admission added evaluator for: {operators.coreos.com subscriptions}\n","stream":"stderr","time":"2019-03-01T11:15:29.733119366Z"}
{"log":"I0301 11:15:29.733352       1 controller.go:597] quota admission added evaluator for: {operators.coreos.com subscriptions}\n","stream":"stderr","time":"2019-03-01T11:15:29.733448479Z"}
{"log":"I0301 11:15:29.752359       1 controller.go:597] quota admission added evaluator for: {operators.coreos.com installplans}\n","stream":"stderr","time":"2019-03-01T11:15:29.752524714Z"}
{"log":"I0301 11:15:29.752842       1 controller.go:597] quota admission added evaluator for: {operators.coreos.com installplans}\n","stream":"stderr","time":"2019-03-01T11:15:29.752948069Z"}
{"log":"I0301 11:15:29.783782       1 controller.go:597] quota admission added evaluator for: {operators.coreos.com clusterserviceversions}\n","stream":"stderr","time":"2019-03-01T11:15:29.783955897Z"}
{"log":"E0301 11:15:29.784341       1 runtime.go:66] Observed a panic: \"regexp: Compile(`^(?:[A-Za-z0-9+/]{4}){0,16250}(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`): error parsing regexp: invalid repeat count: `{0,16250}`\" (regexp: Compile(`^(?:[A-Za-z0-9+/]{4}){0,16250}(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`): error parsing regexp: invalid repeat count: `{0,16250}`)\n","stream":"stderr","time":"2019-03-01T11:15:29.78447938Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72\n","stream":"stderr","time":"2019-03-01T11:15:29.784495821Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65\n","stream":"stderr","time":"2019-03-01T11:15:29.784501891Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51\n","stream":"stderr","time":"2019-03-01T11:15:29.784506721Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/runtime/asm_amd64.s:573\n","stream":"stderr","time":"2019-03-01T11:15:29.784510541Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/runtime/panic.go:502\n","stream":"stderr","time":"2019-03-01T11:15:29.784513861Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/regexp/regexp.go:240\n","stream":"stderr","time":"2019-03-01T11:15:29.784517021Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/values.go:142\n","stream":"stderr","time":"2019-03-01T11:15:29.784520101Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/validator.go:587\n","stream":"stderr","time":"2019-03-01T11:15:29.784523241Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/schema.go:139\n","stream":"stderr","time":"2019-03-01T11:15:29.784526301Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/object_validator.go:142\n","stream":"stderr","time":"2019-03-01T11:15:29.784529361Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/schema.go:139\n","stream":"stderr","time":"2019-03-01T11:15:29.784533011Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/slice_validator.go:61\n","stream":"stderr","time":"2019-03-01T11:15:29.784536311Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/schema.go:139\n","stream":"stderr","time":"2019-03-01T11:15:29.784544881Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/object_validator.go:142\n","stream":"stderr","time":"2019-03-01T11:15:29.784548241Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/schema.go:139\n","stream":"stderr","time":"2019-03-01T11:15:29.784551381Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/object_validator.go:142\n","stream":"stderr","time":"2019-03-01T11:15:29.784554382Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/github.com/go-openapi/validate/schema.go:139\n","stream":"stderr","time":"2019-03-01T11:15:29.784557421Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation.go:46\n","stream":"stderr","time":"2019-03-01T11:15:29.784560451Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiextensions-apiserver/pkg/registry/customresource/validator.go:62\n","stream":"stderr","time":"2019-03-01T11:15:29.784563681Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go:131\n","stream":"stderr","time":"2019-03-01T11:15:29.784567141Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/registry/rest/create.go:103\n","stream":"stderr","time":"2019-03-01T11:15:29.784570212Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/registry/generic/registry/store.go:326\n","stream":"stderr","time":"2019-03-01T11:15:29.784573251Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/registry/generic/registry/store.go:326\n","stream":"stderr","time":"2019-03-01T11:15:29.784576401Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/endpoints/handlers/create.go:174\n","stream":"stderr","time":"2019-03-01T11:15:29.784579382Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/endpoints/handlers/create.go:118\n","stream":"stderr","time":"2019-03-01T11:15:29.784582761Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/endpoints/handlers/rest.go:183\n","stream":"stderr","time":"2019-03-01T11:15:29.784585851Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/runtime/asm_amd64.s:2361\n","stream":"stderr","time":"2019-03-01T11:15:29.784588922Z"}
{"log":"E0301 11:15:29.784618       1 runtime.go:66] Observed a panic: \"regexp: Compile(`^(?:[A-Za-z0-9+/]{4}){0,16250}(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`): error parsing regexp: invalid repeat count: `{0,16250}`\" (regexp: Compile(`^(?:[A-Za-z0-9+/]{4}){0,16250}(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`): error parsing regexp: invalid repeat count: `{0,16250}`)\n","stream":"stderr","time":"2019-03-01T11:15:29.788415111Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72\n","stream":"stderr","time":"2019-03-01T11:15:29.788429571Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65\n","stream":"stderr","time":"2019-03-01T11:15:29.788440151Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51\n","stream":"stderr","time":"2019-03-01T11:15:29.788445381Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/runtime/asm_amd64.s:573\n","stream":"stderr","time":"2019-03-01T11:15:29.788449741Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/runtime/panic.go:502\n","stream":"stderr","time":"2019-03-01T11:15:29.788453261Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters/timeout.go:105\n","stream":"stderr","time":"2019-03-01T11:15:29.788456602Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters/waitgroup.go:47\n","stream":"stderr","time":"2019-03-01T11:15:29.788460031Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947\n","stream":"stderr","time":"2019-03-01T11:15:29.788463631Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/endpoints/filters/requestinfo.go:39\n","stream":"stderr","time":"2019-03-01T11:15:29.788467321Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947\n","stream":"stderr","time":"2019-03-01T11:15:29.788470751Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters/wrap.go:41\n","stream":"stderr","time":"2019-03-01T11:15:29.788474011Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947\n","stream":"stderr","time":"2019-03-01T11:15:29.788477401Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/handlers.go:140\n","stream":"stderr","time":"2019-03-01T11:15:29.788481512Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947\n","stream":"stderr","time":"2019-03-01T11:15:29.788485171Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-apiserver/openshiftapiserver/configprocessing/cachecontrol.go:33\n","stream":"stderr","time":"2019-03-01T11:15:29.788488381Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947\n","stream":"stderr","time":"2019-03-01T11:15:29.788492332Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/webconsole_proxy.go:39\n","stream":"stderr","time":"2019-03-01T11:15:29.788495562Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947\n","stream":"stderr","time":"2019-03-01T11:15:29.788499041Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/webconsole_proxy.go:49\n","stream":"stderr","time":"2019-03-01T11:15:29.788502452Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947\n","stream":"stderr","time":"2019-03-01T11:15:29.788505852Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/patch_handlerchain.go:103\n","stream":"stderr","time":"2019-03-01T11:15:29.788509071Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947\n","stream":"stderr","time":"2019-03-01T11:15:29.788515402Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/handler.go:189\n","stream":"stderr","time":"2019-03-01T11:15:29.788519261Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:2694\n","stream":"stderr","time":"2019-03-01T11:15:29.788522562Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:3260\n","stream":"stderr","time":"2019-03-01T11:15:29.788525912Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/h2_bundle.go:5475\n","stream":"stderr","time":"2019-03-01T11:15:29.788529171Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/golang.org/x/net/http2/server.go:2053\n","stream":"stderr","time":"2019-03-01T11:15:29.788532392Z"}
{"log":"/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/golang.org/x/net/http2/server.go:2053\n","stream":"stderr","time":"2019-03-01T11:15:29.788535702Z"}
{"log":"/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/runtime/asm_amd64.s:2361\n","stream":"stderr","time":"2019-03-01T11:15:29.788539001Z"}
{"log":"E0301 11:15:29.785119       1 wrap.go:34] apiserver panic'd on POST /apis/operators.coreos.com/v1alpha1/namespaces/my-etcd/clusterserviceversions: regexp: Compile(`^(?:[A-Za-z0-9+/]{4}){0,16250}(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`): error parsing regexp: invalid repeat count: `{0,16250}`\n","stream":"stderr","time":"2019-03-01T11:15:29.788543152Z"}
{"log":"goroutine 985186 [running]:\n","stream":"stderr","time":"2019-03-01T11:15:29.788547882Z"}
{"log":"runtime/debug.Stack(0x7830f60, 0xc429ce9960, 0x530dfbe)\n","stream":"stderr","time":"2019-03-01T11:15:29.788552032Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/runtime/debug/stack.go:24 +0xa7\n","stream":"stderr","time":"2019-03-01T11:15:29.788556112Z"}
{"log":"github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters.WithPanicRecovery.func1.1(0x4476a80, 0xc42cc3cd90)\n","stream":"stderr","time":"2019-03-01T11:15:29.788561112Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters/wrap.go:34 +0x74\n","stream":"stderr","time":"2019-03-01T11:15:29.788565632Z"}
{"log":"github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0xc434f79910, 0x1, 0x1)\n","stream":"stderr","time":"2019-03-01T11:15:29.788571172Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:54 +0xc7\n","stream":"stderr","time":"2019-03-01T11:15:29.788575012Z"}
{"log":"panic(0x4476a80, 0xc42cc3cd90)\n","stream":"stderr","time":"2019-03-01T11:15:29.788579113Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/runtime/panic.go:502 +0x229\n","stream":"stderr","time":"2019-03-01T11:15:29.788583432Z"}
{"log":"github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP(0xc42bf913a0, 0x7830f60, 0xc429ce9960, 0xc42c7a1a00)\n","stream":"stderr","time":"2019-03-01T11:15:29.788587472Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters/timeout.go:105 +0x404\n","stream":"stderr","time":"2019-03-01T11:15:29.788591342Z"}
{"log":"github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters.WithWaitGroup.func1(0x7830f60, 0xc429ce9960, 0xc42c7a1900)\n","stream":"stderr","time":"2019-03-01T11:15:29.788596682Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters/waitgroup.go:47 +0xd4\n","stream":"stderr","time":"2019-03-01T11:15:29.788601362Z"}
{"log":"net/http.HandlerFunc.ServeHTTP(0xc428efd3e0, 0x7830f60, 0xc429ce9960, 0xc42c7a1900)\n","stream":"stderr","time":"2019-03-01T11:15:29.788609583Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947 +0x44\n","stream":"stderr","time":"2019-03-01T11:15:29.788613903Z"}
{"log":"github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/endpoints/filters.WithRequestInfo.func1(0x7830f60, 0xc429ce9960, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788619133Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/endpoints/filters/requestinfo.go:39 +0x181\n","stream":"stderr","time":"2019-03-01T11:15:29.788623973Z"}
{"log":"net/http.HandlerFunc.ServeHTTP(0xc428efd410, 0x7830f60, 0xc429ce9960, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788628473Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947 +0x44\n","stream":"stderr","time":"2019-03-01T11:15:29.788632702Z"}
{"log":"github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters.WithPanicRecovery.func1(0x7830f60, 0xc429ce9960, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788637342Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/filters/wrap.go:41 +0x108\n","stream":"stderr","time":"2019-03-01T11:15:29.788641542Z"}
{"log":"net/http.HandlerFunc.ServeHTTP(0xc42bf913c0, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788646272Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947 +0x44\n","stream":"stderr","time":"2019-03-01T11:15:29.788651163Z"}
{"log":"github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver.translateLegacyScopeImpersonation.func1(0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788655333Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/handlers.go:140 +0x264\n","stream":"stderr","time":"2019-03-01T11:15:29.788659703Z"}
{"log":"net/http.HandlerFunc.ServeHTTP(0xc42bf913e0, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788664343Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947 +0x44\n","stream":"stderr","time":"2019-03-01T11:15:29.788668383Z"}
{"log":"github.com/openshift/origin/pkg/cmd/openshift-apiserver/openshiftapiserver/configprocessing.WithCacheControl.func1(0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788672532Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-apiserver/openshiftapiserver/configprocessing/cachecontrol.go:33 +0x1d7\n","stream":"stderr","time":"2019-03-01T11:15:29.788677543Z"}
{"log":"net/http.HandlerFunc.ServeHTTP(0xc428efd440, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788682112Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947 +0x44\n","stream":"stderr","time":"2019-03-01T11:15:29.788686193Z"}
{"log":"github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver.withAssetServerRedirect.func1(0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788691253Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/webconsole_proxy.go:39 +0x6f\n","stream":"stderr","time":"2019-03-01T11:15:29.788695643Z"}
{"log":"net/http.HandlerFunc.ServeHTTP(0xc42bf91400, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788704673Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947 +0x44\n","stream":"stderr","time":"2019-03-01T11:15:29.788709163Z"}
{"log":"github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver.withConsoleRedirection.func1(0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788713323Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/webconsole_proxy.go:49 +0x1a7\n","stream":"stderr","time":"2019-03-01T11:15:29.788717863Z"}
{"log":"net/http.HandlerFunc.ServeHTTP(0xc428efd470, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788722344Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947 +0x44\n","stream":"stderr","time":"2019-03-01T11:15:29.788726543Z"}
{"log":"github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver.WithPatternPrefixHandler.func1(0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788731143Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/pkg/cmd/openshift-kube-apiserver/openshiftkubeapiserver/patch_handlerchain.go:103 +0x12e\n","stream":"stderr","time":"2019-03-01T11:15:29.788735773Z"}
{"log":"net/http.HandlerFunc.ServeHTTP(0xc428084f40, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788739873Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:1947 +0x44\n","stream":"stderr","time":"2019-03-01T11:15:29.788744133Z"}
{"log":"github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server.(*APIServerHandler).ServeHTTP(0xc428efd4d0, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788748963Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/apiserver/pkg/server/handler.go:189 +0x51\n","stream":"stderr","time":"2019-03-01T11:15:29.788753424Z"}
{"log":"net/http.serverHandler.ServeHTTP(0xc42a400000, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788758114Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:2694 +0xbc\n","stream":"stderr","time":"2019-03-01T11:15:29.788762654Z"}
{"log":"net/http.initNPNRequest.ServeHTTP(0xc439904a80, 0xc42a400000, 0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788766714Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/server.go:3260 +0x9a\n","stream":"stderr","time":"2019-03-01T11:15:29.788771534Z"}
{"log":"net/http.(Handler).ServeHTTP-fm(0x78267e0, 0xc4381e9de0, 0xc42c7a1800)\n","stream":"stderr","time":"2019-03-01T11:15:29.788775853Z"}
{"log":"\u0009/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang/src/net/http/h2_bundle.go:5475 +0x4d\n","stream":"stderr","time":"2019-03-01T11:15:29.788779793Z"}
{"log":"github.com/openshift/origin/vendor/golang.org/x/net/http2.(*serverConn).runHandler(0xc4317de1c0, 0xc4381e9de0, 0xc42c7a1800, 0xc42dc90ae0)\n","stream":"stderr","time":"2019-03-01T11:15:29.788783494Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/golang.org/x/net/http2/server.go:2053 +0x89\n","stream":"stderr","time":"2019-03-01T11:15:29.788787404Z"}
{"log":"created by github.com/openshift/origin/vendor/golang.org/x/net/http2.(*serverConn).processHeaders\n","stream":"stderr","time":"2019-03-01T11:15:29.788790874Z"}
{"log":"\u0009/builddir/build/BUILD/atomic-openshift-git-0.08bc31b/_output/local/go/src/github.com/openshift/origin/vendor/golang.org/x/net/http2/server.go:1787 +0x46b\n","stream":"stderr","time":"2019-03-01T11:15:29.788794114Z"}
{"log":"\n","stream":"stderr","time":"2019-03-01T11:15:29.788800534Z"}

couchbase-subscription manifest

apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  generateName: couchbase-enterprise-
  namespace: couchbase-test 
spec:
  source: upstream-community-operators
  sourceNamespace: openshift-operator-lifecycle-manager
  name: couchbase-enterprise
  startingCSV: couchbase-operator.v1.0.0
  channel: preview

upstream-community-operators operator-registry manifest

apiVersion: operators.coreos.com/v1alpha1 
kind: CatalogSource 
metadata: 
  name: upstream-community-operators 
spec: 
  displayName: Upstream Community Operators 
  image: quay.io/ron18219/upstream-community-operators:latest
  publisher: community-operators 
  sourceType: grpc

ocp/manifests/0.8.1 patch is included below:

diff --git a/deploy/ocp/manifests/0.8.1/0000_50_olm_06-olm-operator.deployment.yaml b/deploy/ocp/manifests/0.8.1/0000_50_olm_06-olm-operator.deployment.yaml
index ee005056..5b9dfb25 100644
--- a/deploy/ocp/manifests/0.8.1/0000_50_olm_06-olm-operator.deployment.yaml
+++ b/deploy/ocp/manifests/0.8.1/0000_50_olm_06-olm-operator.deployment.yaml
@@ -27,7 +27,8 @@ spec:
           args:
           - -writeStatusName
           - operator-lifecycle-manager
-          image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+#          image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+          image: quay.io/openshift/origin-operator-lifecycle-manager:latest
           imagePullPolicy: IfNotPresent
           ports:
             - containerPort: 8080
@@ -48,7 +49,7 @@ spec:
             value: olm-operator
       nodeSelector:
         beta.kubernetes.io/os: linux
-        node-role.kubernetes.io/master: ""
+#        node-role.kubernetes.io/master: ""
         
       tolerations:
         - operator: Exists
diff --git a/deploy/ocp/manifests/0.8.1/0000_50_olm_07-catalog-operator.deployment.yaml b/deploy/ocp/manifests/0.8.1/0000_50_olm_07-catalog-operator.deployment.yaml
index 24d31963..d35e6057 100644
--- a/deploy/ocp/manifests/0.8.1/0000_50_olm_07-catalog-operator.deployment.yaml
+++ b/deploy/ocp/manifests/0.8.1/0000_50_olm_07-catalog-operator.deployment.yaml
@@ -28,7 +28,8 @@ spec:
           - '-namespace'
           - openshift-operator-lifecycle-manager
           - -configmapServerImage=quay.io/operatorframework/configmap-operator-registry:latest
-          image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+#          image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+          image: quay.io/openshift/origin-operator-lifecycle-manager:latest
           imagePullPolicy: IfNotPresent
           ports:
             - containerPort: 8080
@@ -42,7 +43,7 @@ spec:
               port: 8080
       nodeSelector:
         beta.kubernetes.io/os: linux
-        node-role.kubernetes.io/master: ""
+#        node-role.kubernetes.io/master: ""
         
       tolerations:
         - operator: Exists
diff --git a/deploy/ocp/manifests/0.8.1/0000_50_olm_10-olm-operators.configmap.yaml b/deploy/ocp/manifests/0.8.1/0000_50_olm_10-olm-operators.configmap.yaml
index c5b8f28f..1035d6ed 100644
--- a/deploy/ocp/manifests/0.8.1/0000_50_olm_10-olm-operators.configmap.yaml
+++ b/deploy/ocp/manifests/0.8.1/0000_50_olm_10-olm-operators.configmap.yaml
@@ -83,7 +83,7 @@ data:
                     serviceAccountName: packageserver
                     nodeSelector:
                       beta.kubernetes.io/os: linux
-                      node-role.kubernetes.io/master: ""
+                      # node-role.kubernetes.io/master: ""
                       
                     tolerations:
                       - operator: Exists
@@ -97,7 +97,8 @@ data:
                       - "5443"
                       - --global-namespace
                       - openshift-operator-lifecycle-manager
-                      image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+                      # image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+                      image: quay.io/openshift/origin-operator-lifecycle-manager:latest
                       imagePullPolicy: Always
                       ports:
                       - containerPort: 5443
@@ -118,6 +119,7 @@ data:
           - group: packages.apps.redhat.com
             version: v1alpha1
             kind: PackageManifest
+            name: packagemanifests
             displayName: PackageManifest
             description: A PackageManifest is a resource generated from existing CatalogSources and their ConfigMaps
             deploymentName: packageserver
@njhale
Copy link
Member

njhale commented Mar 4, 2019

@ron1 I would say the kube-apiserver crash is definitely the issue you are running into. @evan merged a fix to OLM's manifests that removes the probable culprit in OLM's case. I would try pulling from master again and re-applying OLM's manifests.

@ron1
Copy link
Contributor Author

ron1 commented Mar 5, 2019

I successfully deployed the latest OLM from master with the manifest patches below on OCP 3.11.82. I also successfully deployed an etcd-operator CR from the upstream-community-operators CatalogSource built using DockerFile https://github.com/operator-framework/operator-registry/blob/master/upstream-example.Dockerfile. Thanks for your help.

$ git diff
diff --git a/deploy/ocp/manifests/0.8.1/0000_50_olm_06-olm-operator.deployment.yaml b/deploy/ocp/manifests/0.8.1/0000_50_olm_06-olm-operator.deployment.yaml
index ee005056..02ac5c1e 100644
--- a/deploy/ocp/manifests/0.8.1/0000_50_olm_06-olm-operator.deployment.yaml
+++ b/deploy/ocp/manifests/0.8.1/0000_50_olm_06-olm-operator.deployment.yaml
@@ -27,7 +27,8 @@ spec:
           args:
           - -writeStatusName
           - operator-lifecycle-manager
-          image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+          # image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+          image: quay.io/openshift/origin-operator-lifecycle-manager:latest
           imagePullPolicy: IfNotPresent
           ports:
             - containerPort: 8080
@@ -48,7 +49,7 @@ spec:
             value: olm-operator
       nodeSelector:
         beta.kubernetes.io/os: linux
-        node-role.kubernetes.io/master: ""
+        # node-role.kubernetes.io/master: ""
         
       tolerations:
         - operator: Exists
diff --git a/deploy/ocp/manifests/0.8.1/0000_50_olm_07-catalog-operator.deployment.yaml b/deploy/ocp/manifests/0.8.1/0000_50_olm_07-catalog-operator.deployment.yaml
index 24d31963..6d8908b5 100644
--- a/deploy/ocp/manifests/0.8.1/0000_50_olm_07-catalog-operator.deployment.yaml
+++ b/deploy/ocp/manifests/0.8.1/0000_50_olm_07-catalog-operator.deployment.yaml
@@ -28,7 +28,8 @@ spec:
           - '-namespace'
           - openshift-operator-lifecycle-manager
           - -configmapServerImage=quay.io/operatorframework/configmap-operator-registry:latest
-          image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+          # image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+          image: quay.io/openshift/origin-operator-lifecycle-manager:latest
           imagePullPolicy: IfNotPresent
           ports:
             - containerPort: 8080
@@ -42,7 +43,7 @@ spec:
               port: 8080
       nodeSelector:
         beta.kubernetes.io/os: linux
-        node-role.kubernetes.io/master: ""
+        # node-role.kubernetes.io/master: ""
         
       tolerations:
         - operator: Exists
diff --git a/deploy/ocp/manifests/0.8.1/0000_50_olm_10-olm-operators.configmap.yaml b/deploy/ocp/manifests/0.8.1/0000_50_olm_10-olm-operators.configmap.yaml
index 94057fe9..1035d6ed 100644
--- a/deploy/ocp/manifests/0.8.1/0000_50_olm_10-olm-operators.configmap.yaml
+++ b/deploy/ocp/manifests/0.8.1/0000_50_olm_10-olm-operators.configmap.yaml
@@ -83,7 +83,7 @@ data:
                     serviceAccountName: packageserver
                     nodeSelector:
                       beta.kubernetes.io/os: linux
-                      node-role.kubernetes.io/master: ""
+                      # node-role.kubernetes.io/master: ""
                       
                     tolerations:
                       - operator: Exists
@@ -97,7 +97,8 @@ data:
                       - "5443"
                       - --global-namespace
                       - openshift-operator-lifecycle-manager
-                      image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+                      # image: quay.io/coreos/olm@sha256:995a181839f301585a0e115c083619b6d73812c58a8444d7b13b8e407010325f
+                      image: quay.io/openshift/origin-operator-lifecycle-manager:latest
                       imagePullPolicy: Always
                       ports:
                       - containerPort: 5443

@ron1 ron1 closed this as completed Mar 5, 2019
@njhale
Copy link
Member

njhale commented Mar 5, 2019

@ron1 thanks for being so patient. This really helps us outline the work we need to do to make our upstream easier to use (which is one of our core focuses).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants