when snapd restarts and lxd is inactive it will not be added to interface repository, won’t have any plugs or slots to connect to, won’t work in practice
when old snapd starts the process (think: deb) and new one finishes the auto-connect task is missing
This script can be used to reproduce issues 1 and 2 easily:
We also have a general separate issue that any snap run - for example hooks or starting services - on a snap could fail if done while the snap base is inactive, because snap run might need to consult the current symlink of the base snap.
We probably can address this using carefully conflict checks, and setting up wait dependencies properly in multi snaps single changes.
To help in the future write tests for the scenario involved in 3., bad compatibility between new snapd expected state (also tasks) vs an old snapd from deb initiating its installation, I proposed this: