kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.5k stars 4.89k forks source link

在WSL2中使用device=docker安装lognhorn时iscsid永远会因为sendmsg: bug? ctrl_fd 5错误中止 #19400

Open pengln opened 3 months ago

pengln commented 3 months ago

重现问题所需的命令: 当使用longhorn创建一个pvc, 并在pod中使用该pvc时, 会永远无法分配到分区, 检查问题是iscsid在启动后会因为错误中止

失败的命令的完整输出

× iscsid.service - iSCSI initiator daemon (iscsid) Loaded: loaded (/lib/systemd/system/iscsid.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2024-08-11 09:15:05 UTC; 349ms ago TriggeredBy: ○ iscsid.socket Docs: man:iscsid(8) Process: 35037 ExecStartPre=/lib/open-iscsi/startup-checks.sh (code=exited, status=0/SUCCESS) Process: 35040 ExecStart=/sbin/iscsid (code=exited, status=0/SUCCESS) Main PID: 35042 (code=exited, status=255/EXCEPTION)

Aug 11 09:15:04 minikube-m02 systemd[1]: Starting iSCSI initiator daemon (iscsid)... Aug 11 09:15:04 minikube-m02 iscsid[35040]: iSCSI logger with pid=35041 started! Aug 11 09:15:04 minikube-m02 systemd[1]: Started iSCSI initiator daemon (iscsid). Aug 11 09:15:05 minikube-m02 systemd[1]: iscsid.service: Main process exited, code=exited, status=255/EXCEPTION Aug 11 09:15:05 minikube-m02 iscsid[35041]: iSCSI daemon with pid=35042 started! Aug 11 09:15:05 minikube-m02 iscsid[35041]: sendmsg: bug? ctrl_fd 5 Aug 11 09:15:05 minikube-m02 systemd[1]: iscsid.service: Failed with result 'exit-code'.

使用的操作系统版本: 使用的Windows10 WSL2 kernel版本是5.15.153.1(根据5.15.153.1-microsoft-standard-WSL2的内核编译开启了ISCSI_TCP模块)

这个ctrl_fd5网上有提到可能和netlink有关, 不知道是否是因为ubuntu 22.04的iscsid服务和这个kernel有兼容性问题. 由于Windows10无法在WSL2中开启KVM, 所以希望能帮忙解决

liangyuanpeng commented 3 months ago

/kind support

k8s-triage-robot commented 5 days ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale