mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-04-29 09:57:03 +00:00
replication: also consider storages from replication state upon removal
This prevents left-over volume(s) in the following situation: 1. replication with volumes on different storages A and B 2. remove all volumes on storage B from the guest configuration 3. schedule full removal before the next normal replication runs Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
4c1bd50289
commit
1e6416f172
@ -270,6 +270,7 @@ sub replicate {
|
|||||||
if ($remove_job eq 'full' && $jobcfg->{target} ne $local_node) {
|
if ($remove_job eq 'full' && $jobcfg->{target} ne $local_node) {
|
||||||
# remove all remote volumes
|
# remove all remote volumes
|
||||||
my @store_list = map { (PVE::Storage::parse_volume_id($_))[0] } @$sorted_volids;
|
my @store_list = map { (PVE::Storage::parse_volume_id($_))[0] } @$sorted_volids;
|
||||||
|
push @store_list, @{$state->{storeid_list}};
|
||||||
|
|
||||||
my %hash = map { $_ => 1 } @store_list;
|
my %hash = map { $_ => 1 } @store_list;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user