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 7FC6D84DB7 for ; Thu, 16 Dec 2021 08:56:52 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 749261B640 for ; Thu, 16 Dec 2021 08:56:52 +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 id F282E1B635 for ; Thu, 16 Dec 2021 08:56:51 +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 C7E8345232 for ; Thu, 16 Dec 2021 08:56:51 +0100 (CET) Date: Thu, 16 Dec 2021 08:56:44 +0100 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox Backup Server development discussion References: <332e8099-faee-8be3-515a-d8af7bf937b5@open-e.com> In-Reply-To: <332e8099-faee-8be3-515a-d8af7bf937b5@open-e.com> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1639640828.chveaf6ryc.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.247 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 Subject: Re: [pbs-devel] [pve-devel][storage][ui] Debugging UI for storage 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: Thu, 16 Dec 2021 07:56:52 -0000 On December 15, 2021 4:51 pm, Andrei Perapiolkin wrote: > Hi, >=20 >=20 > Im working plugin for a proxmox so it can use third party data storage=20 > system. >=20 > And Im having a hard time with implementing `list_images` method for my=20 > plugin(/usr/share/perl5/PVE/Storage/Plugin.pm) >=20 > Periodically proxmox web UI fails to show list of specific=20 > volumes/images/backups using my plugin. >=20 > One out of 3 or 4 calls are failing with "Too many redirections (599)"=20 > error. that's strange - how's the load situation on the node? anything else=20 that looks interesting in the logs? > This happens while `pvesh` and `pvesm` works perfectly fine and deliver=20 > correct list on every call. those don't go through HTTP(S), so it's no surprise you don't see=20 HTTP-related issues there ;) if you want to test the HTTP part you could=20 use the perl API client (libpve-apiclient-perl) or plain curl (e.g., by=20 copying from your browser's dev console). > What am I missing? Is there any test sets that I can run to verify=20 > correctness of `list_images` output? >=20 > Or is there any efficient way to debug UI issues like this? one potentially relevant information would be how long a pvesm list=20 takes on average. the GUI has a 30s timeout for sync requests, listing=20 storage contents is done in a sync fashion.. are you doing the requests to the node where you are logged in, or is=20 this a proxied situation? login on node A, query storage on node A (directly handled by node A) vs login on node A, query storage on node B (transparently proxied to node B by node A) ?