Release 2.1.25~beta12
Fixes a destroy→create cascade where PVE's per-VM config lock
(/var/lock/qemu-server/lock-<vmid>.conf) stayed held past
destroy_vm's return and the next qm create on the same VMID
failed with can't lock file - got timeout.
proxmox-test-runner storage-plugin-validation hit this on every
subtest after the first, FAILing 7 of 15 capabilities.
What changed
-
Detached workers close inherited config-lock FDs. Both
_spawn_detached_dataset_delete's safety-net grandchild and the
imgdelUPID cleanup worker thatPVE::Storage::vdisk_free
forks afterfree_imagereturns inherit the destroying task's
open FD onlock-<vmid>.conf. Under Linux POSIX semantics the
flocklives with the open file description, so both parent
and child have to close before the lock releases — and the
grandchild sleeps 30 s, while the imgdel worker runs the slow
pool.dataset.delete. The workers now scan/proc/self/fdat
entry andPOSIX::closeany inherited
/var/lock/qemu-server/lock-*.conf, so destroy_vm's config
lock is released as soon as the synchronous phase finishes. -
iscsi.targetextent.deletestays on the synchronous path.
list_imagesiteratesiscsi.targetextent.queryto build the
volume listing, so a mapping that outlivesfree_imagemakes a
purged volid reappear inpvesm list/ storage-content output
until the imgdel worker catches up — which failed
disk_purge's immediate-after-purge assertion. The remaining
slow calls (iscsi.extent.delete,pool.dataset.delete, the
SCSI verify-disconnected poll, and the multipath WWID flush)
continue to run in the imgdel worker, wherelist_images
doesn't need them.
Validation
- 342 unit tests pass.
- Isolated repro (VMID 888, destroy → immediate create cycle, 5
trials): every trial passes with no lock-timeout messages.
Pre-fix: every trial failed. proxmox-test-runner storage-plugin-validation truenas-storage
on a 4-node PVE 9.1 cluster against TrueNAS 26.0 BETA — 3
passes back-to-back: 16 validated, 0 failed per pass
(pre-fix pass 1: 9 validated, 7 failed). The 3 "not tested"
rows are environmental (storage doesn't advertiseiso/vztmpl
content types; one migration prereq missing).
Install
wget https://github.com/truenas/truenas-proxmox-plugin/releases/download/v2.1.25-beta12/truenas-proxmox-plugin_2.1.25.beta12_all.deb
wget https://github.com/truenas/truenas-proxmox-plugin/releases/download/v2.1.25-beta12/SHA256SUMS
sha256sum -c SHA256SUMS
dpkg -i truenas-proxmox-plugin_2.1.25.beta12_all.deb
Full Changelog: v2.1.25-beta11...v2.1.25-beta12