democratic-csi: Cannot delete zvol / iscsi datasets - dataset is busy
I’m running on a ubuntu 20.04 ZOL setup and am trying to delete a PVC created using ISCI/ZVOLs. I get the following error message from the csi-driver
error: handler error - driver: ControllerZfsGenericDriver method: DeleteVolume error: Error: cannot destroy 'fast/k8s/data/pvc-33cdd659-245a-4d18-aba8-4868e07e9ddc': dataset is busy
{
code: 13,
message: "Error: cannot destroy 'fast/k8s/data/pvc-33cdd659-245a-4d18-aba8-4868e07e9ddc': dataset is busy\n"
}
Looking in targetcli it appears the iscsi export isn’t being deleted:
/backstores/block> ls
o- block ...................................................................................................... [Storage Objects: 1]
o- default-testpvc .............. [/dev/zvol/fast/k8s/data/pvc-33cdd659-245a-4d18-aba8-4868e07e9ddc (5.0GiB) write-thru activated]
o- alua ....................................................................................................... [ALUA Groups: 1]
o- default_tg_pt_gp ........................................................................... [ALUA state: Active/optimized
Deleting the iscsi target with delete default-testpvc seems to clear up the issue. I’m not sure if I have a configuration option set incorrectly in zfs-generic-iscsi.yaml or if something else is going on. Any help would be greatly appreciated, and thanks for the great work. The combination of ZFS+snapshots+kubernetes is gold!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
I could potentially remove it yeah, but I’m guessing it’s a super-simple fix and shouldn’t take much to fix up.