From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 42EB9A263 for ; Mon, 4 Apr 2022 17:00:21 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4119AFAAB for ; Mon, 4 Apr 2022 17:00:21 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 30643FA6F for ; Mon, 4 Apr 2022 17:00:18 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 0AFF241DEA for ; Mon, 4 Apr 2022 17:00:18 +0200 (CEST) Date: Mon, 04 Apr 2022 16:59:58 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox VE development discussion References: <20220317113107.60466-1-f.ebner@proxmox.com> In-Reply-To: <20220317113107.60466-1-f.ebner@proxmox.com> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1649084340.1kiggnmvht.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.178 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] applied: [PATCH-SERIES v13 qemu-server/manager] API for disk import and OVF X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2022 15:00:21 -0000 the qemu-server part with one slight fixup (readovf API endpoint renamed=20 from 'index' to 'readovf'). the manager part should be applied once=20 we've bumped qemu-server or when the GUI patches are ready. On March 17, 2022 12:30 pm, Fabian Ebner wrote: > Extend qm importdisk/importovf functionality to the API. >=20 > Changes from v12: > * Drop already applied patches. > * Add some follow-up improvements related to clone: > * Aborting early for TPM state restriction. > * Check against a corner case with drive-mirror with different > drive names but with the same VM ID. > * Clone EFI disk from snapshot when specified. > * Make readovf endpoint 'protected =3D> 1'. > * Group schema-related changes into a patch. > * Some smaller cleanups/improvements to checks (see individual > patches). >=20 > Still missing GUI integration for import from ovf, but that will be it's > own series. >=20 > Previous discussion here: > https://lists.proxmox.com/pipermail/pve-devel/2022-March/052005.html >=20 >=20 > qemu-server: >=20 > Dominic J=C3=A4ger (1): > api: support VM disk import >=20 > Fabian Ebner (7): > clone disk: assert that drive name is the same for drive-mirror on > single VM > clone disk: move check against cloning TPM state of running VM to > beginning > api: clone vm: check against cloning running TPM state early > clone disk: also clone EFI disk from snapshot > api: add endpoint for parsing .ovf files > schema: drive: use separate schema when disk allocation is possible > api: update vm: print drive string for newly allocated/imported drives >=20 > PVE/API2/Qemu.pm | 255 ++++++++++++++++++++++++++++++----- > PVE/API2/Qemu/Makefile | 2 +- > PVE/API2/Qemu/OVF.pm | 53 ++++++++ > PVE/QemuServer.pm | 70 ++++++++-- > PVE/QemuServer/Drive.pm | 95 +++++++++---- > PVE/QemuServer/ImportDisk.pm | 4 +- > 6 files changed, 412 insertions(+), 67 deletions(-) > create mode 100644 PVE/API2/Qemu/OVF.pm >=20 >=20 > manager: >=20 > Fabian Ebner (1): > api: nodes: add readovf endpoint >=20 > PVE/API2/Nodes.pm | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > --=20 > 2.30.2 >=20 >=20 >=20 > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel >=20