1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/instances/migrations
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
..
0001_initial.py lint with black python. convert f style strings to old one. some small fixes 2020-11-05 12:34:31 +03:00
0002_permissionset.py Added 'instances:clone_instances' permission 2020-05-28 11:20:23 +06:00
0003_auto_20200615_0637.py Added missing migrations 2020-06-15 12:38:44 +06:00
0004_auto_20200618_0817.py Instances overhaul 2020-07-13 15:33:09 +06:00
0005_flavor.py Instances overhaul 2020-07-13 15:33:09 +06:00
0006_addFlavors.py lint with black python. convert f style strings to old one. some small fixes 2020-11-05 12:34:31 +03:00
0007_auto_20200624_0821.py Instances overhaul 2020-07-13 15:33:09 +06:00
0008_auto_20200708_0950.py Instances overhaul 2020-07-13 15:33:09 +06:00
0009_auto_20200717_0524.py make console password optional for users with permissions 2020-07-17 11:05:47 +03:00
0010_auto_20220722_0812.py Rest framework (#24) 2022-08-22 15:12:33 +03:00
0011_createinstance_migrateinstance.py add missing migrations for new models 2022-08-24 09:34:16 +03:00
0012_instance_unique_compute_uuid.py fix(reconciliation): serialize compute sync and enforce UUID identity 2026-09-28 14:55:49 +03:00
0013_instancetombstone.py fix(computes): VM ownership survives a move or a short absence 2026-10-04 01:08:11 +03:00
0014_instancetombstone_host.py fix(admin): Removed VMs shows the host a VM left and confirms a delete 2026-10-26 11:48:40 +03:00
0015_remove_api_only_models.py refactor: the API's serializers and the new VM form no longer need models 2026-11-06 13:46:27 +03:00
0016_vm_name_length.py fix(instances): a VM name of any length libvirt takes is kept 2026-11-10 13:11:22 +03:00
0017_backup_permission.py feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00