1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/vrtManager/tests
catborise ede9e0bca7 feat(instances): a guest that crashes or hangs is restarted or stopped
The VM Settings "When the guest crashes" choice (on_crash, restart for new
VMs) never acted: a guest reports a crash through a panic device, and the
panel gave VMs none. A guest whose kernel panicked stayed "running" until
someone noticed.

- new VMs get the panic device the host offers (get_panic_model: x86 ISA
  pvpanic, which Linux has built in and Windows gets with virtio-win; the
  PCI one elsewhere; ISA on x86 when libvirt does not tell), and an x86
  machine without a watchdog of its own (not q35, which has the iTCO; not
  microvm, which has no PCI bus) an i6300esb
- choosing Restart or Stop adds the panic device to a VM without one, an
  i6300esb when it has no watchdog (libvirt before 9.1 shows no iTCO on
  q35), and gives its watchdogs the matching action (reset, poweroff): a
  guest that arms its watchdog and hangs is met as one that crashed. A VM
  without these devices shows no choice made and says it cannot report a
  crash or a hang yet. From the next start, as before

Checked live on a Vagrant host with a guest whose init exits (kernel panic):
without the device it stayed "running (booted)"; after Stop it ended
"shut off (crashed)", after Restart it booted again.
2026-11-22 22:04:04 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
driver.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
fakes.py feat(vmbackups): what a VM's backup holds and the target files 2026-11-17 08:40:06 +03:00
livetest.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_agent_access.py fix(instances): power off does not wait a minute for a guest agent that hangs 2026-11-13 08:44:03 +03:00
test_backup.py feat(vmbackups): a backup's file names begin with its VM's name 2026-11-18 14:57:14 +03:00
test_change_network.py fix(nwfilters): two changes at once do not undo each other 2026-11-13 11:46:01 +03:00
test_clone_console.py fix(instances): a VNC password the browser console can send, kept as set 2026-11-13 22:49:12 +03:00
test_clone_nvram.py test: remove code no test run executes 2026-11-06 13:48:03 +03:00
test_cloud_init_seed.py test: remove code no test run executes 2026-11-06 13:48:03 +03:00
test_connection.py fix(computes): a changed compute does not use or list its old host 2026-11-12 09:19:03 +03:00
test_connection_threads.py test(connection): the thread tests wait for the opens they started 2026-11-08 22:38:07 +03:00
test_console_graphics.py fix(instances): console changes that cannot be made are refused, not reported as done 2026-11-13 22:49:28 +03:00
test_console_setters.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_create.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
test_device_edits.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
test_disk_copy_migration.py feat(migrations): a migration's bandwidth can be capped 2026-11-20 09:44:17 +03:00
test_disk_move.py test: remove code no test run executes 2026-11-06 13:48:03 +03:00
test_external_snapshots.py feat(vmbackups): incremental scheduled backups of running VMs 2026-11-17 17:12:05 +03:00
test_host_devices.py fix(instances): USB device changes as PCI ones; device refusals name no VM to owners 2026-11-11 22:58:40 +03:00
test_host_reads.py feat(storages): the pool page tells which VMs use each volume 2026-11-20 08:29:33 +03:00
test_instance_getters.py fix(quota): a disk whose size is unknown is not counted as 0 GiB 2026-11-07 16:19:12 +03:00
test_interface_addresses.py fix(instances): Guest Info fits the tab, reads odd agent answers and says when usage is unknown 2026-11-20 10:28:35 +03:00
test_interface_delete.py fix(interfaces): the interface the panel reaches its host by is kept 2026-11-12 16:17:33 +03:00
test_interface_reads.py fix(interfaces): the interface the panel reaches its host by is kept 2026-11-12 16:17:33 +03:00
test_interface_xml.py fix(interfaces): the interface the panel reaches its host by is kept 2026-11-12 16:17:33 +03:00
test_iso_media.py fix(vrtManager): an ISO put in a host CD-ROM drive is read 2026-11-08 14:40:26 +03:00
test_live_clone.py feat(vmbackups): back up a running or shut-off VM into a target 2026-11-17 09:13:59 +03:00
test_live_connection.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_live_disk_resize.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_live_incremental.py fix(vmbackups): an incremental backup needs room for its changed blocks only 2026-11-18 13:38:27 +03:00
test_live_iso.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_live_nvram.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_live_snapshots.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_live_tpm_backup.py feat(vmbackups): restore a backup's TPM state 2026-11-17 13:55:16 +03:00
test_live_xml.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_live_xml_effects.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_migration.py feat(migration): encrypt migrations over TLS between hosts that have it 2026-11-19 15:45:32 +03:00
test_network.py fix(networks): the XML editor does not overwrite a change made meanwhile 2026-11-12 13:30:09 +03:00
test_network_ip.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_nodedevs.py fix(instances): USB device changes as PCI ones; device refusals name no VM to owners 2026-11-11 22:58:40 +03:00
test_nwfilters.py fix(instances): a VM is not migrated to a host whose filters of its names differ 2026-11-13 11:46:01 +03:00
test_pci_rules.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_persistent_edits.py fix(instances): a VM's network cards name networks and filters its host has 2026-11-12 13:25:30 +03:00
test_pool_xml.py fix(storages): a device that holds data says how to erase it 2026-11-14 23:21:52 +03:00
test_rbd_disk.py fix(vrtManager): an RBD disk takes its pool's auth and monitors as they are 2026-11-08 14:42:20 +03:00
test_read_cache.py fix(quota): a disk whose size is unknown is not counted as 0 GiB 2026-11-07 16:19:12 +03:00
test_remove_nvram.py feat(computes): a host evacuates its chosen VMs to another host 2026-11-15 18:04:00 +03:00
test_resize_cpu.py fix(instances): a refused vCPU resize keeps the VM's vCPU hotplug 2026-11-11 12:55:34 +03:00
test_resize_disk.py test: remove code no test run executes 2026-11-06 13:48:03 +03:00
test_secrets.py fix(virtsecrets): a secret in use is not deleted by its UUID in capitals 2026-11-12 16:17:21 +03:00
test_usage.py test: remove code no test run executes 2026-11-06 13:48:03 +03:00
test_util.py refactor(vrtManager): new VM UUIDs come from uuid.uuid4() 2026-11-08 12:24:47 +03:00
test_volume_in_use.py feat(storages): the pool page tells which VMs use each volume 2026-11-20 08:29:33 +03:00
test_volume_xml.py refactor(vrtManager): a shut-off VM clone copies its disks with clone_volume 2026-11-14 19:43:11 +03:00
test_xml_safety.py refactor(vrtManager): a shut-off VM clone copies its disks with clone_volume 2026-11-14 19:43:11 +03:00
test_xpath_values.py test: remove code no test run executes 2026-11-06 13:48:03 +03:00