I am trying to test with vcan before switching using a hardware can device but using the supplied debug DaemonSet (modified with a NodeSelector) and the supplied client Pod (with same NodeSelector).
Init container runs ok:
Succesfully installed and loaded the vcan kernel module
mknod: /var/run/k8s-socketcan/fakedev: File exists
Found containerd socket in /root/var/run/containerd/containerd.sock
The k8s-socketcan container comes up ok:
I0222 05:23:46.594984 50310 manager.go:42] Starting device plugin manager
I0222 05:23:46.595132 50310 manager.go:46] Registering for system signal notifications
I0222 05:23:46.596334 50310 manager.go:52] Registering for notifications of filesystem changes in device plugin directory
I0222 05:23:46.596598 50310 manager.go:60] Starting Discovery on new plugins
I0222 05:23:46.596650 50310 manager.go:66] Handling incoming signals
I0222 05:23:46.596714 50310 manager.go:71] Received new list of plugins: [vcan]
I0222 05:23:46.596940 50310 manager.go:110] Adding a new plugin "vcan"
I0222 05:23:46.596972 50310 socketcan.go:48] Creating device plugin vcan
I0222 05:23:46.597043 50310 plugin.go:64] vcan: Starting plugin server
I0222 05:23:46.597068 50310 plugin.go:95] vcan: Starting the DPI gRPC server
I0222 05:23:46.597894 50310 plugin.go:113] vcan: Serving requests...
I0222 05:23:56.601188 50310 plugin.go:129] vcan: Registering the DPI with Kubelet
I0222 05:23:56.601992 50310 plugin.go:141] vcan: Registration for endpoint k8s.collabora.com_vcan
I0222 05:25:15.352818 50310 socketcan.go:185] New allocation request: &{/tmp/k8s-socketcan/vcan-33 vcan0}
I0222 05:25:15.352993 50310 socketcan.go:185] New allocation request: &{/tmp/k8s-socketcan/vcan-0 vcan1}
I0222 05:25:20.354923 50310 socketcan.go:189] Trying to allocate: map[/tmp/k8s-socketcan/vcan-0:0x40000e4140 /tmp/k8s-socketcan/vcan-33:0x40000e4120]
I get a constant retry every 5 seconds with the message:
Trying to allocate: map[/tmp/k8s-socketcan/vcan-0:0x40000e4140 /tmp/k8s-socketcan/vcan-33:0x40000e4120]
In the k3s log I get:
"ListAndWatch ended unexpectedly for device plugin" err="rpc error: code = Unavailable desc = error reading from server: EOF" resource="k8s.collabora.com/vcan"
I have no vcan interfaces showing on my node or in my client pod.
I am running k3s 1.28.2.
Any help would be appreciated.
I am trying to test with vcan before switching using a hardware can device but using the supplied debug DaemonSet (modified with a NodeSelector) and the supplied client Pod (with same NodeSelector).
Init container runs ok:
The k8s-socketcan container comes up ok:
I get a constant retry every 5 seconds with the message:
Trying to allocate: map[/tmp/k8s-socketcan/vcan-0:0x40000e4140 /tmp/k8s-socketcan/vcan-33:0x40000e4120]In the k3s log I get:
"ListAndWatch ended unexpectedly for device plugin" err="rpc error: code = Unavailable desc = error reading from server: EOF" resource="k8s.collabora.com/vcan"I have no vcan interfaces showing on my node or in my client pod.
I am running k3s 1.28.2.
Any help would be appreciated.