-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] iSCSI driver does not work with Azure Linux AKS nodes #4153
Comments
are you able to workaround this issue by installing iscsiadm package on Mariner OS? CloudCopilot Open a terminal window on your Mariner OS system. Update the package list by running the following command: sudo yum update sudo yum install iscsi-initiator-utils |
Hi @andyzhangx, We’ll look at this Monday however as @jgmartinez wrote we didn’t observe this when using the regular Ubuntu image for our nodes. This is what we see when ssh’ing into the iscsi pod on Azure Linux: # cat /sbin/iscsiadm
#!/bin/sh
if [ -x /host/sbin/iscsiadm ]; then
chroot /host /sbin/iscsiadm "$@"
elif [ -x /host/usr/local/sbin/iscsiadm ]; then
chroot /host /usr/local/sbin/iscsiadm "$@"
elif [ -x /host/bin/iscsiadm ]; then
chroot /host /bin/iscsiadm "$@"
elif [ -x /host/usr/local/bin/iscsiadm ]; then
chroot /host /usr/local/bin/iscsiadm "$@"
else
chroot /host iscsiadm "$@"
fi
# ./sbin/iscsiadm
chroot: failed to run command 'iscsiadm': No such file or directory
# Cheers, |
Hi @andyzhangx, We managed to make it work in Azure Linux nodes following these steps:
After following these steps, we can confirm that the Azure Linux node mounts the Elastic SAN volume through iSCSI. We can assume that adding the |
would be fixed by Azure/AgentBaker#4159 |
Thanks, Andy! |
Describe the bug
AKS and Azure Linux nodes present an error when using the Kubernetes iSCSI driver, that prevents mounting volumes using the iSCSI protocol.
This protocol is used, among other services, by storage solutions like Azure Elastic SAN.
To Reproduce
Steps to reproduce the behavior:
MountVolume.SetUp failed for volume "iscsiplugin-pv" : rpc error: code = Internal desc = exit status 127
Expected behavior
The pod mounts the volume, gets deployed and the storage works as expected.
Screenshots



Environment (please complete the following information):
Additional context
The error is most likely caused because the Azure Linux image is missing the
iscsiadm
binary, which is used by the driver to mount the volumes in the nodes.This error can't be observed in Ubuntu Linux nodes, and the storage driver works as expected.
The text was updated successfully, but these errors were encountered: