From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 6F2191FF13A for ; Wed, 08 Jul 2026 10:42:20 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 607C121482; Wed, 08 Jul 2026 10:42:14 +0200 (CEST) From: Daniel Kral To: pve-devel@lists.proxmox.com Subject: [PATCH-SERIES ha-manager 0/2] fix #6084: allow dropping maintenance state with active HA resources Date: Wed, 8 Jul 2026 10:42:03 +0200 Message-ID: <20260708084205.69947-1-d.kral@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1783500121303 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.014 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: M6H7HSLZ5LPGAHZGFPZMF4NXRJ6WL75I X-Message-ID-Hash: M6H7HSLZ5LPGAHZGFPZMF4NXRJ6WL75I X-MailFrom: d.kral@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: As reported in BZ #6804 [0], if a node held active HA resources, that could not be moved to any other node, while a node maintenance request has been placed and dropped again, the node's LRM would stay in maintenance state even though the maintenance mode was lifted. This small patch series fixes the issue by also allowing LRMs with active assigned HA resources to be moved out of maintenance state again. [0] https://bugzilla.proxmox.com/show_bug.cgi?id=6084 Daniel Kral (2): test: add maintenance test case with stuck HA resource fix #6084: lrm: allow dropping maintenance with active HA resources src/PVE/HA/LRM.pm | 7 ++- src/test/test-crm-maintenance-request5/README | 6 ++ .../test-crm-maintenance-request5/cmdlist | 5 ++ .../hardware_status | 5 ++ .../test-crm-maintenance-request5/log.expect | 58 +++++++++++++++++++ .../manager_status | 1 + .../service_config | 3 + 7 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 src/test/test-crm-maintenance-request5/README create mode 100644 src/test/test-crm-maintenance-request5/cmdlist create mode 100644 src/test/test-crm-maintenance-request5/hardware_status create mode 100644 src/test/test-crm-maintenance-request5/log.expect create mode 100644 src/test/test-crm-maintenance-request5/manager_status create mode 100644 src/test/test-crm-maintenance-request5/service_config -- 2.47.3