1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00
webvirtcloud/webvirtcloud
catborise bdc5569cc8 feat(instances): a VM a fault stopped or paused says why
libvirt gives each state its reason; the panel showed only the state, so a
VM QEMU paused because its storage filled up read "Suspended" like one an
administrator paused.

- instances.states.REASONS: the fault reasons told (disk error, watchdog,
  guest crash or kernel panic, a crash of the guest or its QEMU process,
  libvirt stopping it after a restart, failed post-copy migration, libvirt
  error, failed start); the ordinary ones (user, migration, snapshot) are not
- the lists read the reason with the state in their one getAllDomainStats
  call (get_domain_rows, get_domain_states: a change of reason reloads a
  list) and show it under the state badge
- the VM page reads state and reason in one virDomainGetState (a reason
  means something only with its own state) and tells it in an alert; a VM
  paused by a disk error names each disk and what it met
  (virDomainGetDiskErrors), and when a storage has no free space, what to
  do: an administrator frees space and resumes it. Disk errors are read
  only then: libvirt keeps the last one after a resume. The page's poll
  reloads on a change of reason too

Checked live on a Vagrant host: a guest filling a disk on a 40 MiB pool was
paused (I/O error, vda: no space); the page said so, and after the pool grew
and the VM was resumed the alert was gone.
2026-11-22 21:19:35 +03:00
..
tests feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
bootstrap.py fix(ui): forms ask one thing at a time, offer the host's pools and say less twice 2026-11-22 00:25:53 +03:00
bootstrap_icons.py chore(deps): the icons come from the committed cache, not django-bootstrap-icons 2026-11-05 12:37:51 +03:00
common_tags.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
gunicorn_worker.py feat(storages): a volume downloads from its pool page 2026-11-15 00:31:42 +03:00
log_context.py fix(logs): a job's rows carry the address it was asked from, and a cancel its own user 2026-11-07 14:36:44 +03:00
middleware.py fix(accounts): a page whose session ended says so; a form sent then is not lost in a 405 2026-11-21 23:48:34 +03:00
serializers.py fix(api): an error's status says what it is, and its body is always {"detail"} 2026-11-07 13:29:46 +03:00
settings-dev.py chore(settings): settings-dev without obsolete keys 2026-11-06 11:01:51 +03:00
settings.py fix(ui): forms ask one thing at a time, offer the host's pools and say less twice 2026-11-22 00:25:53 +03:00
test_runner.py fix(tests): the parallel test runner works on Python 3.14; CI tests 3.14 2026-11-07 21:47:09 +03:00
urls-api.py feat(vmbackups): back up a running or shut-off VM into a target 2026-11-17 09:13:59 +03:00
urls.py feat(alerts): mail and webhook alerts, and /healthz for a monitor 2026-11-19 16:10:37 +03:00
wsgi.py fix: stop ignoring SIGCHLD process-wide 2026-10-04 13:40:53 +03:00