[lxc-users] lxc-destroy: "container has snapshots" but it doesn't

Norberto Bensa nbensa+lxcusers at gmail.com
Tue Aug 29 23:59:37 UTC 2017


Hello,

I haven't read the code, but it seems lxc-destroy checks if there's a
'snaps' directory and if it exists the code asumes there's at least
one snapshot.


nbensa at tecno04:~$ sudo lxc-destroy -n eleva
[sudo] password for nbensa:
Destroying eleva failed: eleva has snapshots.
nbensa at tecno04:~$ sudo rmdir /var/lib/lxc/eleva/snaps
nbensa at tecno04:~$ sudo lxc-destroy -n eleva
Destroyed container eleva


nbensa at tecno04:~$ dpkg -l | grep lxc
ii  liblxc1
2.0.8-0ubuntu6~ubuntu16.04.1~ppa1               amd64        Linux
Containers userspace tools (library)
ii  lxc
2.0.8-0ubuntu6~ubuntu16.04.1~ppa1               all
Transitional package for lxc1
ii  lxc-common
2.0.8-0ubuntu6~ubuntu16.04.1~ppa1               amd64        Linux
Containers userspace tools (common tools)
ii  lxc-templates
2.0.8-0ubuntu6~ubuntu16.04.1~ppa1               amd64        Linux
Containers userspace tools (templates)
ii  lxc1
2.0.8-0ubuntu6~ubuntu16.04.1~ppa1               amd64        Linux
Containers userspace tools
ii  lxcfs
2.0.7-0ubuntu5~ubuntu16.04.1~ppa1               amd64        FUSE
based filesystem for LXC
ii  python3-lxc
2.0.8-0ubuntu6~ubuntu16.04.1~ppa1               amd64        Linux
Containers userspace tools (Python 3.x bindings)


More information about the lxc-users mailing list