Closed MysticalMount closed 1 year ago
@frezbo could you please take a look, as you know this better
I think I replied to a similar issue on slack, but the csi has to be updated to execute commands in the iscsiadm pid namespace as mentioned here https://github.com/siderolabs/extensions/issues/38#issuecomment-1125403043
https://github.com/democratic-csi/democratic-csi#talos more detailed instructions are here
Thanks @frezbo - will try democratic-csi now
I can confirm I now have successfully connected using Talos and democratic-csi to my Synology NAS, could be just me but feel like democratic-csi is the way to go for this, but then thats the only method I managed to get working.
The key bit was as you highlighted in the Talos section above, to allow the alternate method of accessing iscsiadm in the node settings.
Much thanks, definitely improved my skills to a more advanced level in areas I thought I already knew!
Apologies if this isnt a bug, and is just me missing something somewhere, here goes...
My evaluation of Talos (a personal evaluation for my own Homelab usage!) has gone pretty well, k3os has reached EOL, and Talos just does the node management better overall.However Ive spent all weekend trying to get iScsi working, to start with from a Synology NAS but potentially other types of iScsi capable CSI devices in the future e.g. TrueNAS/CephFS
Managed to get to the point of adding the iscsi-tools extension - so now iscsiadm is installed on the node. I am using Talos v1.3.5 and Kubernetes 1.26.1 (whatever is default or Talos v1.3.5) However, iscsiadm seems to want to write to /etc/iscsi - I checked through a container mounted to the host root at /host, and was able to touch a hello file in /var, but in etc its readonly. I understand this is probably for good reason, what I cant understand, is how everyone has got iScsi to work with Talos, if iscsiadm cant be customised and always tries this write during iScsi discovery. The current logs:
Im probably missing something obvious, to get here there were a few things I had to do which Im going to revisit - as a new user to Talos, and my use case this might be worth mentioning:
Any help appreciated, been delving into some of the code but it seems no matter what I do Im hard blocked if iscsiadm always tries to write to /etc instead of some other writeable loction.
The provisioner is working as I can see that in the Synology admin interface, but mounting the drive from the node grrrrr having fun with this lolI staretd to look at democratic-csi which also supports Synology iScsi (experimentally) as it would be easier to adjust the deployment to work with TrueNAS/CephFS in the future - but then realised it may have the same problem with iscsiadm - hence this message