cilium / cilium-olm

Other
10 stars 13 forks source link

operator crashes on leader election timeout #21

Open errordeveloper opened 3 years ago

errordeveloper commented 3 years ago

This has been seen a few times, but doesn't appear to be a major issue. It's probably not a bad idea to disable leader election anyway, to avoid confusion with the operator doing a few restarts on bootstrap.

"}
2021-01-25T13:56:44.183Z    DEBUG   predicate   Reconciling due to dependent resource update    {"name": "cilium-olm", "namespace": "cilium", "apiVersion": "v1", "kind": "ConfigMap"}
2021-01-25T13:56:44.944Z    DEBUG   predicate   Skipping reconciliation for dependent resource creation {"name": "packageserver-service-system:auth-delegator", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRoleBinding"}
E0125 13:56:56.184083       1 leaderelection.go:320] error retrieving resource lock cilium/cilium-olm: Get "https://172.30.0.1:443/api/v1/namespaces/cilium/configmaps/cilium-olm": context deadline exceeded
I0125 13:56:56.184166       1 leaderelection.go:277] failed to renew lease cilium/cilium-olm: timed out waiting for the condition
2021-01-25T13:56:56.184Z    ERROR   cmd Manager exited non-zero.    {"Namespace": "cilium", "error": "leader election lost"}
github.com/go-logr/zapr.(*zapLogger).Error
    /home/travis/gopath/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128
github.com/operator-framework/operator-sdk/internal/cmd/helm-operator/run.run
    operator-sdk/internal/cmd/helm-operator/run/cmd.go:164
github.com/operator-framework/operator-sdk/internal/cmd/helm-operator/run.NewCmd.func1
    operator-sdk/internal/cmd/helm-operator/run/cmd.go:65
github.com/spf13/cobra.(*Command).execute
    /home/travis/gopath/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846
github.com/spf13/cobra.(*Command).ExecuteC
    /home/travis/gopath/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
    /home/travis/gopath/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
    operator-sdk/cmd/helm-operator/main.go:40
runtime.main
    /home/travis/.gimme/versions/go1.15.4.linux.amd64/src/runtime/proc.go:204