mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(computes): a VM that returns gets its protection, schedules and backups back
A VM that vanished from its compute, or whose compute was deleted and added again, came back with its owners and tags only: it was no longer protected, its schedules no longer backed it up, and its backups stayed unlinked, so its Backups tab no longer listed them and retention left them for good. The Removed VMs record now keeps its protection, its schedules and its own backups (not those of a copy under the same UUID), and gives them back. Turning protection on or off waits for the ownership step, so a VM dropped from its host's list meanwhile is not told protected.
This commit is contained in:
parent
5c7687c60d
commit
dc5b1dbb2a
14 changed files with 251 additions and 138 deletions
|
|
@ -866,7 +866,7 @@ What an update from an older version changes for operators and users. `manage.py
|
|||
- On a running VM the edit forms show the settings as they will be at the next start, so saving an edit no longer reverts another pending change.
|
||||
- External snapshots need libvirt 9.9 or newer on the computes. libvirt 9.10 (openEuler 24.03 LTS) refuses to revert a snapshot taken without memory of a running or paused VM ("Invalid target domain state 'disk-snapshot'"); 11.10 reverts it. A VM's snapshots form one chain: after a revert, delete the newer snapshots before taking another. An internal snapshot is reverted only on a shut-off VM. Snapshot names no longer get an `s1.` prefix. A snapshot an older version took of a UEFI VM can only be deleted, not reverted. On NFS, the qemu user needs write access to the image directory to remove merged snapshot files.
|
||||
- A storage volume a VM still needs (a disk, a backing file or a snapshot's file) is not deleted; deleting a VM with its files keeps a file another compute's VM or volume uses at the same path, and is refused before the VM is stopped when one of the other computes cannot be reached.
|
||||
- A VM that vanishes from its compute, or whose compute is deleted, keeps its owners for `INSTANCE_OWNERSHIP_RETENTION_DAYS` (30) in case the same UUID comes back; superusers manage these records on the "Removed VMs" page.
|
||||
- A VM that vanishes from its compute, or whose compute is deleted, keeps its owners, tags, protection and schedules for `INSTANCE_OWNERSHIP_RETENTION_DAYS` (30) in case the same UUID comes back, and its backups are linked to it again; superusers manage these records on the "Removed VMs" page.
|
||||
- The Logs page records who changed what (computes, users, groups, VM owners, settings, SSH keys, host networks, pools, volumes, interfaces, secrets and network filters), every login, failed login and lockout, and every page or API call answered 401 or 403 to a signed-in user or a request with credentials, with the address and the result (a VM hidden with 404 is not logged).
|
||||
- On a host whose libvirt cannot change network interfaces (the udev backend: RHEL 9 and later, Debian 12), the interface pages offer no create, start, stop or delete.
|
||||
- The panel is offered in English, Turkish and Simplified Chinese.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue