[pve-devel] [PATCH v2 qemu-server 15/16] phase1_cleanup: use unlock_vm
Alexandre Derumier
aderumier at odiso.com
Mon Mar 9 16:24:38 CET 2020
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuMigrate.pm | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 8e22368..f8061cf 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -528,12 +528,7 @@ sub phase1_cleanup {
$self->log('info', "aborting phase 1 - cleanup resources");
- my $conf = $self->{vmconf};
- delete $conf->{lock};
- eval { PVE::QemuConfig->write_config($vmid, $conf) };
- if (my $err = $@) {
- $self->log('err', $err);
- }
+ unlock_vm($self, $vmid);
if ($self->{volumes}) {
foreach my $volid (@{$self->{volumes}}) {
--
2.20.1
More information about the pve-devel
mailing list