环境信息:
RKE2 版本:
v1.26.4+rke2r1
节点 CPU 架构,操作系统和版本:
Linux rke2-server01 5.4.232-1.el7.elrepo.x86_64 #1 SMP Tue Feb 21 16:18:52 EST 2023 x86_64 x86_64 x86_64 GNU/Linux
集群配置:
1 servers
问题描述:
安装启动后kubelet.log一直打印FlexVolume: driver call failed: executable: /var/lib/kubelet/volumeplugins/nodeagent~uds/uds,节点一直NotReady,查看/var/lib/kubelet/volumeplugins/nodeagent~uds/目录,缺少uds可执行文件,不知是不是这个原因
重现步骤:
在github的release页面,下载rke2-images.linux-amd64.tar.zst,rke2.linux-amd64.tar.gz,sha256sum-amd64.txt,使用INSTALL_RKE2_ARTIFACT_PATH=/root/rke2-artifacts sh install.sh命令安装
预期结果:
节点Ready
实际结果:
节点NotReady
日志
E0529 14:51:10.025263 31010 driver-call.go:262] Failed to unmarshal output for command: init, output: “”, error: unexpected end of JSON input
W0529 14:51:10.025274 31010 driver-call.go:149] FlexVolume: driver call failed: executable: /var/lib/kubelet/volumeplugins/nodeagent~uds/uds, args: [init], error: executable file not found in $PATH, output: “”
E0529 14:51:10.025286 31010 plugins.go:736] “Error dynamically probing plugins” err=“error creating Flexvolume plugin from directory nodeagent~uds, skipping. Error: unexpected end of JSON input”
E0529 14:51:10.276591 31010 kubelet.go:2475] “Container runtime network not ready” networkReady=“NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized”
I0529 14:51:10.378779 31010 pod_startup_latency_tracker.go:102] “Observed pod startup duration” pod=“kube-system/kube-scheduler-rke2-server01” podStartSLOduration=9.378726461 pod.CreationTimestamp=“2023-05-29 14:51:01 +0800 CST” firstStartedPulling=“0001-01-01 00:00:00 +0000 UTC” lastFinishedPulling=“0001-01-01 00:00:00 +0000 UTC” observedRunningTime=“2023-05-29 14:51:10.369245317 +0800 CST m=+140.697835398” watchObservedRunningTime=“2023-05-29 14:51:10.378726461 +0800 CST m=+140.707316551”
E0529 14:51:15.277791 31010 kubelet.go:2475] “Container runtime network not ready” networkReady=“NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized”