What we changed
In the interface we fixed uploading and downloading .img images, aliases in IPSets, mapping name validation and IPv6 comments in the network selector. In the Perl backend, scheduled jobs no longer get stuck after losing a task log, pve-storage no longer deletes shared directories, migration names the snapshot holding a local ISO, and hugepages work with NUMA host nodes from 10 upwards.
What this work shows
- ExtJS forms with API-consistent validation
- Perl modules and Test::More tests
- QEMU migration and NUMA hugepages
- Patches through the pve-devel mailing list
What was broken The upload window got the file name and format wrong
The file field showed the name with the C:\fakepath\ prefix that browsers add on every system. A .img file uploaded or downloaded from a URL as import content got a .raw suffix, so a qcow2 image such as the Ubuntu cloud image was imported as a raw disk and the guest did not boot.
How we fixed it Just the file name and an explicit format choice
The field now shows only the name from the file object, and the upload itself works as before. For .img files the upload and download-from-URL windows show a format selector and append the extension of the chosen format, and the upload stays disabled until a format is picked.
#6475 #8015 #8015
What was broken Forms offered wrong values and dropped data
The window for adding an IPSet entry offered aliases already in the set, and picking one ended in an "already exists" error from the API. The name field of PCI, USB and directory mappings accepted any text, such as gpu@node1, and rejected it only after submitting, while the network selector dropped the comments of IPv6 entries.
How we fixed it An interface that matches the API
The alias selector receives the current entries and filters them out. Mapping name fields use the ConfigId validation, so the error shows at once and the tooltip lists the allowed characters. NetworkSelector takes the comment from the comments property, because that is where the API returns IPv6 comments, and it never returns comments6.
#7108 #5608 #6943
What was broken A scheduled job stopped for good
When the task log of a job's last run was gone, for example after a crash, the scheduler aborted its check with "no such task". The job was skipped on every iteration and never ran again until someone cleaned up its state file by hand.
How we fixed it A missing log no longer blocks the scheduler
In PVE/Jobs.pm we first check whether the task is still running. If it is not and the log is missing, the scheduler prints a warning, treats the task as failed and schedules the job again, as Proxmox Backup Server does.
#4986
What was broken Deleting the last file removed its directory
After removing a volume, free_image always tried to remove the parent directory. Deleting the last ISO, template, snippet or import file thus removed the shared content directory, and pvestatd re-created it as root:root, without the ownership and mode the admin had set up.
How we fixed it Cleanup only for per-guest directories
The empty parent directory is now removed only after guest disk images, the only volumes stored in per-guest directories. We added a free_image test for five content types that checks which directory stays.
#6969
What was broken Migration did not say where the ISO came from
When a VM no longer had a local ISO attached but a snapshot still referenced it, migration failed with "local cdrom image". The image was not in the current configuration, so the message gave no hint where it came from.
How we fixed it The error names the snapshot
The error now lists the snapshots that reference the image, as the message for a physical drive already did. We extended the migration test mocks to volumes other than disks and added a test with an ISO referenced only by a snapshot.
#4012 #4012
What was broken Hugepages rejected NUMA nodes from 10 upwards
With hugepages enabled, each guest NUMA node must be bound to a single host node. A regex that accepted only one digit checked this, so host node 10 and above failed with a misleading "more than 1 hostnode value" error, and hugepages were unusable on hosts with more than ten NUMA nodes.
How we fixed it Any single node number
The regex in hugepages_topology now accepts a node number of any length, while ranges and lists of nodes are still rejected. The memory tests cover host node 10.
#6907