oracle/coherence-operator

Coherence Operator 3.1.0 pod not starting

viju2008 opened this issue · 3 comments

Hello Jonathan,

I tried installing Coherence-operator in another namespace coherence-demo-ns

However i am getting Error.

ubuntu@acsokecluster2:~/cohexample$ kubectl logs coherence-operator-6d45cd5556-8spwr -n coherence-demo-ns
2020-10-03T18:24:59.637Z INFO operator Operator Version: 3.1.0
2020-10-03T18:24:59.638Z INFO operator Operator Build Date: 2020-09-28T10:05:00Z
2020-10-03T18:24:59.638Z INFO operator Operator Git Commit: b479c08
2020-10-03T18:24:59.638Z INFO operator Operator Coherence Image: oraclecoherence/coherence-ce:20.06.1
2020-10-03T18:24:59.638Z INFO operator Operator Utils Image: ghcr.io/oracle/coherence-operator:3.1.0-utils
2020-10-03T18:24:59.638Z INFO operator Go Version: go1.14.9
2020-10-03T18:24:59.638Z INFO operator Go OS/Arch: linux/amd64
2020-10-03T18:24:59.655Z INFO operator Ensuring operator v1 CRDs are present
2020-10-03T18:24:59.794Z INFO operator Loading operator CRD yaml from 'crd_v1.yaml'
2020-10-03T18:24:59.902Z INFO operator Updating operator CRD 'coherences.coherence.oracle.com'
2020-10-03T18:25:00.154Z INFO setup Operator will watch single namespace: coherence-demo-ns
2020-10-03T18:25:00.560Z INFO controller-runtime.metrics metrics server is starting to listen {"addr": ":8080"}
2020-10-03T18:25:00.564Z ERROR setup unable to create webhook certificate controller {"controller": "Certs", "error": " unable to setup and fill the webhook certificates: failed to get webhook certificate secret coherence-webhook-server-cert: secrets "coherence-webhook-server-cert" is forbidden: User "system:serviceaccount:coherence-demo-ns:coherence-operator" cannot get resource "secrets" in API group "" in the namespace "operator-test"", "errorVerbose": "secrets "coherence-webhook-server-cert" is forbidden: User "system:serviceaccount:coherence-demo-ns:coherence-operator" cannot get resource "secrets" in API group "" in the namespace "operator-test"\nfailed to get webhook certificate secret coherence-webhook-server-cert\ngithub.com/oracle/coherence-operator/controllers/webhook.(*CertReconciler).ReconcileResources\n\t/home/runner/work/coherence-operator/coherence-operator/controllers/webhook/webhook_controller.go:137\ngithub.com/oracle/coherence-operator/controllers/webhook.(*CertReconciler).SetupWithManager\n\t/home/runner/work/coherence-operator/coherence-operator/controllers/webhook/webhook_controller.go:64\nmain.execute\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:159\nmain.glob..func1\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:53\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887\nmain.main\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:87\nruntime.main\n\t/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/proc.go:203\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/asm_amd64.s:1373\n unable to setup and fill the webhook certificates\ngithub.com/oracle/coherence-operator/controllers/webhook.(*CertReconciler).SetupWithManager\n\t/home/runner/work/coherence-operator/coherence-operator/controllers/webhook/webhook_controller.go:65\nmain.execute\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:159\nmain.glob..func1\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:53\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887\nmain.main\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:87\nruntime.main\n\t/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/proc.go:203\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/asm_amd64.s:1373"}
github.com/go-logr/zapr.(*zapLogger).Error
/home/runner/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128
main.execute
/home/runner/work/coherence-operator/coherence-operator/main.go:160
main.glob..func1
/home/runner/work/coherence-operator/coherence-operator/main.go:53
github.com/spf13/cobra.(*Command).execute
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846
github.com/spf13/cobra.(*Command).ExecuteC
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
/home/runner/work/coherence-operator/coherence-operator/main.go:87
runtime.main
/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/proc.go:203

The YAML FILE THAT is used is the Older yaml files with which we did the initial deployment. HELM is not upgrading the operator.

The YAML used to install the operator is as below:

coh-opt.txt

I tried helm install set image .. the operator still remains 3.0.2

You cannot use the old v3.0.2 Helm chart with the v3.1.0 Operator image, they are not compatible.

Can you provide fresh kubernetes deployment yaml file.. we can download from external repos.. please provide new yaml files to deploy operator on-premise