LXC started without waiting for snippet storage to become available

fermino

New Member
Apr 22, 2025
1
0
1
Hey there!

I currently have some LXC containers that reside on a local disk, but have a hookscript residing on an external CIFS/SMB mount (managed through proxmox).

Everything works fine, except than when the node goes through a reboot the containers that depend on that script fail to start because the snippet storage has not been mounted yet:
Code:
TASK ERROR: hookscript error for 102 on pre-start: script 'external_cifs:snippets/stuff.pl' does not exist

I have found a post [1] where the recommended solution is to set a startup delay, but I would rather not do that, as I have some other instances that don't depend on the script and I'd prefer to avoid the downtime.

I understand that there is some logic to mount the required storages when the instances depend on them for the -let's say- root disk; couldn't the same be implemented for the snippets?

Thanks and kind regards!
Fermín Olaiz.

[1] https://forum.proxmox.com/threads/h...-script-does-not-exist-with-glusterfs.117870/
 
Hi,

yeah, i guess we're missing an 'activate_storage' in the exec hookscript path that would trigger the mount, etc.

would you mind opening a bug for that: https://bugzilla.proxmox.com so we can track it more easily?