operator-framework / operator-lifecycle-manager

A management framework for extending Kubernetes with Operators
https://olm.operatorframework.io
Apache License 2.0
1.73k stars 544 forks source link

olm Init:Error #2846

Open JCzz opened 2 years ago

JCzz commented 2 years ago

Bug Report

Hi I get the following bug / Init:Error when installing:

curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.22.0/install.sh | bash -s v0.22.0

I have Installed a HA cluster using kubeadm

Installed cni(cilium) nodes are ready and I can deploy - all running kubectl get pods -A

Except olm after installing metallb from operatorhub.io:

olm      00ae99ed4d0c9f0380e2866691b8643f32e9c345efa7942e3572d09055h497l  0/1   Init:Error  0     19m
olm      00ae99ed4d0c9f0380e2866691b8643f32e9c345efa7942e3572d09055pvlwx  0/1   Init:Error  0     19m
olm      00ae99ed4d0c9f0380e2866691b8643f32e9c345efa7942e3572d09055qvnfs  0/1   Init:Error  0     19m
olm      00ae99ed4d0c9f0380e2866691b8643f32e9c345efa7942e3572d09055wskks  0/1   Init:Error  0     19m
olm      catalog-operator-5bb75dd968-5r5qw                 1/1   Running   0     20m
olm      olm-operator-f56666c56-qq7wj                   1/1   Running   0     20m
olm      operatorhubio-catalog-jhpnw                    1/1   Running   0     20m
olm      packageserver-794cfb86f-6cwrs                   1/1   Running   0     20m
olm      packageserver-794cfb86f-x7zrg                   1/1   Running   0     20m 

kubectl describe pod:

State:     Terminated
   Reason:    Error

logs: kubectl logs 00ae99ed4d0c9f0380e2866691b8643f32e9c345efa7942e3572d09055h497l -n olm

Defaulted container "extract" out of: extract, util (init), pull (init)
Error from server (BadRequest): container "extract" in pod "00ae99ed4d0c9f0380e2866691b8643f32e9c345efa7942e3572d09055h497l" is waiting to start: PodInitializing
lukens commented 2 years ago

I am getting the same result with any operators I try and install via olm.

I had tried two different operators here:

➜  ~ kubectl get pods -n olm

NAME                                                              READY   STATUS       RESTARTS   AGE
catalog-operator-7d48d9d9ff-kqbdv                                 1/1     Running      0          15h
olm-operator-5984b4c9d7-wgj4n                                     1/1     Running      0          15h
packageserver-cdcc45458-8dvc7                                     1/1     Running      0          15h
packageserver-cdcc45458-hw4hj                                     1/1     Running      0          15h
operatorhubio-catalog-z7lw2                                       1/1     Running      0          15h
d5c0c837a1c3b8f843a2e91fc966885717ecf2ce08325536c5f400900bxpbdd   0/1     Init:Error   0          15h
d5c0c837a1c3b8f843a2e91fc966885717ecf2ce08325536c5f400900bx8m2w   0/1     Init:Error   0          15h
d5c0c837a1c3b8f843a2e91fc966885717ecf2ce08325536c5f400900b7bz7g   0/1     Init:Error   0          15h
d5c0c837a1c3b8f843a2e91fc966885717ecf2ce08325536c5f400900b6w84c   0/1     Init:Error   0          15h
d01649d9c4646453efbf0553dba7935a7f06c6e56b5ec0fdaa7e78a406x42cx   0/1     Init:Error   0          25m
d01649d9c4646453efbf0553dba7935a7f06c6e56b5ec0fdaa7e78a4067c2hm   0/1     Init:Error   0          25m
d01649d9c4646453efbf0553dba7935a7f06c6e56b5ec0fdaa7e78a406pntzv   0/1     Init:Error   0          25m
d01649d9c4646453efbf0553dba7935a7f06c6e56b5ec0fdaa7e78a406rb2tv   0/1     Init:Error   0          25m

Trying another:

➜  ~ kubectl create -f https://operatorhub.io/install/postgresql.yaml
➜  ~ kubectl get pods -n olm

NAME                                                              READY   STATUS       RESTARTS   AGE
catalog-operator-7d48d9d9ff-kqbdv                                 1/1     Running      0          15h
olm-operator-5984b4c9d7-wgj4n                                     1/1     Running      0          15h
packageserver-cdcc45458-8dvc7                                     1/1     Running      0          15h
packageserver-cdcc45458-hw4hj                                     1/1     Running      0          15h
operatorhubio-catalog-z7lw2                                       1/1     Running      0          15h
d5c0c837a1c3b8f843a2e91fc966885717ecf2ce08325536c5f400900bxpbdd   0/1     Init:Error   0          15h
d5c0c837a1c3b8f843a2e91fc966885717ecf2ce08325536c5f400900bx8m2w   0/1     Init:Error   0          15h
d5c0c837a1c3b8f843a2e91fc966885717ecf2ce08325536c5f400900b7bz7g   0/1     Init:Error   0          15h
d5c0c837a1c3b8f843a2e91fc966885717ecf2ce08325536c5f400900b6w84c   0/1     Init:Error   0          15h
d01649d9c4646453efbf0553dba7935a7f06c6e56b5ec0fdaa7e78a406x42cx   0/1     Init:Error   0          29m
d01649d9c4646453efbf0553dba7935a7f06c6e56b5ec0fdaa7e78a4067c2hm   0/1     Init:Error   0          29m
d01649d9c4646453efbf0553dba7935a7f06c6e56b5ec0fdaa7e78a406pntzv   0/1     Init:Error   0          29m
d01649d9c4646453efbf0553dba7935a7f06c6e56b5ec0fdaa7e78a406rb2tv   0/1     Init:Error   0          29m
b92a16a8e24198bd687b3955015af1e1f96ee1b41a492f23a39c020575fsrgh   0/1     Init:Error   0          3m10s
b92a16a8e24198bd687b3955015af1e1f96ee1b41a492f23a39c020575f4hkn   0/1     Init:Error   0          3m6s
b92a16a8e24198bd687b3955015af1e1f96ee1b41a492f23a39c020575dzmpd   0/1     Init:Error   0          3m3s
b92a16a8e24198bd687b3955015af1e1f96ee1b41a492f23a39c020575tvsfk   0/1     Init:Error   0          3m

Logs:

➜  ~ kubectl logs b92a16a8e24198bd687b3955015af1e1f96ee1b41a492f23a39c020575fsrgh -n olm
Defaulted container "extract" out of: extract, util (init), pull (init)
Error from server (BadRequest): container "extract" in pod "b92a16a8e24198bd687b3955015af1e1f96ee1b41a492f23a39c020575fsrgh" is waiting to start: PodInitializing

Nothing listed in operators namespace:

➜  ~ kubectl get all -n operators
No resources found in operators namespace.

I've tired with the same results using Minikube and Microk8s, both running inside fresh Multipass VMs running on an M1 Mac.

levaspb commented 11 months ago

Same thing when I try to install any operator.

runtime/cgo: pthread_create failed: Operation not permitted
SIGABRT: abort

I suppose it could be because of seccomp.security.alpha.kubernetes.io/pod: runtime/default in pod annotations.