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:
parent
39ad472a7c
commit
46a611941e
10 changed files with 653 additions and 19 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue