[pve-devel] [PATCH 13/19] phase3_cleanup : don't move source vmid.conf
Alexandre Derumier
aderumier at odiso.com
Wed Feb 22 14:33:37 CET 2017
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuMigrate.pm | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 7bd0d6f..67f7cd1 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -960,12 +960,15 @@ sub phase3_cleanup {
}
}
- # move config to remote node
- my $conffile = PVE::QemuConfig->config_file($vmid);
- my $newconffile = PVE::QemuConfig->config_file($vmid, $self->{node});
+ if (!$self->{opts}->{externalcluster}) {
+
+ # move config to remote node
+ my $conffile = PVE::QemuConfig->config_file($vmid);
+ my $newconffile = PVE::QemuConfig->config_file($vmid, $self->{node});
- die "Failed to move config to node '$self->{node}' - rename failed: $!\n"
- if !rename($conffile, $newconffile);
+ die "Failed to move config to node '$self->{node}' - rename failed: $!\n"
+ if !rename($conffile, $newconffile);
+ }
if ($self->{livemigration}) {
# now that config file is move, we can resume vm on target if livemigrate
--
2.1.4
More information about the pve-devel
mailing list