I am experiencing something similar to this:
But I don’t understand enough to fix the problem, so any help would be appreciated.
I just migrated from apt lxd 3.0.3 to snap lxd 5.0.1 using the following:
sudo snap install lxd --channel=4.0
sudo lxd.migrate
sudo snap refresh lxd --channel=5.0
Everything seemed to work fine. But I now get this when I try to delete a snapshot:
$ lxc delete pitemp/now
Error: Instance snapshot record count doesn't match instance snapshot volume record count
According to lxc info pitemp
, the snapshot appears to have been deleted.
Now when I try to create a snapshot using the same name I get this:
$ lxc snapshot pitemp now
Error: Create instance snapshot: Error inserting volume "pitemp/now" for project "default" in pool "default" of type "containers" into database "Insert volume snapshot: UNIQUE constraint failed: storage_volumes_snapshots.storage_volume_id, storage_volumes_snapshots.name"
And it does not create the snapshop.
If I try to create a new snapshop with a different name I get this:
lxc snapshot pitemp now2
Error: Instance snapshot record count doesn't match instance snapshot volume record count
I’m kinda dead in the water for snapshots. I welcome any guidance. Thanks.