From: "Daniel Kral" <d.kral@proxmox.com>
To: "Michael Köppl" <m.koeppl@proxmox.com>, pve-devel@lists.proxmox.com
Subject: Re: [PATCH ha-manager 2/2] fix #6084: lrm: allow dropping maintenance with active HA resources
Date: Thu, 09 Jul 2026 10:43:18 +0200 [thread overview]
Message-ID: <DJTWOJZWO2AU.1AFZVU15Y90XA@proxmox.com> (raw)
In-Reply-To: <DJT9NM3C1LD2.2GGR5B7332WYM@proxmox.com>
On Wed Jul 8, 2026 at 4:40 PM CEST, Michael Köppl wrote:
> 1 nit inline
Thanks for taking the time to review!
>
> On Wed Jul 8, 2026 at 10:42 AM CEST, Daniel Kral wrote:
>
> [snip]
>
>> +++ b/src/PVE/HA/LRM.pm
>> @@ -456,13 +456,16 @@ sub work {
>> $haenv->release_ha_agent_lock();
>> give_up_watchdog_protection($self);
>> $self->set_local_status({ state => 'wait_for_agent_lock' });
>> - } elsif ($self->active_service_count() || $self->run_workers()) {
>> + } elsif (
>> + ($self->active_service_count() || $self->run_workers())
>> + && $self->is_maintenance_requested()
>> + ) {
>> # keep the lock and watchdog as long as not all services cleared the node
>
> nit: this comment could perhaps also mention something like "while
> there is a maintenance request"
ACK, will add that here in the v2!
>
>> if (!$self->get_protected_ha_agent_lock()) {
>> $self->set_local_status({ state => 'lost_agent_lock' });
>> }
>> } elsif (!$self->is_maintenance_requested()) {
>> - # empty && no maintenance mode && not exited -> need to switch active again
>> + # no node maintenance request && not exited -> need to switch active again
>
> [snip]
next prev parent reply other threads:[~2026-07-09 8:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-08 8:42 [PATCH-SERIES ha-manager 0/2] fix #6084: allow dropping maintenance state with active HA resources Daniel Kral
2026-07-08 8:42 ` [PATCH ha-manager 1/2] test: add maintenance test case with stuck HA resource Daniel Kral
2026-07-08 8:42 ` [PATCH ha-manager 2/2] fix #6084: lrm: allow dropping maintenance with active HA resources Daniel Kral
2026-07-08 14:40 ` Michael Köppl
2026-07-09 8:43 ` Daniel Kral [this message]
2026-07-08 14:40 ` [PATCH-SERIES ha-manager 0/2] fix #6084: allow dropping maintenance state " Michael Köppl
2026-07-09 9:05 ` superseded: " Daniel Kral
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DJTWOJZWO2AU.1AFZVU15Y90XA@proxmox.com \
--to=d.kral@proxmox.com \
--cc=m.koeppl@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox