Instance auto start dependencies
Being able to specify dependencies between containers would be a very useful feature in LXD. Before a container can start, all of it's dependencies must have started and sent the READY-event.
We might also want to add support for "light" dependencies which only affect autostart, but won't prevent a container from starting, similar to systemd's After option in the service definition.
We already have:
boot.autostartto force startup on bootboot.autostart.priorityto specify startup orderboot.autostart.delayto make containers "wait" longer until others are up
In case you want to specify dependencies, the last two are kind of a workaround and would not be required if we could specify dependencies by name directly. This could look like this:
boot.autostart.dependenies:
- container0
- container1
If this is purely a question of priorities but you're otherwise fine with adding that feature, I could also try to implement it. It can't hurt to get more familiar with LXDs code :grin:
If @stgraber is open to the idea then would be happy to assign to you.
Ive assigned it to you @M1cha as @stgraber added it to later tag, suggesting he approves of the idea. 😀
Yeah, I'm not generally opposed to it. We just need to be somewhat careful with handling of projects and in avoiding loops.