Hi, I’m trying to user an Azure service account container as the storage backend for some of the containers, although it doesn’t seem to be working currently as the controllers said resource not found for some reason. And I couldn’t find any example of mounting an Azure Files container on Nomad either.
Does this happen when you try to register the volume (nomad volume register)? Does the volume already exist? Maybe check if the Nomad client has the proper Azure permissions as well.
Once you have the volume registered, you can use the volume block in your group and volume_mount in your tasks.
Checkout our E2E test suite for an example. It’s not for Azure, but once a volume is registered they work the same way.
I’m not registering an Azure managed disk tho. I’m trying to mount the storage account container, idk if that’s the same procedure. Does Nomad support mounting Azure Files or AWS EFS block storage?
I tried to mount it into a container, but it failed with the error:
failed to setup alloc: pre-run hook “csi_hook” failed: node plugin returned an internal error, check the plugin allocation logs for more information: rpc error: code = Internal desc = volume(Dev_Container_Storage#devcontainerstorage604#raspicsi) mount “//devcontainerstorage604.file.core.windows.net/raspicsi” on “/csi/staging/Dev_Container_Storage#devcontainerstorage604#raspicsi/rw-block-device-single-node-writer” failed with mount failed: exit status 32 Mounting command: mount Mounting arguments: -t cifs -o dir_mode=0777,actimeo=30,mfsymlinks,file_mode=0777, //devcontainerstorage604.file.core.windows.net/raspicsi /csi/staging/Dev_Container_Storage#devcontainerstorage604#raspicsi/rw-block-device-single-node-writer Output: mount error(2): No such file or directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)