operator-framework / operator-lifecycle-manager

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

Unable to install operator with OLM in kind cluster #3058

Open learner0810 opened 11 months ago

learner0810 commented 11 months ago

Environment

operator-lifecycle-manager version:

quay.m.daocloud.io/operator-framework/olm:v0.25.0

kubectl version

WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.0", GitCommit:"b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d", GitTreeState:"clean", BuildDate:"2022-12-08T19:58:30Z", GoVersion:"go1.19.4", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-06-22T04:47:11Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.26) and server (1.21) exceeds the supported minor version skew of +/-1

Kubernetes cluster kind:

kind 
[root@10-6-201-200 ~]# kubectl -n kube-system logs -f 1f93b28d08a57bfa1792318b28967f880832825312146d0a67addf252fbdzw2
Defaulted container "extract" out of: extract, util (init), pull (init)
runtime/cgo: pthread_create failed: Operation not permitted
SIGABRT: abort
PC=0x1caf90c m=0 sigcode=18446744073709551610

goroutine 0 [idle]:
runtime: g 0: unknown pc 0x1caf90c
stack: frame={sp:0x7ffd3a591590, fp:0x0} stack=[0x7ffd39d92b10,0x7ffd3a591b20)
0x00007ffd3a591490:  0x000000000041a8f9 <runtime.sysMapOS+0x0000000000000039>  0x0000000000000000
0x00007ffd3a5914a0:  0x00007f7349d28000  0x00000000004056e0 <runtime.mmap.func1+0x0000000000000000>
0x00007ffd3a5914b0:  0x0000000000000000  0x0000000000000000
0x00007ffd3a5914c0:  0x0000000000407000 <runtime.cgoCheckTypedBlock+0x0000000000000020>  0x00007f734bf39000
0x00007ffd3a5914d0:  0x00007ffd3a591500  0x0000000001c98240
0x00007ffd3a5914e0:  0x00007f734bf39000  0x00000000004722de <runtime.callCgoMmap+0x000000000000003e>
0x00007ffd3a5914f0:  0x00007ffd3a5914f8  0x00007f734bf39000
0x00007ffd3a591500:  0x00007ffd3a591570  0x0000000001c98240
0x00007ffd3a591510:  0x000000000040572f <runtime.mmap.func1+0x000000000000004f>  0x00000000004722de <runtime.callCgoMmap+0x000000000000003e>
0x00007ffd3a591520:  0x00007ffd3a591528  0x0000000000000000
0x00007ffd3a591530:  0x0000000000000120  0x000000120042eaad
0x00007ffd3a591540:  0x0000000001d24dd0  0x000000001c000004
0x00007ffd3a591550:  0x0000000000000110  0x0000000000000000
0x00007ffd3a591560:  0x00007f7349f27fff  0x0000000000000001
0x00007ffd3a591570:  0x0000000000000004  0x0000003400000012
0x00007ffd3a591580:  0x0000000000000000  0x0000000001caf8fe
0x00007ffd3a591590: <0x0000000000000000  0x000000770000007c
0x00007ffd3a5915a0:  0x0000005b0000006e  0x0000000000203000
0x00007ffd3a5915b0:  0x0000000000000400  0x0000000001cebcb1
0x00007ffd3a5915c0:  0x00007f7349c07640  0x00007ffd3a5918a0
0x00007ffd3a5915d0:  0x00007ffd3a59170e  0x00007ffd3a59170f
0x00007ffd3a5915e0:  0x0000000000000000  0x0000000001cadd89
0x00007ffd3a5915f0:  0x0000000000800280 <crypto/tls.md5SHA1Hash+0x0000000000000020>  0x0000000000002030
0x00007ffd3a591600:  0x00000000003d0f00  0x00007f7349c07910
0x00007ffd3a591610:  0x00007f7349c07910  0xd4fbc54384590900
0x00007ffd3a591620:  0x0000000003b463c0  0x0000000000000006
0x00007ffd3a591630:  0x000000000269f96e  0x00007ffd3a591960
0x00007ffd3a591640:  0x0000000003778ca0  0x0000000001ca0e26
0x00007ffd3a591650:  0x00000000037aba80  0x00000000004013c1
0x00007ffd3a591660:  0x0000000000000020  0x00007f7349c07640
0x00007ffd3a591670:  0x0000000000000000  0x00007ffd3a5918a0
0x00007ffd3a591680:  0x00007f7349c07640  0x0000000001caebba
runtime: g 0: unknown pc 0x1caf90c
stack: frame={sp:0x7ffd3a591590, fp:0x0} stack=[0x7ffd39d92b10,0x7ffd3a591b20)
0x00007ffd3a591490:  0x000000000041a8f9 <runtime.sysMapOS+0x0000000000000039>  0x0000000000000000
0x00007ffd3a5914a0:  0x00007f7349d28000  0x00000000004056e0 <runtime.mmap.func1+0x0000000000000000>
0x00007ffd3a5914b0:  0x0000000000000000  0x0000000000000000
0x00007ffd3a5914c0:  0x0000000000407000 <runtime.cgoCheckTypedBlock+0x0000000000000020>  0x00007f734bf39000
0x00007ffd3a5914d0:  0x00007ffd3a591500  0x0000000001c98240
0x00007ffd3a5914e0:  0x00007f734bf39000  0x00000000004722de <runtime.callCgoMmap+0x000000000000003e>
0x00007ffd3a5914f0:  0x00007ffd3a5914f8  0x00007f734bf39000
0x00007ffd3a591500:  0x00007ffd3a591570  0x0000000001c98240
0x00007ffd3a591510:  0x000000000040572f <runtime.mmap.func1+0x000000000000004f>  0x00000000004722de <runtime.callCgoMmap+0x000000000000003e>
0x00007ffd3a591520:  0x00007ffd3a591528  0x0000000000000000
0x00007ffd3a591530:  0x0000000000000120  0x000000120042eaad
0x00007ffd3a591540:  0x0000000001d24dd0  0x000000001c000004
0x00007ffd3a591550:  0x0000000000000110  0x0000000000000000
0x00007ffd3a591560:  0x00007f7349f27fff  0x0000000000000001
0x00007ffd3a591570:  0x0000000000000004  0x0000003400000012
0x00007ffd3a591580:  0x0000000000000000  0x0000000001caf8fe
0x00007ffd3a591590: <0x0000000000000000  0x000000770000007c
0x00007ffd3a5915a0:  0x0000005b0000006e  0x0000000000203000
0x00007ffd3a5915b0:  0x0000000000000400  0x0000000001cebcb1
0x00007ffd3a5915c0:  0x00007f7349c07640  0x00007ffd3a5918a0
0x00007ffd3a5915d0:  0x00007ffd3a59170e  0x00007ffd3a59170f
0x00007ffd3a5915e0:  0x0000000000000000  0x0000000001cadd89
0x00007ffd3a5915f0:  0x0000000000800280 <crypto/tls.md5SHA1Hash+0x0000000000000020>  0x0000000000002030
0x00007ffd3a591600:  0x00000000003d0f00  0x00007f7349c07910
0x00007ffd3a591610:  0x00007f7349c07910  0xd4fbc54384590900
0x00007ffd3a591620:  0x0000000003b463c0  0x0000000000000006
0x00007ffd3a591630:  0x000000000269f96e  0x00007ffd3a591960
0x00007ffd3a591640:  0x0000000003778ca0  0x0000000001ca0e26
0x00007ffd3a591650:  0x00000000037aba80  0x00000000004013c1
0x00007ffd3a591660:  0x0000000000000020  0x00007f7349c07640
0x00007ffd3a591670:  0x0000000000000000  0x00007ffd3a5918a0
0x00007ffd3a591680:  0x00007f7349c07640  0x0000000001caebba

goroutine 1 [running]:
runtime.systemstack_switch()
    /opt/hostedtoolcache/go/1.19.12/x64/src/runtime/asm_amd64.s:459 fp=0xc000084780 sp=0xc000084778 pc=0x46e2c0
runtime.main()
    /opt/hostedtoolcache/go/1.19.12/x64/src/runtime/proc.go:170 +0x6d fp=0xc0000847e0 sp=0xc000084780 pc=0x43e2ad
runtime.goexit()
    /opt/hostedtoolcache/go/1.19.12/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000847e8 sp=0xc0000847e0 pc=0x4704e1

rax    0x0
rbx    0x3b463c0
rcx    0xffffffffffffffff
rdx    0x6
rdi    0x1
rsi    0x1
rbp    0x1
rsp    0x7ffd3a591590
r8     0x7ffd3a591660
r9     0x0
r10    0x8
r11    0x246
r12    0x6
r13    0x16
r14    0x3778ca0
r15    0x7f7349d2835b
rip    0x1caf90c
rflags 0x246
cs     0x33
fs     0x0
gs     0x0
[root@10-6-201-200 ~]#
grokspawn commented 11 months ago

Hi @learner0810. Can you share which operator you were trying to install as well as what OS you were using? This looks like a runtime error but we need more information on what steps you were following.
I'm also going to move this to the olm repo so it can reach the right audience.

kevinrizza commented 11 months ago

What container runtime are you using on your cluster? I'm guessing this is something on your system not playing nice with the c bindings used for the sqlite database that OLM uses to host operator metadata.

learner0810 commented 11 months ago

What container runtime are you using on your cluster? I'm guessing this is something on your system not playing nice with the c bindings used for the sqlite database that OLM uses to host operator metadata.

Here is my OS and runtime information. No matter which operator I install, I get this error

[root@10-6-201-200 ~]# kubectl get node -owide
NAME                         STATUS   ROLES                  AGE   VERSION   INTERNAL-IP   EXTERNAL-IP   OS-IMAGE       KERNEL-VERSION           CONTAINER-RUNTIME
kind-cluster-control-plane   Ready    control-plane,master   10d   v1.21.1   172.18.0.2    <none>        Ubuntu 21.04   3.10.0-1160.el7.x86_64   containerd://1.5.2
[root@10-6-201-200 ~]#

[root@10-6-201-200 ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@10-6-201-200 ~]# uname -a
Linux 10-6-201-200 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@10-6-201-200 ~]#
learner0810 commented 11 months ago

What container runtime are you using on your cluster? I'm guessing this is something on your system not playing nice with the c bindings used for the sqlite database that OLM uses to host operator metadata.

Here is my runtime information.

[root@10-6-201-200 ~]# kubectl get node -owide
NAME                         STATUS   ROLES                  AGE   VERSION   INTERNAL-IP   EXTERNAL-IP   OS-IMAGE       KERNEL-VERSION           CONTAINER-RUNTIME
kind-cluster-control-plane   Ready    control-plane,master   10d   v1.21.1   172.18.0.2    <none>        Ubuntu 21.04   3.10.0-1160.el7.x86_64   containerd://1.5.2
[root@10-6-201-200 ~]#