github truenas/truenas-proxmox-plugin v2.1.25-beta12

pre-releaseone hour ago

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
    imgdel UPID cleanup worker that PVE::Storage::vdisk_free
    forks after free_image returns inherit the destroying task's
    open FD on lock-<vmid>.conf. Under Linux POSIX semantics the
    flock lives 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/fd at
    entry and POSIX::close any inherited
    /var/lock/qemu-server/lock-*.conf, so destroy_vm's config
    lock is released as soon as the synchronous phase finishes.

  • iscsi.targetextent.delete stays on the synchronous path.
    list_images iterates iscsi.targetextent.query to build the
    volume listing, so a mapping that outlives free_image makes a
    purged volid reappear in pvesm 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, where list_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 advertise iso/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

Don't miss a new truenas-proxmox-plugin release

NewReleases is sending notifications on new releases.