[pve-devel] [PATCH 2/2] fixed call for cfg file and error when CT is running and on local storage
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Sep 1 09:59:55 CEST 2015
When trying to migrate only throw an error when the CT is on an non
shared storage AND running.
Also fixed an remaining PVE::OpenVZ call to LXC.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
src/PVE/LXC/Migrate.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm
index 771174e..bf6d701 100644
--- a/src/PVE/LXC/Migrate.pm
+++ b/src/PVE/LXC/Migrate.pm
@@ -51,7 +51,7 @@ sub prepare {
PVE::Storage::storage_check_node($self->{storecfg}, $storage, $self->{node});
die "unable to migrate local mountpoint '$volid' while CT is running"
- if !$scfg->{shared};
+ if !$scfg->{shared} && $running;
});
@@ -100,8 +100,8 @@ sub phase1 {
}
});
- my $conffile = PVE::OpenVZ::config_file($vmid);
- my $newconffile = PVE::OpenVZ::config_file($vmid, $self->{node});
+ my $conffile = PVE::LXC::config_file($vmid);
+ my $newconffile = PVE::LXC::config_file($vmid, $self->{node});
if ($self->{running}) {
die "implement me";
--
2.1.4
More information about the pve-devel
mailing list