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 977496BECF for ; Tue, 21 Sep 2021 15:46:43 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9578AF39C for ; Tue, 21 Sep 2021 15:46:43 +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 F0925F38C for ; Tue, 21 Sep 2021 15:46:41 +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 C9589448C4 for ; Tue, 21 Sep 2021 15:46:41 +0200 (CEST) Message-ID: Date: Tue, 21 Sep 2021 15:45:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:93.0) Gecko/20100101 Thunderbird/93.0 Content-Language: en-US To: Proxmox Backup Server development discussion , Dominik Csapak References: <20210921101118.2640200-1-d.csapak@proxmox.com> From: Thomas Lamprecht In-Reply-To: <20210921101118.2640200-1-d.csapak@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.253 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 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] Subject: [pbs-devel] applied-series: [PATCH proxmox-backup v4 0/7] add 'proxmox-backup-debug api' commands X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 13:46:43 -0000 On 21.09.21 12:11, Dominik Csapak wrote: > this series is a successor to my previous 'pbs-shell' series [0] > code wise its mostly the same but now a subcommand of 'proxmox-backup-debug' > > changes from v3: > * rebase on master (use normalize_path_uri from proxmox_rest_server) > * fix worker task log output (upid was not wrapped in {data:upid}) > > changes from v2: > * now subcommand api of proxmox-backup-debug > * use http api on localhost by default > * add PROXMOX_DEBUG_API_CODE env variable to execute code directly > * use a macro for the completion helper calls > * combine get/post/put/delete requests into one and use 'fixed_param' > * drop priviliges to the backup user when executing 'non-protected' api > calls directly > > changes from v1: > * rebase on master > * rename 'path' parameter to 'api-path' since it clashed with some > api calls that had a 'path variable' > * better handle workers: > we must always wait for the local workers and do not need to > print their logs, since most workers print to stdout if the > rpcenv type is CLI. Also catch Ctrl+C and try to abort the worker > > 0: https://lists.proxmox.com/pipermail/pbs-devel/2021-September/003974.html > > Dominik Csapak (7): > server: refactor abort_local_worker > move proxmox-backup-debug back to main crate > proxmox-backup-debug: add 'api' subcommands > api2: add missing token list match_all property > api2: make some workers log on CLI > docs: add proxmox-backup-debug to the list of command line tools > docs: proxmox-backup-debug: add info about the 'api' subcommand applied, thanks! for `ls` I made the path optional with "/" as default in a followup, irked a bit in pvesh since quite a bit (but not yet done there)