1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-09 11:46:49 +00:00
webvirtcloud/storages/tests
catborise 2dee5ba41c fix(computes): a deleted compute's VMs keep their owners
Deleting a compute removed its VMs from the panel together with their
owners, while the VMs kept running on the host: added again, the host's
VMs came back with no owners. A compute's delete now treats each VM as
one that left its compute: its owners follow the same UUID on another
compute or wait in a tombstone for the retention period. One function,
forget(), does this for the refresh and for the delete; the API's
compute delete goes through the same model delete.

The delete holds the compute exclusive and locks its row before its
VMs', as the reconcile does: a reconcile, VM operation or job on the
compute makes it busy instead of losing owners to a concurrent restore
or deadlocking with it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 13:24:22 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_pools.py fix(storages): a new NFS pool starts when its mount point does not exist 2026-10-19 11:58:06 +03:00
test_pool_in_use.py fix: a network, pool or secret a VM needs is not stopped or deleted 2026-10-22 08:34:55 +03:00
test_pool_target.py fix(storages): Ceph and NFS pool values are escaped, host names may be long 2026-10-19 20:43:45 +03:00
test_pool_xml.py fix(storages): Ceph and NFS pool values are escaped, host names may be long 2026-10-19 20:43:45 +03:00
test_sftp_pipelined.py feat(storages): an ISO upload is a job 2026-10-16 11:53:59 +03:00
test_ssh_pool.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_upload_job.py fix(computes): a deleted compute's VMs keep their owners 2026-10-22 13:24:22 +03:00
test_views.py feat(storages): an ISO upload is a job 2026-10-16 11:53:59 +03:00
test_volume_clone_job.py feat(storages): volume clone runs as a job 2026-10-15 09:28:43 +03:00