1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00
webvirtcloud/instances
catborise db4cbf806a feat(vmbackups): VM owners back up and restore their VMs within a quota
A permission 'Can back up instances' lets a user back up the VMs they
may change into targets open to VM owners, restore those backups over
the VM or as a new VM, and delete the backups they took by hand. Each job
checks the rights at admission and again when it runs.

- A backup quota (GiB, in the user's quota) counts the owner's own
  backups: a backup being made holds its estimate, what its disks and the
  files below them hold. An owner's backups run one at a time, so each
  run's check sees the others.
- An owner restores as a new VM on the VM's compute, into its first
  disk's pool, within the VM quota; the job counts in it until its VM is
  recorded, as a clone does.
- An owner's restore over the VM removes the disks it ran from once the
  switch is done, unless another VM uses them: the owner cannot remove
  them.
- Recovery never begins a deletion the job had not begun.

Superusers keep everything they had.
2026-11-17 19:40:24 +03:00
..
api fix(instances): the REST API's list of all VMs reads the hosts first 2026-11-13 16:07:01 +03:00
migrations feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
templates fix(instances): the VM page's tab bar wraps instead of overflowing 2026-11-17 16:29:42 +03:00
templatetags fix(instances): a disk resize form grows the disk it showed 2026-11-12 22:09:34 +03:00
tests fix(instances): a VM with backup checkpoints is deleted and moved offline 2026-11-17 16:55:26 +03:00
__init__.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
addresses.py fix(instances): one guest's bad address no longer ends a search or the VM report 2026-11-13 16:07:12 +03:00
apps.py format python code with black 2022-11-02 08:54:35 +03:00
forms.py fix(instances): console changes that cannot be made are refused, not reported as done 2026-11-13 22:49:28 +03:00
jobs.py fix(instances): a VM with backup checkpoints is deleted and moved offline 2026-11-17 16:55:26 +03:00
models.py feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
report.py perf: the Logs and VM report downloads are written row by row 2026-11-05 18:58:13 +03:00
states.py feat(instances): the Power tab shows the VM's state and where each action takes it 2026-11-03 19:22:52 +03:00
urls.py perf(instances): a VM page does not wait for the guest agent's addresses 2026-11-07 15:42:49 +03:00
utils.py feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
views.py feat(vmbackups): back up a running or shut-off VM into a target 2026-11-17 09:13:59 +03:00