cloudnativer / kube-install

一键安装k8s(kubernetes):二進位離線方式部署,支持定時安裝、添加與銷毀node、銷毀與修復master、一鍵卸載集羣等。Install k8s (kubernetes): one click offline installation of highly available multiple kubernetes cluster, supports schedule installation, addition of nodes, rebuild of kubernetes master, and uninstallation of clusters.
Apache License 2.0
422 stars 118 forks source link

在部分centos7系统上遇到内核升级这一步失败的问题 #31

Open snpyeso opened 2 years ago

snpyeso commented 2 years ago

TASK [/root/kube-install/data/output/yangzujie_cluster/sys/0x0000000000base/kernel : 3.Update kernel and grub] *** changed: [10.0.4.11] changed: [172.17.0.17]

TASK [/root/kube-install/data/output/yangzujie_cluster/sys/0x0000000000base/kernel : shell] *** fatal: [172.17.0.17]: FAILED! => {"changed": true, "cmd": "/opt/kube-install/k8s/temp/updategrub.sh", "delta": "0:02:28.713121", "end": "2022-03-27 22:02:22.132428", "msg": "non-zero return code", "rc": 1, "start": "2022-03-27 21:59:53.419307", "stderr": "warning: /tmp/.kubeinstalltemp/data/yangzujie_cluster/temp/kernel4.19/kernel-ml-4.19.12-1.el7.elrepo.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID baadae52: NOKEY\n/opt/kube-install/k8s/temp/updategrub.sh: line 18: 1\n2-1: syntax error in expression (error token is \"2-1\")", "stderr_lines": ["warning: /tmp/.kubeinstalltemp/data/yangzujie_cluster/temp/kernel4.19/kernel-ml-4.19.12-1.el7.elrepo.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID baadae52: NOKEY", "/opt/kube-install/k8s/temp/updategrub.sh: line 18: 1", "2-1: syntax error in expression (error token is \"2-1\")"], "stdout": "", "stdout_lines": []} fatal: [10.0.4.11]: FAILED! => {"changed": true, "cmd": "/opt/kube-install/k8s/temp/updategrub.sh", "delta": "0:03:18.314072", "end": "2022-03-27 22:03:10.307655", "msg": "non-zero return code", "rc": 1, "start": "2022-03-27 21:59:51.993583", "stderr": "warning: /tmp/.kubeinstalltemp/data/yangzujie_cluster/temp/kernel4.19/kernel-ml-4.19.12-1.el7.elrepo.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID baadae52: NOKEY\n/opt/kube-install/k8s/temp/updategrub.sh: line 18: 1\n2-1: syntax error in expression (error token is \"2-1\")", "stderr_lines": ["warning: /tmp/.kubeinstalltemp/data/yangzujie_cluster/temp/kernel4.19/kernel-ml-4.19.12-1.el7.elrepo.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID baadae52: NOKEY", "/opt/kube-install/k8s/temp/updategrub.sh: line 18: 1", "2-1: syntax error in expression (error token is \"2-1\")"], "stdout": "", "stdout_lines": []}

PLAY RECAP ***** 10.0.4.11 : ok=81 changed=64 unreachable=0 failed=1 skipped=0 rescued=0 ignored=5
172.17.0.17 : ok=175 changed=139 unreachable=0 failed=1 skipped=0 rescued=0 ignored=7

[Error] 2022-03-27 22:03:11.883827535 +0800 CST m=+43248.461014392 Kubernetes install failed! There is an error in the process!


snpyeso commented 2 years ago

已经把yum.config 设置成了 gpgcheck=0

houseonline commented 2 years ago

請問你的主機OS系統的完整小版本號是什麼? 你選擇的CNI挿件是什麼類型?

如果你不知道在哪裡選擇CNI挿件,可以查看這裡( https://github.com/cloudnativer/kube-install/issues/21 )。

houseonline commented 2 years ago

如果你選擇的CNI挿件不是强依賴高版本內核的話,可以按照這裡的方法( https://github.com/cloudnativer/kube-install/issues/20 )選擇跳過OS內核陞級步驟。

snpyeso commented 2 years ago

請問你的主機OS系統的完整小版本號是什麼? 你選擇的CNI挿件是什麼類型?

如果你不知道在哪裡選擇CNI挿件,可以查看這裡( #21 )。

我的CNI 网络类型我测试了 Fannel与calico,我的OS系统完成版本为(uname- a输出结果) 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

snpyeso commented 2 years ago

如果你選擇的CNI挿件不是强依賴高版本內核的話,可以按照這裡的方法( #20 )選擇跳過OS內核陞級步驟。

今天晚上回家测试下