mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-13 17:38:38 +00:00
Destroy all remote and local replication datasets when a VM will destroyed.
This commit is contained in:
parent
63d02c7074
commit
9b49ba658f
@ -1319,6 +1319,9 @@ __PACKAGE__->register_method({
|
|||||||
|
|
||||||
syslog('info', "destroy VM $vmid: $upid\n");
|
syslog('info', "destroy VM $vmid: $upid\n");
|
||||||
|
|
||||||
|
# return without error if vm has no replica job
|
||||||
|
PVE::ReplicationTools::destroy_replica($vmid);
|
||||||
|
|
||||||
PVE::QemuServer::vm_destroy($storecfg, $vmid, $skiplock);
|
PVE::QemuServer::vm_destroy($storecfg, $vmid, $skiplock);
|
||||||
|
|
||||||
PVE::AccessControl::remove_vm_access($vmid);
|
PVE::AccessControl::remove_vm_access($vmid);
|
||||||
|
Loading…
Reference in New Issue
Block a user