lxc 'delete' fails to destroy ZFS filesystem 'dataset is busy'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Medium
|
Colin Ian King | ||
lxc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm not sure exactly what got me into this state, but I have several lxc containers that cannot be deleted.
$ lxc info
<snip>
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
addresses: []
architectures:
- x86_64
- i686
certificate: |
-----BEGIN CERTIFICATE-----
<snip>
-----END CERTIFICATE-----
certificate_
driver: lxc
driver_version: 3.0.1
kernel: Linux
kernel_
kernel_version: 4.15.0-23-generic
server: lxd
server_pid: 15123
server_version: "3.2"
storage: zfs
storage_version: 0.7.5-1ubuntu15
server_clustered: false
server_name: milhouse
$ lxc delete --force b1
Error: Failed to destroy ZFS filesystem: cannot destroy 'default/
Talking in #lxc-dev, stgraber and sforeshee provided diagnosis:
| short version is that something unshared a mount namespace causing
| them to get a copy of the mount table at the time that dataset was
| mounted, which then prevents zfs from being able to destroy it)
The work around provided was
| you can unstick this particular issue by doing:
| grep default/
| then for any of the hits, do:
| nsenter -t PID -m -- umount /var/snap/
| then try the delete again
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-23-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
/dev/snd/
CurrentDesktop: ubuntu:GNOME
Date: Thu Jun 28 10:42:45 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (1071 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
MachineType: b'\xff\
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.174
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/09/2015
dmi.bios.vendor: Intel Corporation
dmi.bios.version: RYBDWi35.
dmi.board.
dmi.board.name: NUC5i5RYB
dmi.board.vendor: Intel Corporation
dmi.board.version: H40999-503
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: �������
dmi.chassis.
dmi.modalias: dmi:bvnIntelCor
dmi.product.family: �������
dmi.product.name: �������
dmi.product.
dmi.sys.vendor: �������
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
tags: | added: kernel-da-key |
tags: | added: cscc |
Changed in lxc (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in lxc (Ubuntu Cosmic): | |
status: | Confirmed → Fix Released |
Changed in lxc (Ubuntu Disco): | |
status: | New → Fix Released |
Changed in lxc (Ubuntu Eoan): | |
status: | Confirmed → Fix Released |
no longer affects: | linux (Ubuntu Eoan) |
no longer affects: | linux (Ubuntu Disco) |
no longer affects: | linux (Ubuntu Cosmic) |
Changed in linux (Ubuntu): | |
status: | Triaged → Invalid |
This change was made by a bot.