From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id AEE2D1FF15C for ; Fri, 14 Nov 2025 15:58:42 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 606BE1647F; Fri, 14 Nov 2025 15:59:32 +0100 (CET) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Fri, 14 Nov 2025 15:59:15 +0100 Message-ID: <20251114145927.3766668-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.028 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, cluster.pm, nodes.pm, httpserver.pm, restenvironment.pm, guest.pm, bulkaction.pm, lwp.pm, jsonschema.pm, pvesh.pm] Subject: [pve-devel] [PATCH apiclient/common/manager v4 0/5] implement cluster-wide bulk-actions for guests 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: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" This is a continuation of my previous patch[0]. It includes some changes on how we handle tokens/tickets as well as the gui is now using this too, which highlighted some choices in the api that i now changed (see the changelog for details) changes from v3: * fixed support for api token by prefixing them with 'PVEAPIToken=' changes from v2 (thanks @fabian for most of these): * handle tokens by exposing credentials via rpcenv * reauthenticate the client when the ticket are more than 1 hour old * use log_warn instead of 'warn' and 'print STDERR' where sensible (some places are now simply a 'print') * moved 'statestorage' check into the condition for 'to-disk' * removed one 'statestorage' permission check completely since now the target api can handle this check properly * adding some retrying logic for querying the task status * rename some api parameters to be more aligned with the gui changes from v1: * rebased on master (perltidy changes) * added missing suspend to index * refactored more functionality to be reused 0: https://lore.proxmox.com/pve-devel/20250814112659.2584520-1-d.csapak@proxmox.com/ pve-apiclient: Dominik Csapak (1): try to refresh ticket before an api call src/PVE/APIClient/LWP.pm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) pve-common: Dominik Csapak (1): json schema/rest environment: add 'expose_credentials' option src/PVE/JSONSchema.pm | 8 ++++++++ src/PVE/RESTEnvironment.pm | 14 ++++++++++++++ 2 files changed, 22 insertions(+) pve-manager: Dominik Csapak (3): http server/pvesh: set credentials if necessary api: implement node-independent bulk actions ui: add bulk actions to the datacenter level PVE/API2/Cluster.pm | 7 + PVE/API2/Cluster/BulkAction.pm | 45 ++ PVE/API2/Cluster/BulkAction/Guest.pm | 774 +++++++++++++++++++++++++++ PVE/API2/Cluster/BulkAction/Makefile | 17 + PVE/API2/Cluster/Makefile | 4 +- PVE/API2/Nodes.pm | 24 +- PVE/CLI/pvesh.pm | 18 + PVE/HTTPServer.pm | 5 + www/manager6/dc/Config.js | 68 +++ www/manager6/window/BulkAction.js | 50 +- 10 files changed, 991 insertions(+), 21 deletions(-) create mode 100644 PVE/API2/Cluster/BulkAction.pm create mode 100644 PVE/API2/Cluster/BulkAction/Guest.pm create mode 100644 PVE/API2/Cluster/BulkAction/Makefile Summary over all repositories: 13 files changed, 1033 insertions(+), 22 deletions(-) -- Generated by git-murpp 0.8.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel