1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00
webvirtcloud/vmbackups/tests
catborise 7e70595fd2 fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second
A download into a pool listed its volume while it was written. The page
let a superuser copy it (the copy got a half-written file, live), attach
it to a VM, or stop the pool under it. Now:

- the copy job claims its source volume shared, and the worker refuses
  a copy whose name the source's format changed before the claim;
- attaching an existing volume holds it exclusive from its first read,
  so neither a download nor a copy is under way, and its format is read
  after the download ended;
- stopping or deleting a pool (page and API) holds the pool exclusive,
  and its backup target's claim if it is one; restores claim the pools
  they write into shared.

Each is refused with the job in the way named, as a volume delete
already was.

The download recorded its progress every 16 MiB, so a slow server's
bar stayed empty for a long time; it records it each second, with the
cancel check. The worker checks the name is still free before it
starts. A snapshot name or tag typed in the VM list's bulk form keeps
the list from reloading, as a chosen VM did.
2026-11-20 15:38:06 +03:00
..
__init__.py feat(vmbackups): the backups app and its records 2026-11-17 07:32:35 +03:00
test_create.py feat(vmbackups): a backup's file names begin with its VM's name 2026-11-18 14:57:14 +03:00
test_delete.py fix(vmbackups): seventh audit: files of a VM named after a backup, restore-over page 2026-11-18 15:33:30 +03:00
test_import.py feat(vmbackups): a backup's file names begin with its VM's name 2026-11-18 14:57:14 +03:00
test_models.py feat(vmbackups): a backup's file names begin with its VM's name 2026-11-18 14:57:14 +03:00
test_owners.py fix(vmbackups): full audit: backup volumes attached, ended creates, refusals 2026-11-18 14:30:51 +03:00
test_policies.py feat(backups): a schedule also keeps weekly and monthly backups 2026-11-19 22:28:44 +03:00
test_policy_models.py feat(vmbackups): a schedule of every VM with a tag 2026-11-18 21:33:41 +03:00
test_restore.py fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second 2026-11-20 15:38:06 +03:00
test_restore_disk.py fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second 2026-11-20 15:38:06 +03:00
test_restore_over.py fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second 2026-11-20 15:38:06 +03:00
test_schedule.py feat(backups): a schedule also keeps weekly and monthly backups 2026-11-19 22:28:44 +03:00
test_targets.py fix(vmbackups): third audit: retention keep, target changes, import 2026-11-18 08:29:22 +03:00
test_verify.py fix: the API verifies a backup and shows what was found; Docker's health check reads /healthz 2026-11-19 21:03:54 +03:00