]> git.proxmox.com Git - pve-guest-common.git/commit
Cleanup for stateless jobs.
authorWolfgang Link <w.link@proxmox.com>
Wed, 9 May 2018 12:48:21 +0000 (14:48 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 9 May 2018 13:10:30 +0000 (15:10 +0200)
commitd869a19c9ec50d25c7d65e105da1cc8d3d7ab9c9
tree43bcf0608555beb4672638869c84e742a809fdae
parent235b2c059ea41e9129c24def3223f26e387c3792
Cleanup for stateless jobs.

If a VM configuration has been manually moved or recovered by HA,
there is no status on this new node.
In this case, the replication snapshots still exist on the remote side.
It must be possible to remove a job without status,
otherwise, a new replication job on the same remote node will fail
and the disks will have to be manually removed.
When searching through the sorted_volumes generated from the VMID.conf,
we can be sure that every disk will be removed in the event
of a complete job removal on the remote side.

In the end, the remote_prepare_local_job calls on the remote side a prepare.
PVE/Replication.pm