VM delete pre-save was calling save_vm_instance() without template_id/ template_name, which unconditionally overwrites those fields on the existing cached row - so any non-force delete attempt (even one that later failed) permanently detached the VM from its source template and broke reinstall. Now the previous values are carried through. Also extend reinstall eligibility and the reinstall worker to cover QEMU VMs created via "Create VM from ISO" (template_name holds the ISO volid, same storage:content/file pattern already handled for LXC CT templates), recreating the VM from the same ISO on reinstall.
168 KiB
168 KiB