1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00
webvirtcloud/computes/tests
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
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
fakes.py fix(computes): a libvirt host is one compute, and a compute's VMs stay on their host 2026-11-12 09:19:03 +03:00
test_api_security.py refactor(computes): the lock helpers take claims instead of file locks 2026-10-14 23:27:57 +03:00
test_attention.py fix: the host comparison reads afresh, skips silent hosts and unread listings; bulk form limit 2026-11-20 13:58:48 +03:00
test_audit_rows.py fix(computes): a libvirt host is one compute, and a compute's VMs stay on their host 2026-11-12 09:19:03 +03:00
test_balance.py fix(computes): a host's maintenance shows only its own bulk migration; the panel's refusals are not libvirt errors 2026-11-16 20:30:54 +03:00
test_balance_js.py fix(computes): the Balance page shows each host's load as bars 2026-11-16 08:11:47 +03:00
test_bulk_migrate.py feat(bulk migrate): choose the VMs by tag 2026-11-18 21:20:19 +03:00
test_bulk_migrate_js.py fix(tags): second audit: unchanged saves, report, other lists, hosts list 2026-11-18 23:15:34 +03:00
test_capacity.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
test_changed_connection.py fix(computes): a changed compute does not use or list its old host 2026-11-12 09:19:03 +03:00
test_compute_form.py fix(computes): the compute forms save their own kind, a password as typed, and say when the host is not reached 2026-11-12 09:19:15 +03:00
test_compute_password.py fix(computes): a libvirt host is one compute, and a compute's VMs stay on their host 2026-11-12 09:19:03 +03:00
test_cpu_graph.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
test_gstfsd_key.py fix(computes): a libvirt host is one compute, and a compute's VMs stay on their host 2026-11-12 09:19:03 +03:00
test_host_identity.py fix(computes): a libvirt host is one compute, and a compute's VMs stay on their host 2026-11-12 09:19:03 +03:00
test_host_nav.py style(computes): the host's sections on one line in every theme 2026-10-29 15:50:31 +03:00
test_list_hosts.py feat(computes): a box on the Computes page tells what wants a look 2026-11-19 23:22:35 +03:00
test_maintenance.py feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00
test_migration_address.py feat(migrations): a migration's bandwidth can be capped 2026-11-20 09:44:17 +03:00
test_operation_locks.py fix(backups): a schedule of every VM of a compute reads the host's VMs 2026-11-19 15:15:11 +03:00
test_overview.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
test_overview_status.py feat(computes): the Computes list on Bootstrap's cards, badges, bars and menus 2026-10-27 21:52:08 +03:00
test_ownership.py fix(computes): a VM that returns gets its protection, schedules and backups back 2026-11-20 08:17:23 +03:00
test_ownership_race.py test: the computes tests share one fake libvirt domain 2026-11-06 13:48:03 +03:00
test_reach.py feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once 2026-11-16 10:29:07 +03:00
test_reconciliation.py fix(instances): a VM name of any length libvirt takes is kept 2026-11-10 13:11:22 +03:00
test_tags.py fix(tags): the tag pills count as the state pills do 2026-11-19 10:49:45 +03:00
test_unreachable_host_pages.py fix(console,computes): an unreachable host is named as the cause, not an empty list 2026-11-06 23:08:11 +03:00
test_validators.py fix(computes): the compute forms save their own kind, a password as typed, and say when the host is not reached 2026-11-12 09:19:15 +03:00
test_views.py fix(computes): a libvirt host is one compute, and a compute's VMs stay on their host 2026-11-12 09:19:03 +03:00