1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00
webvirtcloud/instances
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
..
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): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +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 feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +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(i18n): form fields shown with their form's label are translated 2026-11-21 15:41:11 +03:00
jobs.py fix: a downloading volume is not put in a new VM or a CD-ROM; slow downloads read as bytes come 2026-11-20 16:59:01 +03:00
models.py feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +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): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +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(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00
views.py feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00