use PVE::Cluster;
use PVE::Storage;
+use PVE::ReplicationConfig;
+use PVE::Replication;
+
my $nodename = PVE::INotify::nodename();
# Printable string, currently either "VM" or "CT"
# $cleanup: for cleanup - simply ignores volumes without replicate feature
# $norerr: never raise exceptions - return undef instead
sub get_replicatable_volumes {
- my ($class, $storecfg, $conf, $cleanup, $noerr) = @_;
+ my ($class, $storecfg, $vmid, $conf, $cleanup, $noerr) = @_;
die "implement me - abstract method\n";
}
my $repl_conf = PVE::ReplicationConfig->new();
if ($repl_conf->check_for_existing_jobs($vmid, 1)) {
# remove all replication snapshots
- my $volumes = $class->get_replicatable_volumes($storecfg, $conf, 1);
+ my $volumes = $class->get_replicatable_volumes($storecfg, $vmid, $conf, 1);
my $sorted_volids = [ sort keys %$volumes ];
# remove all local replication snapshots (jobid => undef)