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) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A41B385E0A for ; Tue, 21 Dec 2021 20:28:35 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8E6B2DB12 for ; Tue, 21 Dec 2021 20:28:05 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id E2357DB05 for ; Tue, 21 Dec 2021 20:28:03 +0100 (CET) Received: from [10.137.0.23] ([37.214.45.121]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MiakT-1mVwHY1Jot-00fgE9 for ; Tue, 21 Dec 2021 20:22:47 +0100 Message-ID: Date: Tue, 21 Dec 2021 14:22:44 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Content-Language: en-US To: pbs-devel@lists.proxmox.com References: <332e8099-faee-8be3-515a-d8af7bf937b5@open-e.com> <1639640828.chveaf6ryc.astroid@nora.none> From: Andrei Perapiolkin In-Reply-To: <1639640828.chveaf6ryc.astroid@nora.none> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:W69eUrym5/9xHeGgl7TmnSClBUckEKmgv3UaCDjTUQjg/M6QCU7 OP58hI4EP/x9GoVyc+f72zqhExaqtDwn/1+AeTtrdc7aBP7gvzAz+PZq/VZ6UaM5xEDXQa+ JinG8J9OykkLFOAwGwgqbceqYK1x2lvl/ncDpPK4wGxJkpUXKVrkURSo1W+/YqWUX3A/oaW qSjs7NOdsK9OnAu/dcPJg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NhR0arOa7C8=:wnxVGHjm0YT4WQC5MwOlyv 98FbPhm0QijdXFY9DOaAxO5ftfpdkiY6NAL/I8l1pp7IfMOfJk5X1nihU9+jwRZPf6we38agv ydjgVgTxdWFD059WQcGyPqS+/DBKd461Vvo23OxwjXsanfAYVRxGLJuV9PbDlwdxe10VcYzzP aBtl5oOIp0TxC/qTfWUVb9rZQ8d53lkwmvfGD4l1isnKKpmSQD6OxVO1NYa33AqUJJtqB8lD0 y/mxljr4s1yV1HHcwljpaCEqG7GNK0HyLv3FaJ2uCc3GYPCNoiJxgXE7nmOXFYpW1mt0+IK7R YchU4UxXNfjJl6ELQVRsLd/YkJtrsvHfS80kz6Zj1aQrT1YAosz98TdkSHzYrPuhE5uGgZnLG 53LYlTmUMryxUljL88XDUEWM5W69TzOVGYAUik7p5OLZ1ZkHaCUGfUkcyexRhRV4sTs/jTj7j NynooOAFLIoviMmMh5REMjTtGoYA1+J01bAu00KjVwbeS2/nSLyWQYbMRkY8mO40Ep4CkglbB ybPfCtYMcbZOkhKBBdPJPuNmbmBRGpcF9PR0RA7XQAvGQDPTQTVZt0a8bRXLI5qDPgqZhJpVr HLelPf558oqqJAUjCOb5S0G8CIMPY2WTDwug2/R0sq8RQQNwbFFW3gKT35hB6nBG70JvQAMH0 MdOZwS8oK7VgVMc8/9D/dkS2Ns6JV6NEU3vQ1G3z0CUhX7XmGZJbwVfuPAdAOBoa9TzxeiIGT 409ZTyGspRH7AJUt X-SPAM-LEVEL: Spam detection results: 0 AWL 1.542 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 NICE_REPLY_A -2.012 Looks like a legit reply (A) RCVD_IN_MSPIKE_H5 0.001 Excellent reputation (+5) RCVD_IN_MSPIKE_WL 0.001 Mailspike good senders 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: 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: Tue, 21 Dec 2021 19:28:35 -0000 Thanks for recommendations Fabian! After checking logs and small tweaking I found that my issue can be solved by: Adding `timeout` property to the `run_command` from PVE::Tools call. I hope this info will help other plugin developers. Thanks for your time and attention, Andrei Perepiolkin On 12/16/21 02:56, Fabian Grünbichler wrote: > On December 15, 2021 4:51 pm, Andrei Perapiolkin wrote: >> Hi, >> >> >> Im working plugin for a proxmox so it can use third party data storage >> system. >> >> And Im having a hard time with implementing `list_images` method for my >> plugin(/usr/share/perl5/PVE/Storage/Plugin.pm) >> >> Periodically proxmox web UI fails to show list of specific >> volumes/images/backups using my plugin. >> >> One out of 3 or 4 calls are failing with "Too many redirections (599)" >> error. > that's strange - how's the load situation on the node? anything else > that looks interesting in the logs? > >> This happens while `pvesh` and `pvesm` works perfectly fine and deliver >> correct list on every call. > those don't go through HTTP(S), so it's no surprise you don't see > HTTP-related issues there ;) if you want to test the HTTP part you could > use the perl API client (libpve-apiclient-perl) or plain curl (e.g., by > copying from your browser's dev console). > >> What am I missing? Is there any test sets that I can run to verify >> correctness of `list_images` output? >> >> Or is there any efficient way to debug UI issues like this? > one potentially relevant information would be how long a pvesm list > takes on average. the GUI has a 30s timeout for sync requests, listing > storage contents is done in a sync fashion.. > > are you doing the requests to the node where you are logged in, or is > 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) > > ? > > > _______________________________________________ > pbs-devel mailing list > pbs-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel >