1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-10 20:26:48 +00:00

feat(instances): a running VM can be cloned

libvirt's backup copies the disks of a running or paused VM from one
instant into new volumes while it keeps running; the clone is defined
shut off as before. The VM is held for the copy, the copy can be
cancelled, and recovery reads the job's records and libvirt.
This commit is contained in:
catborise 2026-10-16 15:49:35 +03:00
parent 39ad472a7c
commit 46a611941e
10 changed files with 653 additions and 19 deletions

View file

@ -192,6 +192,11 @@ class BackupTestCase(unittest.TestCase):
}
self.assertIsNone(p.backup_result())
def test_discard_reads_the_result_without_keeping_it(self):
p = proxy()
p.discard_backup_result()
p.instance.jobStats.assert_called_once_with(libvirt.VIR_DOMAIN_JOB_STATS_COMPLETED)
def test_freeze_thaw_abort(self):
p = proxy()
p.fs_freeze()