New Features (Experimental)
- Domain graceful shutdown on destroy — new
destroy.shutdown.timeoutoption onlibvirt_domainsends an ACPI shutdown signal and waits for the guest to power off cleanly before destroying it, instead of force-killing. Subject to change in future releases. - Pool lifecycle operation controls — new
createanddestroyblocks onlibvirt_poolgive explicit control over build, start, autostart, and backing storage deletion behavior during pool create/destroy. Subject to change in future releases.
Bug Fixes
- NVRAM/TPM files deleted on domain update — updating a domain (e.g. changing memory) would undefine and re-define it, deleting NVRAM and TPM state files in the process. The provider now passes
KEEP_NVRAMandKEEP_TPMundefine flags during updates. (#1232, @atopuzov) capacity_unitnot preserved on volume readback — specifyingcapacity_unit = "GiB"on a volume would cause "Provider produced inconsistent result after apply" on every apply, because libvirt normalizes to bytes in XML. The codegen now preserves the user's unit when the value was explicitly set. (#1253)- Dir pool backing path deleted on destroy —
terraform destroyof adirpool was callingStoragePoolDeletewhich removed the backing directory. The default behavior now preserves the directory (matchingvirsh pool-destroy+pool-undefine), with an explicitdestroy.delete = trueoverride available. (#1285)
Dependencies
- Bumped
github.com/cloudflare/circlfrom 1.6.1 to 1.6.3. (#1284)
Contributors
- @atopuzov (Aleksandar Topuzović)
- @dmacvicar (Duncan Mac-Vicar P.)