1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00
webvirtcloud/instances
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
..
api feat(instances): a protected VM is not deleted nor restored over 2026-11-19 22:00:25 +03:00
migrations fix(computes): a VM that returns gets its protection, schedules and backups back 2026-11-20 08:17:23 +03:00
templates feat(instances): snapshot the VMs chosen on the VM list 2026-11-20 14:24:46 +03:00
templatetags fix: power jobs name their action, refuse what does not apply and recover by the VM's state 2026-11-20 12:10:06 +03:00
tests 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
__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 feat(instances): snapshot the VMs chosen on the VM list 2026-11-20 14:24:46 +03:00
models.py fix: power jobs name their action, refuse what does not apply and recover by the VM's state 2026-11-20 12:10:06 +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 feat(instances): snapshot the VMs chosen on the VM list 2026-11-20 14:24:46 +03:00
utils.py feat(migrations): a migration's bandwidth can be capped 2026-11-20 09:44:17 +03:00
views.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