1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00
webvirtcloud/vrtManager/tests
catborise b70bab2144 fix(vrtManager): reconnect after a host's storage or network daemon restarts
On a host with libvirt's modular daemons, a restart of virtstoraged or
virtnetworkd (a package update, for one) left the panel's connection to
virtproxyd open and alive, but every later storage or network call on it
failed with "internal error: client socket is closed". Nothing replaced
it: the storage and network pages showed the error and the VM page gave
500 until the panel was restarted, and a clone running then waited in
recovery for up to an hour, holding its VM.

libvirt reports that error as an RPC internal error and does not say on
which connection, so the error handler now has the process retire its
open connections at the next get_connection: each opens again when next
asked. A retired connection stays with the threads that use them, its
close callback unregistered so that it closes once they are done; a
connection that failed or is opening keeps its retry delay. On compute1 the
pages answered again from the second request on, and the clone's job
failed at its first recovery check, 30 s later, freeing its VM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
2026-11-10 11:12:08 +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 fix(migrate): a disk of an LVM or disk pool does not count as shared with the destination 2026-11-07 22:39:26 +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 test: remove code no test run executes 2026-11-06 13:48:03 +03:00
test_change_network.py fix(vrtManager): a NIC's edit keeps the parameters of its filter 2026-11-08 14:38:53 +03:00
test_clone_console.py fix(instances): a new VM and each clone get a VNC password of their own 2026-11-06 20:00:43 +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(vrtManager): reconnect after a host's storage or network daemon restarts 2026-11-10 11:12:08 +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_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 fix(vrtManager): a new VM's disk path, network and filter names are XML text 2026-11-08 14:42:47 +03:00
test_device_edits.py fix(logs): a row says what happened: a recovered migration, a failed clone step, a device not there 2026-11-07 14:36:34 +03:00
test_disk_copy_migration.py fix(migrate): recovery removes the disk copies of a migration whose worker stopped 2026-11-07 23:10:19 +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 test(snapshots): check the call that creates a snapshot, not a wrapper of it 2026-11-08 20:50:05 +03:00
test_host_devices.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_host_reads.py perf(vrtManager): the domain capabilities and each pool's XML are parsed once 2026-11-08 12:06:37 +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 perf(instances): a VM page does not wait for the guest agent's addresses 2026-11-07 15:42:49 +03:00
test_interface_delete.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_interface_reads.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_interface_xml.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +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 fix(instances): recovery removes the UEFI variables copy of a clone that was not defined 2026-11-07 23:58:50 +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_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_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 fix(migrate): a shut-off VM whose NVRAM file is outside libvirt's directory is refused 2026-11-07 23:10:19 +03:00
test_network.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +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 test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_nwfilters.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +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 test: remove code no test run executes 2026-11-06 13:48:03 +03:00
test_pool_xml.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +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(instances): migrate a VM with its disks copied into pools of the destination 2026-10-29 19:46:31 +03:00
test_resize_cpu.py fix(vrtManager): a vCPU maximum the CPU topology does not make is refused first 2026-11-08 14:40:06 +03:00
test_resize_disk.py test: remove code no test run executes 2026-11-06 13:48:03 +03:00
test_secrets.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +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 fix(storages): a volume a running VM uses is not cloned 2026-11-07 23:56:04 +03:00
test_volume_xml.py fix(vrtManager): a template's copy takes qcow2's options only as qcow2 2026-11-08 14:35:19 +03:00
test_xml_safety.py test(snapshots): check the call that creates a snapshot, not a wrapper of it 2026-11-08 20:50:05 +03:00
test_xpath_values.py test: remove code no test run executes 2026-11-06 13:48:03 +03:00