Open snpyeso opened 2 years ago
已经把yum.config 设置成了 gpgcheck=0
請問你的主機OS系統的完整小版本號是什麼? 你選擇的CNI挿件是什麼類型?
如果你不知道在哪裡選擇CNI挿件,可以查看這裡( https://github.com/cloudnativer/kube-install/issues/21 )。
如果你選擇的CNI挿件不是强依賴高版本內核的話,可以按照這裡的方法( https://github.com/cloudnativer/kube-install/issues/20 )選擇跳過OS內核陞級步驟。
請問你的主機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
如果你選擇的CNI挿件不是强依賴高版本內核的話,可以按照這裡的方法( #20 )選擇跳過OS內核陞級步驟。
今天晚上回家测试下
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!