kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

Failed to init OS: initOS.sh /bin/bash: Operation not permitted

Open nuaahuang opened this issue 2 years ago • 2 comments

What is version of KubeKey has the issue?

1.2.1

What is your os environment?

CentOS Linux release 7.8.2003 (Core)

KubeKey config file

all-in-one.

A clear and concise description of what happend.

all-in-one 模式下 使用root用户执行命令: ./kk create cluster --with-kubernetes v1.21.5 --with-kubesphere v3.2.1 -y 执行到Configuring operating system ... 时, echo xxxxxxxx...xxxx base64 -d > /tmp/kubekey/initOS.sh && chmod +x /tmp/kubekey/initOS.sh /bin/bash: Operation not permitted: Process exited with status 1 node=172.16.103.157 WARN[23:18:17 CST] Task failed ...
WARN[23:18:17 CST] error: interrupted by error
Error: Failed to init OS: interrupted by error 如图: image image

手动执行echo xxxxxxxx...xxxx base64 -d > /tmp/kubekey/initOS.sh && chmod +x /tmp/kubekey/initOS.sh 能执行成功,但没有用,当再次执行create cluster时,又会覆盖掉。 现在这个情况下,应该怎么办呢?

Relevant log output

No response

Additional information

No response

nuaahuang avatar Jan 04 '22 15:01 nuaahuang

我在一台全新的环境中可以跑起来了,但是前面的那台环境是什么情况呢

nuaahuang avatar Jan 05 '22 06:01 nuaahuang

centos默认的没有开启user namespace grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)" 执行后要reboot 就可以了

javaXiaoHan avatar Mar 10 '22 08:03 javaXiaoHan