After naming a snapshot “test+sign”, its removal is painful.
Here is the issue
lxc snapshot ct3 test+sign #OK lxc delete ct3/test+sign # FAILED Error: Failed to fetch snapshot "test sign" of instance "ct3" in project "default": No such object
It seems the plus sign gets ‘expanded’ and replaced by a blank character just before processing.
- lxd sql global ‘delete from storage_volumes_snapshots where name=“test+sign”’
- lxd sql global ‘delete from instances_snapshots where name=“test+sign”’
- then, … deleting the subvolume with BTRFS (or similar command for ZFS)
- btrfs subvolume delete /POOL1/containers-snapshots/ct3/test+sign