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 04AAC99A7C for ; Thu, 16 Nov 2023 15:09:54 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D982C14DC8 for ; Thu, 16 Nov 2023 15:09:23 +0100 (CET) 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 for ; Thu, 16 Nov 2023 15:09:23 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id EAAB543927 for ; Thu, 16 Nov 2023 15:09:22 +0100 (CET) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Thu, 16 Nov 2023 15:09:12 +0100 Message-Id: <20231116140921.3854429-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.017 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy 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] [PATCH cluster/guest-common/qemu-server/container/manager v2] add backend profile support 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: Thu, 16 Nov 2023 14:09:54 -0000 This series aims to provide profile support when creating guests (ct/vm) so that users can reuse options without having to specify them every time. UI is still to follow, depends on [0] for the oneOf schema support. changes from v2: * rename get_guest_ready_config into load_profile * rename some variables * add type parameter to profile listing so we can filter * whitespace fixes * comment fixes changes from rfc/v1: * uses a section config with separated plugins, using the oneOf schema * move the parsing with preparing into a helper into the Plugin class * don't save the profile into the 'meta' option, but log it instead 0: https://lists.proxmox.com/pipermail/pve-devel/2023-November/060300.html pve-cluster: Dominik Csapak (1): add profiles.cfg to cluster fs src/PVE/Cluster.pm | 1 + src/pmxcfs/status.c | 1 + 2 files changed, 2 insertions(+) pve-guest-common: Dominik Csapak (1): add profiles section config plugin src/Makefile | 2 + src/PVE/Profiles/Plugin.pm | 83 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 src/PVE/Profiles/Plugin.pm qemu-server: Dominik Csapak (3): add the VM profiles plugin api: add profile option to create vm api call qm: register and init the profiles plugins PVE/API2/Qemu.pm | 23 +++++++++++++++++++++++ PVE/CLI/qm.pm | 6 ++++++ PVE/Makefile | 1 + PVE/Profiles/Makefile | 5 +++++ PVE/Profiles/VM.pm | 28 ++++++++++++++++++++++++++++ PVE/QemuServer.pm | 6 ++++++ 6 files changed, 69 insertions(+) create mode 100644 PVE/Profiles/Makefile create mode 100644 PVE/Profiles/VM.pm pve-container: Dominik Csapak (3): add the CT profiles plugin api: add profile option to create ct api call pct: register and init the profiles plugins src/PVE/API2/LXC.pm | 23 +++++++++++++++++++++++ src/PVE/CLI/pct.pm | 6 ++++++ src/PVE/Makefile | 1 + src/PVE/Profiles/CT.pm | 28 ++++++++++++++++++++++++++++ src/PVE/Profiles/Makefile | 4 ++++ 5 files changed, 62 insertions(+) create mode 100644 src/PVE/Profiles/CT.pm create mode 100644 src/PVE/Profiles/Makefile pve-manager: Dominik Csapak (1): api: add guest profile api endpoint PVE/API2/Cluster.pm | 7 + PVE/API2/Cluster/Makefile | 1 + PVE/API2/Cluster/Profiles.pm | 239 +++++++++++++++++++++++++++++++++++ 3 files changed, 247 insertions(+) create mode 100644 PVE/API2/Cluster/Profiles.pm -- 2.30.2