1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-01 16:36:06 +00:00

fix(instances): a VM delete waits at most 60 s for another host's disk check

Deleting a VM with its disks first asks the other computes whether they
use its files. A host that is connected but does not answer (a hung NFS
mount under a pool) held the delete job for good, and with it a slot of
the worker: a few such deletes could fill the pool and stop the jobs of
healthy hosts. The check now waits USED_CHECK_WAIT, as the disk move and
migration checks do; a host that does not answer in time stops the
delete before anything changes, naming the host. Until it answers the
earlier check, a retried delete is refused at once instead of asking it
again, so the calls waiting on it do not pile up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
catborise 2026-11-09 16:12:11 +03:00
parent f6c7f8c85e
commit 8197e645f9
6 changed files with 82 additions and 13 deletions

Binary file not shown.

View file

@ -10017,3 +10017,7 @@ msgstr "Kullanım (RSS)"
#, python-format
msgid "%(label)s: %(vcpu)s vCPU, %(memory)s MiB, new %(disk)s GiB disk"
msgstr "%(label)s: %(vcpu)s vCPU, %(memory)s MiB, yeni %(disk)s GiB disk"
#, python-format
msgid "The disk files cannot be checked on %(host)s: it did not answer within %(seconds)s seconds"
msgstr "Disk dosyaları %(host)s üzerinde denetlenemiyor: %(seconds)s saniye içinde yanıt vermedi"

Binary file not shown.

View file

@ -9436,3 +9436,7 @@ msgstr "使用量 (RSS)"
#, python-format
msgid "%(label)s: %(vcpu)s vCPU, %(memory)s MiB, new %(disk)s GiB disk"
msgstr "%(label)s:%(vcpu)s 个 vCPU,%(memory)s MiB,新建 %(disk)s GiB 磁盘"
#, python-format
msgid "The disk files cannot be checked on %(host)s: it did not answer within %(seconds)s seconds"
msgstr "无法在 %(host)s 上检查磁盘文件:它在 %(seconds)s 秒内没有响应"