1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-01 16:36:06 +00:00
webvirtcloud/instances
catborise 5ab3644833 fix(instances): a disk move or migration leaves one check on a stuck host
Whether a moved disk's old file is used elsewhere is asked of every
compute in a thread the job waits on for at most 60 s. A host that did
not answer kept that thread, and each later disk move or migration left
one more. As the VM delete's check does, a compute that does not answer
is not asked again: the file counts as used, so it is kept.

Both checks marked a compute as not answering from the moment they
asked it. A check beside another one (two jobs at once) took a healthy
compute that the other was asking for a stuck one, and refused at once;
and two overlapping checks could both ask a stuck one, the first to end
clearing the mark of the other. Each call to a compute now records when
it started, and a compute counts as not answering only while a call to
it has run for 60 s, checked again just before each compute is asked.

And a VM delete's check whose thread had not yet reached the first
compute when the 60 s ran out found no failure and no compute it was at,
and answered that no file was used: the disks could have been deleted
unchecked. It now counts as not answered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
2026-11-10 13:48:14 +03:00
..
api perf(instances): a VM page does not wait for the guest agent's addresses 2026-11-07 15:42:49 +03:00
migrations fix(instances): a VM name of any length libvirt takes is kept 2026-11-10 13:11:22 +03:00
templates fix(logs): the VM page's Logs tab shows times as the Logs page does 2026-11-10 11:52:54 +03:00
templatetags chore: remove files nothing uses 2026-11-06 10:53:43 +03:00
tests fix(instances): a disk move or migration leaves one check on a stuck host 2026-11-10 13:48:14 +03:00
__init__.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
addresses.py feat(webvirtcloud): a request waiting on a host holds one thread, not a worker 2026-11-02 21:19:01 +03:00
apps.py format python code with black 2022-11-02 08:54:35 +03:00
forms.py fix(instances): a new VM's existing volume or template is taken from the chosen pool 2026-11-08 14:33:10 +03:00
jobs.py fix(instances): a VM name of any length libvirt takes is kept 2026-11-10 13:11:22 +03:00
models.py fix(instances): a VM name of any length libvirt takes is kept 2026-11-10 13:11:22 +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 fix(instances): a disk move or migration leaves one check on a stuck host 2026-11-10 13:48:14 +03:00
views.py fix(instances): the VM page's DRBD state does not rewrite the VM's record 2026-11-10 13:19:39 +03:00