mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-24 07:53:43 +00:00
implement phase2_cleanup
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
b8d208023b
commit
c04b5b04de
@ -369,6 +369,23 @@ sub phase2 {
|
||||
}
|
||||
}
|
||||
|
||||
sub phase2_cleanup {
|
||||
my ($self, $vmid, $err) = @_;
|
||||
|
||||
$self->log('info', "aborting phase 2 - cleanup resources");
|
||||
|
||||
my $conf = $self->{vmconf};
|
||||
delete $conf->{lock};
|
||||
eval { PVE::QemuServer::update_config_nolock($vmid, $conf, 1) };
|
||||
if (my $err = $@) {
|
||||
$self->log('err', $err);
|
||||
}
|
||||
|
||||
## fixme : vm_stop_cleanup on target vm
|
||||
|
||||
|
||||
}
|
||||
|
||||
sub phase3 {
|
||||
my ($self, $vmid) = @_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user