[pve-devel] applied: [PATCH V3 qemu-server] Remove guest states to ensure no old states are exists
Dietmar Maurer
dietmar at proxmox.com
Tue Jun 27 15:32:36 CEST 2017
applied
Note: this is V4 ;-)
> On June 27, 2017 at 3:12 PM Wolfgang Link <w.link at proxmox.com> wrote:
>
>
> ---
> PVE/API2/Qemu.pm | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> PATCH V2
> Move delete_guest_states to ensure all checks are past.
>
> PATCH V3
> Move delete_guest_states to ensure all checks are past and config is lock.
>
> diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
> index da5f5b1..182af53 100644
> --- a/PVE/API2/Qemu.pm
> +++ b/PVE/API2/Qemu.pm
> @@ -526,6 +526,9 @@ __PACKAGE__->register_method({
> PVE::AccessControl::add_vm_to_pool($vmid, $pool) if $pool;
> };
>
> + # ensure no old replication state are exists
> + PVE::ReplicationState::delete_guest_states($vmid);
> +
> return $rpcenv->fork_worker('qmrestore', $vmid, $authuser, $realcmd);
> };
>
> @@ -534,6 +537,9 @@ __PACKAGE__->register_method({
> # test after locking
> PVE::Cluster::check_vmid_unused($vmid);
>
> + # ensure no old replication state are exists
> + PVE::ReplicationState::delete_guest_states($vmid);
> +
> my $realcmd = sub {
>
> my $vollist = [];
> --
> 2.11.0
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list