ks-installer
ks-installer copied to clipboard
systemctl enable containerd should be checkd
what i do
kk create cluster -f config-sample.yaml -a kubesphere.tar.gz --with-kubernetes v1.21.5 --with-kubesphere v3.2.1 --with-packages
what happend
so should check whether systemctl enable containerd command have enabled and skip run it.
14:15:44 CST [ConfigureOSModule] configure the ntp server for each node
14:15:44 CST skipped: [node3]
14:15:44 CST skipped: [node1]
14:15:44 CST skipped: [node2]
14:15:44 CST [KubernetesStatusModule] Get kubernetes cluster status
14:15:45 CST success: [node1]
14:15:45 CST [InstallContainerModule] Sync docker binaries
14:15:53 CST success: [node1]
14:15:53 CST success: [node3]
14:15:53 CST success: [node2]
14:15:53 CST [InstallContainerModule] Generate containerd service
14:15:53 CST success: [node2]
14:15:53 CST success: [node1]
14:15:53 CST success: [node3]
14:15:53 CST [InstallContainerModule] Enable containerd
14:15:55 CST message: [node2]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:15:55 CST retry: [node2]
14:15:55 CST message: [node1]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:15:55 CST retry: [node1]
14:15:56 CST message: [node3]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:15:56 CST retry: [node3]
14:16:01 CST message: [node2]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:16:01 CST retry: [node2]
14:16:01 CST message: [node1]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:16:01 CST retry: [node1]
14:16:01 CST message: [node3]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:16:01 CST retry: [node3]
14:16:06 CST message: [node2]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:16:06 CST message: [node1]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:16:06 CST message: [node3]
enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
14:16:06 CST failed: [node2]
14:16:06 CST failed: [node1]
14:16:06 CST failed: [node3]
error: Pipeline[CreateClusterPipeline] execute failed: Module[InstallContainerModule] exec failed:
failed: [node2] [EnableContainerd] exec failed after 3 retires: enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
failed: [node1] [EnableContainerd] exec failed after 3 retires: enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
failed: [node3] [EnableContainerd] exec failed after 3 retires: enable and start containerd failed: Failed to exec command: sudo -E /bin/bash -c "systemctl daemon-reload && systemctl enable containerd && systemctl start containerd"
Failed to execute operation: File exists: Process exited with status 1
[root@harbor kubesphere]#
Yes, the next version of kubekey will optimize the installation of containerd.
https://github.com/kubesphere/kubekey/issues/1131