When i try to remove the snapshot i get the following error:
root@vps01:~# lxc delete centos-desk/02-05-20-22-33
Error: lstat /var/snap/lxd/common/lxd/storage-pools/storage1/containers-snapshots/centos-desk/02-05-20-22-33/: no such file or directory
Most of the time, the answer is to just create what LXD is looking for, then it can delete it, but the actual answer is somewhat dependent on the backend, so best to know that first.
In the past LXD was extremely accommodating to such situations, effectively never complaining if something it wanted to delete was gone already, but this also had the opposite effect of hiding some bugs or having systems keep operating when their storage was badly corrupted. Our newly rewritten storage layer expects what’s on disk to match what LXD knows should exist, if that’s not the case, we now error out rather than move on.
That’s stating clearly the reliability goals of LXD, People building production solutions on LXD should so be deeply aware that they have the burden of adding resilience to it.