<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="Helvetica, Arial, sans-serif">I have seen the same error
just recently as well. Actually the term "volume" never plaid any
role in my lxd life before that and I am still not really aware
what it actually represents and how it is related to snapshots.<br>
<br>
I didn't dig into it because it was not so pressing at the moment
and can't recall the exact details now but I think it was a very
similar scenario then the one you describe here.<br>
<br>
debian 9<br>
lxd 4.0.1 (from snap)<br>
<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 5/7/20 9:03 AM, Kees Bakker wrote:<br>
</div>
<blockquote type="cite"
cite="mid:78bfad6a-105c-e49a-5ade-24f9cd03f2bf@ghs.com">
<pre class="moz-quote-pre" wrap="">Hi,
When I want to delete a container I'm getting this error
root@ijssel:~# lxc delete jenkins
Error: Error deleting storage volume: Cannot remove a volume that has snapshots
However, it has no snapshots.
root@ijssel:~# lxc info jenkins
Name: jenkins
Location: ijssel
Remote: unix://
Architecture: x86_64
Created: 2020/04/24 09:01 UTC
Status: Stopped
Type: container
Profiles: default
This is on Ubuntu 20.04 with lxd 4.0.1 (14954) from snap.
The storage is lvm.
There is a little bit of history that is of interest.
I had a container, "jenkins-template", with a snapshot.
Then I did a "lxc copy" of that snapshot to a new container,
called "jenkins", the one that I'm trying to delete now.
In the meantime I have already deleted the snapshot of "jenkins-template",
because I thought that would help.
Now, there are no snapshots at all on the system. Still, the
delete gives me that error.
root@ijssel:~# lxc list
+----------------------+---------+----------------------+------+-----------+-----------+----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | LOCATION |
+----------------------+---------+----------------------+------+-----------+-----------+----------+
| jenkins | STOPPED | | | CONTAINER | 0 | ijssel |
+----------------------+---------+----------------------+------+-----------+-----------+----------+
| jenkins-master1 | RUNNING | 172.16.16.28 (eth0) | | CONTAINER | 0 | ijssel |
+----------------------+---------+----------------------+------+-----------+-----------+----------+
| jenkins-sirti | RUNNING | 172.16.16.104 (eth0) | | CONTAINER | 0 | ijssel |
+----------------------+---------+----------------------+------+-----------+-----------+----------+
| jenkins-slave001 | RUNNING | 10.189.232.51 (eth0) | | CONTAINER | 0 | ijssel |
+----------------------+---------+----------------------+------+-----------+-----------+----------+
| jenkins-template | STOPPED | | | CONTAINER | 0 | ijssel |
+----------------------+---------+----------------------+------+-----------+-----------+----------+
| jenkins-template-old | STOPPED | | | CONTAINER | 0 | ijssel |
+----------------------+---------+----------------------+------+-----------+-----------+----------+
| mindmap | RUNNING | 172.16.16.166 (eth0) | | CONTAINER | 0 | ijssel |
+----------------------+---------+----------------------+------+-----------+-----------+----------+
root@ijssel:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
LXDThinPool local twi-aotz-- <3,41t 3,83 3,34
containers_jenkins local Vwi-a-tz-- <9,32g LXDThinPool 15,04
containers_jenkins--master1 local Vwi-aotz-- <18,63g LXDThinPool 9,57
containers_jenkins--sirti local Vwi-aotz-- 465,66g LXDThinPool 26,40
containers_jenkins--slave001 local Vwi-aotz-- <9,32g LXDThinPool 9,91
containers_jenkins--template local Vwi-a-tz-- <9,32g LXDThinPool 12,58
containers_jenkins--template--old local Vwi-a-tz-- <9,32g LXDThinPool 28,78
containers_mindmap local Vwi-aotz-- <18,63g LXDThinPool 14,75
images_8e0308c73fb2a54a048916915a3437208cfa6fd9fb7e176ad75557f49b8eb522 local Vwi-a-tz-- <9,32g LXDThinPool 6,80
images_8e0f49176d7fc999becd40194a92231551c3d5109bd9327c443592443ba5e841 local Vwi-a-tz-- <9,32g LXDThinPool 6,84
home vg0 -wi-ao---- 50,00g
root vg0 -wi-ao---- 100,00g
How can I delete the container "jenkins"?
</pre>
</blockquote>
</body>
</html>