From: "Michael Köppl" <m.koeppl@proxmox.com>
To: "Daniel Kral" <d.kral@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: Wed, 08 Jul 2026 16:40:39 +0200 [thread overview]
Message-ID: <DJT9NM3C1LD2.2GGR5B7332WYM@proxmox.com> (raw)
In-Reply-To: <20260708084205.69947-3-d.kral@proxmox.com>
1 nit inline
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"
> 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-08 14:41 UTC|newest]
Thread overview: 5+ 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 [this message]
2026-07-08 14:40 ` [PATCH-SERIES ha-manager 0/2] fix #6084: allow dropping maintenance state " Michael Köppl
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=DJT9NM3C1LD2.2GGR5B7332WYM@proxmox.com \
--to=m.koeppl@proxmox.com \
--cc=d.kral@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.