1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/instances/tests
catborise 5f8f7a8643 fix(instances): a snapshot needs free space in the VM's storage pools
A disk-only snapshot was taken without any space check, though its
overlays grow as the guest writes and a later delete merges them down;
a full pool pauses the guest and can leave the snapshot undeletable.
Only a memory snapshot was checked, for the memory alone.

Before a snapshot, each storage pool with a disk of the VM must have
free a share of those disks' virtual size (10%, at least 1 GiB), and
the pool of the memory file the VM's memory on top. Both values are on
the Settings page (Snapshot Free Percent, Snapshot Free Min GiB; 0
turns a rule off, an invalid value keeps the default). The pools are
refreshed first, and a failed refresh or an unreadable volume refuses
the snapshot instead of skipping the check; a disk in no pool is not
checked. Nothing is reserved: later writes can still fill a pool.
2026-10-13 13:27:39 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
livetest.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_change_network.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_change_xml.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_clone_disks.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_clone_permission.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_console_listener.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_console_rule.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_console_settings_access.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_create_dialog_cpu.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_create_instance.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_create_rollback.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_create_wizard_url.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_destroy.py fix(storages): keep volumes a VM still needs 2026-10-13 09:13:02 +03:00
test_detail_reads.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_detail_unreachable.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_disk_isolation.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_drbd_target.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_error_handling.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_gstfsd.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_index.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_index_host_alerts.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_list_rpc.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_list_unreachable.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_clone.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_create.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_dataloss.py fix(storages): keep volumes a VM still needs 2026-10-13 09:13:02 +03:00
test_live_disk_resize.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_guest.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_iso.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_snapshots.py fix(instances): a snapshot needs free space in the VM's storage pools 2026-10-13 13:27:39 +03:00
test_live_xml.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_xml_effects.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migrate_form.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migration_bookkeeping.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migration_log.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_missing_fields.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_moved_while_waiting.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_new_disk_name.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_page_controls.py feat(instances): external snapshots use libvirt's snapshot API 2026-10-12 15:25:44 +03:00
test_pending_edits.py feat(instances): external snapshots use libvirt's snapshot API 2026-10-12 15:25:44 +03:00
test_quota.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_quota_lock.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_root_pass.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_security_mutations.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_snapshot_views.py fix(instances): a snapshot needs free space in the VM's storage pools 2026-10-13 13:27:39 +03:00
test_states.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_stats_sample.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_template_flag.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_template_quota.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_template_rules.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_update_console.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_views.py fix(instances): snapshot tab reads less and fails less 2026-10-13 08:30:22 +03:00
test_xss.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00