Open imdingtalk opened 2 years ago
try to 👎:
cd /var/lib/sealer/data/my-cluster/rootfs && chmod +x scripts/* && cd scripts && bash init.sh /var/lib/docker sea.hub 5000
output:
+ cp ../bin/conntrack ../bin/containerd-rootless-setuptool.sh ../bin/containerd-rootless.sh ../bin/crictl ../bin/kubeadm ../bin/kubectl ../bin/kubelet ../bin/nerdctl ../bin/seautil /usr/bin
+ chmod a+x containerd.sh
+ /bin/bash containerd.sh sea.hub 5000
+ set -e
++ systemctl status containerd
++ echo 4
+ '[' 4 '!=' 0 ']'
+ tar -xvzf ../cri/containerd.tar.gz -C /
containerd.sh: line 20: tar: command not found
Try to deal with, all nodes install TAR
yum install -y tar
then rerun :
sealer apply -f Clusterfile --debug
still not work:
Error: mount rootfs failed exec init.sh failed failed to execute command(cd /var/lib/sealer/data/my-cluster/rootfs && chmod +x scripts/* && cd scripts && bash init.sh /var/lib/docker sea.hub 5000) on host(10.1.3.77): error(exit status 1)
try run:
cd /var/lib/sealer/data/my-cluster/rootfs && chmod +x scripts/* && cd scripts && bash init.sh /var/lib/docker sea.hub 5000
output:
.....
usr/local/bin/containerd-shim-runc-v1
usr/local/bin/critest
usr/local/bin/containerd-shim-runc-v2
usr/local/bin/containerd-stress
opt/containerd/
opt/containerd/cluster/
opt/containerd/cluster/version
opt/containerd/cluster/gce/
opt/containerd/cluster/gce/cni.template
opt/containerd/cluster/gce/env
opt/containerd/cluster/gce/configure.sh
opt/containerd/cluster/gce/cloud-init/
opt/containerd/cluster/gce/cloud-init/node.yaml
opt/containerd/cluster/gce/cloud-init/master.yaml
+ cp -rf ../lib64/libseccomp.so.2 ../lib64/libseccomp.so.2.5.1 /usr/lib64/
+ systemctl enable containerd.service
Failed to enable unit: Connection timed out
[root@localhost scripts]#
check containerd log,it said:
level=error msg="failed to load cni during init, please check CRI plugin status before setting up network for pods" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config"
try to enable containerd:
[root@localhost scripts]# systemctl enable containerd
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms), load average: 0.03 0.07 0.06 2/161 29694
solve this problem: 服务无法正常启动显示“failed to activ
then rerun:
sealer apply -f Clusterfile --debug
success!!
...
I0616 22:07:41.413819 6955 round_trippers.go:553] GET https://apiserver.cluster.local:6443/api/v1/nodes/worker-1?timeout=10s 404 Not Found in 3 milliseconds
I0616 22:07:41.912776 6955 round_trippers.go:553] GET https://apiserver.cluster.local:6443/api/v1/nodes/worker-1?timeout=10s 200 OK in 2 milliseconds
I0616 22:07:41.918123 6955 round_trippers.go:553] PATCH https://apiserver.cluster.local:6443/api/v1/nodes/worker-1?timeout=10s 200 OK in 4 milliseconds
This node has joined the cluster:
* Certificate signing request was sent to apiserver and a response was received.
* The Kubelet was informed of the new secure connection details.
Run 'kubectl get nodes' on the control-plane to see this node join the cluster.
2022-06-16 22:07:42 [INFO] [nodes.go:115] Succeeded in joining 10.1.3.78 as worker
2022-06-16 22:07:42 [INFO] [local.go:298] Succeeded in creating a new cluster, enjoy it!
@imdingtalk , appreciate your help to debug this. I think there is some misconfiguration on our containerd init scripts. which clusterimage version you used , let me to reproduce this problem.
@imdingtalk , appreciate your help to debug this. I think there is some misconfiguration on our containerd init scripts. which clusterimage version you used , let me to reproduce this problem.
kubernetes:v1.24.1 | d59e930f7212ea048368acb01ef7f8042c2ed8ffb6571baf5e24edf4b0c391d5 | amd64 | | 2022-06-16 20:02:26 | 651.54MB
-->
What happened:
What you expected to happen:
Of course it is successful
How to reproduce it (as minimally and precisely as possible):
just run
Anything else we need to know?:
Environment:
sealer version
):{"gitVersion":"v0.8.5","gitCommit":"f9c3d99","buildDate":"2022-04-28 14:16:58","goVersion":"go1.16.15","compiler":"gc","platform":"linux/amd64"}
cat /etc/os-release
):NAME="openEuler" VERSION="22.03 LTS" ID="openEuler" VERSION_ID="22.03" PRETTY_NAME="openEuler 22.03 LTS" ANSI_COLOR="0;31
uname -a
):Linux localhost.localdomain 5.10.0-60.18.0.50.oe2203.x86_64 #1 SMP Wed Mar 30 03:12:24 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux