Open robertwbl opened 3 months ago
Just to note that although not explicitly mentioned, the iscsi_tcp kernel module is also a requirement. Without it volumes will fail to attach to nodes and longhorn instance-manager logs will show: libkmod: kmod_module_insert_module: could not find module by name='iscsi_tcp'\niscsiadm: Could not insert module tcp. Kmod error -2\niscsiadm: iSCSI driver tcp is not loaded. Load the module then retry the command.\niscsiadm: Could not perform SendTargets discovery: iSCSI driver not found. Please make sure it is loaded, and retry the operation\n: exit status 12"
More details here: https://github.com/longhorn/longhorn/issues/1853
Another gottcha - If you want to use a Longhorn volume with the access mode of ReadWriteMany
(RWX) then nfs-utils
or nfs-common
is also required, else you'll run into errors along the lines of: [MountVolume.MountDevice failed for volume pvc-foo : rpc error: code = Internal desc = mount failed: exit status 32 Mounting command: /usr/local/sbin/nsmounter Mounting arguments: mount -t nfs -o :/pvc /var/lib/kubelet/plugins/kubernetes.io/csi/driver.longhorn.io/globalmount Output: mount: /var/lib/kubelet/plugins/kubernetes.io/csi/driver.longhorn.io/ globalmount bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.]
We should probably define a -longhorn
variant 🤔
open-iscsi
is in the baremetal
variant for SL Micro 6.0 (but might be missing from 5.5 🤔 )
Describe the solution you'd like: Longhorn has the following dependencies:
All of these except open-iscsi are included in SLE Micro, and given Longhorn is part of the Rancher family it feels appropriate to include this package so that when building a seed image via Elemental, we can use Elemental nodes as storage nodes with Longhorn in our cluster.
Anything else you would like to add: I tested a deployment of Longhorn on cluster nodes that didn't have this dependency and can confirm the deployment fails
Environment:
cat /etc/os-release
): v2.0.2kubectl version
): v1.28.9+k3s1