From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 048211FF165 for ; Thu, 17 Jul 2025 17:35:59 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 915853F3AB; Thu, 17 Jul 2025 17:37:00 +0200 (CEST) From: "Max R. Carrara" To: pve-devel@lists.proxmox.com Date: Thu, 17 Jul 2025 17:36:24 +0200 Message-Id: <20250717153625.391842-2-m.carrara@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250717153625.391842-1-m.carrara@proxmox.com> References: <20250717153625.391842-1-m.carrara@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1752766586130 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.082 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [module.py, python.org] WEIRD_PORT 0.001 Uses non-standard port number for HTTP Subject: [pve-devel] [PATCH v1 master ceph 1/2] cherry-pick fix that silences invalid escape sequence warning 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" Cherry-pick 1458405b, which fixes a warning regarding an invalid escape sequence that might worry / annoy some users. See the added patch for all details. Thanks to Shannon Sterz for finding the commit upstream! Signed-off-by: Max R. Carrara --- ...erf_query-fix-ivalid-escape-sequence.patch | 31 +++++++++++++++++++ patches/series | 1 + 2 files changed, 32 insertions(+) create mode 100644 patches/0060-mgr-osd_perf_query-fix-ivalid-escape-sequence.patch diff --git a/patches/0060-mgr-osd_perf_query-fix-ivalid-escape-sequence.patch b/patches/0060-mgr-osd_perf_query-fix-ivalid-escape-sequence.patch new file mode 100644 index 0000000000..8cca6f947b --- /dev/null +++ b/patches/0060-mgr-osd_perf_query-fix-ivalid-escape-sequence.patch @@ -0,0 +1,31 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Kyr Shatskyy +Date: Tue, 23 Jul 2024 19:40:23 +0200 +Subject: [PATCH] mgr/osd_perf_query: fix ivalid escape sequence + +Get rid of warning which, according [1], is going to become an error: + +osd_perf_query/module.py:61 + /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/osd_perf_query/module.py:61: DeprecationWarning: invalid escape sequence '\.' + 'regex': '^(?:rbd|journal)_data\.(?:([0-9]+)\.)?([^.]+)\.'}, + +1. https://docs.python.org/3/library/re.html + +Signed-off-by: Kyr Shatskyy +--- + src/pybind/mgr/osd_perf_query/module.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/pybind/mgr/osd_perf_query/module.py b/src/pybind/mgr/osd_perf_query/module.py +index 6f87c1d907a..ac32f804282 100644 +--- a/src/pybind/mgr/osd_perf_query/module.py ++++ b/src/pybind/mgr/osd_perf_query/module.py +@@ -58,7 +58,7 @@ class OSDPerfQuery(MgrModule): + 'key_descriptor': [ + {'type': 'pool_id', 'regex': '^(.+)$'}, + {'type': 'object_name', +- 'regex': '^(?:rbd|journal)_data\.(?:([0-9]+)\.)?([^.]+)\.'}, ++ 'regex': r'^(?:rbd|journal)_data\.(?:([0-9]+)\.)?([^.]+)\.'}, + ], + 'performance_counter_descriptors': [ + 'bytes', 'write_ops', 'read_ops', 'write_bytes', 'read_bytes', diff --git a/patches/series b/patches/series index b820614566..d6c765677d 100644 --- a/patches/series +++ b/patches/series @@ -53,3 +53,4 @@ 0057-mgr-dashboard-add-an-option-to-control-the-dashboard.patch 0058-pybind-mgr-restful-provide-workaround-for-PyO3-Impor.patch 0059-mgr-fix-module-import-by-making-NOTIFY_TYPES-in-py-m.patch +0060-mgr-osd_perf_query-fix-ivalid-escape-sequence.patch -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel