public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH ha-manager] lrm: fix typos in log messages
@ 2026-03-12  7:16 Dominik Rusovac
  2026-03-12  8:10 ` Thomas Lamprecht
  0 siblings, 1 reply; 3+ messages in thread
From: Dominik Rusovac @ 2026-03-12  7:16 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com>
---
 src/PVE/HA/LRM.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/PVE/HA/LRM.pm b/src/PVE/HA/LRM.pm
index e4b0ec8..09a965c 100644
--- a/src/PVE/HA/LRM.pm
+++ b/src/PVE/HA/LRM.pm
@@ -376,7 +376,7 @@ sub work {
     } elsif ($state eq 'active') {
 
         if ($fence_request) {
-            $haenv->log('err', "node need to be fenced - releasing agent_lock\n");
+            $haenv->log('err', "node needs to be fenced - releasing agent_lock\n");
             $self->set_local_status({ state => 'lost_agent_lock' });
         } elsif (!$self->get_protected_ha_agent_lock()) {
             $self->set_local_status({ state => 'lost_agent_lock' });
@@ -406,7 +406,7 @@ sub work {
         if ($fence_request) {
             $haenv->log(
                 'err',
-                "node need to be fenced during maintenance mode - releasing agent_lock\n",
+                "node needs to be fenced during maintenance mode - releasing agent_lock\n",
             );
             $self->set_local_status({ state => 'lost_agent_lock' });
         } elsif ($self->active_service_count() || $self->run_workers()) {
@@ -518,7 +518,7 @@ sub work {
             if ($service_count > 0) {
                 $haenv->log(
                     'err',
-                    "get shutdown request in state 'lost_agent_lock' - "
+                    "got shutdown request in state 'lost_agent_lock' - "
                         . "detected $service_count running services",
                 );
 
-- 
2.47.3





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH ha-manager] lrm: fix typos in log messages
  2026-03-12  7:16 [PATCH ha-manager] lrm: fix typos in log messages Dominik Rusovac
@ 2026-03-12  8:10 ` Thomas Lamprecht
  2026-03-12  8:44   ` Dominik Rusovac
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Lamprecht @ 2026-03-12  8:10 UTC (permalink / raw)
  To: Dominik Rusovac, pve-devel

Am 12.03.26 um 08:15 schrieb Dominik Rusovac:
> Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com>
> ---
>  src/PVE/HA/LRM.pm | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/PVE/HA/LRM.pm b/src/PVE/HA/LRM.pm
> index e4b0ec8..09a965c 100644
> --- a/src/PVE/HA/LRM.pm
> +++ b/src/PVE/HA/LRM.pm

> -            $haenv->log('err', "node need to be fenced - releasing agent_lock\n");
> +            $haenv->log('err', "node needs to be fenced - releasing agent_lock\n");

> -                "node need to be fenced during maintenance mode - releasing agent_lock\n",
> +                "node needs to be fenced during maintenance mode - releasing agent_lock\n",

> -                    "get shutdown request in state 'lost_agent_lock' - "
> +                    "got shutdown request in state 'lost_agent_lock' - "
>                          . "detected $service_count running services",
>                  );
>  

The fixes themselves look OK, but they all touch the log output that is
also used for regression tests, and with that come two options:
1. either it doesn't matter because no test covers these logs, which
   would be rather bad on itself.
2. or, more likely, you forgot to check in the test changes required,
   potentially not running the harness before sending this out.

Here it's 2., a running `make -C src/` test or building the whole package
will result in a failure to do so.

As we do not have a million of test cases and each is relatively small
line count, the churn should not be to big to send it along.
Please assemble a v2 doing so and ensure to run the the testsuite(s)
before sending any patch, a deb package build normally should do
the trick here.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH ha-manager] lrm: fix typos in log messages
  2026-03-12  8:10 ` Thomas Lamprecht
@ 2026-03-12  8:44   ` Dominik Rusovac
  0 siblings, 0 replies; 3+ messages in thread
From: Dominik Rusovac @ 2026-03-12  8:44 UTC (permalink / raw)
  To: Thomas Lamprecht, pve-devel

On Thu Mar 12, 2026 at 9:10 AM CET, Thomas Lamprecht wrote:
> Am 12.03.26 um 08:15 schrieb Dominik Rusovac:
>> Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com>
>> ---
>>  src/PVE/HA/LRM.pm | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>> 
>> diff --git a/src/PVE/HA/LRM.pm b/src/PVE/HA/LRM.pm
>> index e4b0ec8..09a965c 100644
>> --- a/src/PVE/HA/LRM.pm
>> +++ b/src/PVE/HA/LRM.pm
>
>> -            $haenv->log('err', "node need to be fenced - releasing agent_lock\n");
>> +            $haenv->log('err', "node needs to be fenced - releasing agent_lock\n");
>
>> -                "node need to be fenced during maintenance mode - releasing agent_lock\n",
>> +                "node needs to be fenced during maintenance mode - releasing agent_lock\n",
>
>> -                    "get shutdown request in state 'lost_agent_lock' - "
>> +                    "got shutdown request in state 'lost_agent_lock' - "
>>                          . "detected $service_count running services",
>>                  );
>>  
>
> The fixes themselves look OK, but they all touch the log output that is
> also used for regression tests, and with that come two options:
> 1. either it doesn't matter because no test covers these logs, which
>    would be rather bad on itself.
> 2. or, more likely, you forgot to check in the test changes required,
>    potentially not running the harness before sending this out.
>
> Here it's 2., a running `make -C src/` test or building the whole package
> will result in a failure to do so.
>
> As we do not have a million of test cases and each is relatively small
> line count, the churn should not be to big to send it along.
> Please assemble a v2 doing so and ensure to run the the testsuite(s)
> before sending any patch, a deb package build normally should do
> the trick here.

Indeed, I didn't check in the required test changes. My bad, sorry.

Superseded-by v2: https://lore.proxmox.com/all/20260312083916.49513-1-d.rusovac@proxmox.com/T/ 





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-12  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-12  7:16 [PATCH ha-manager] lrm: fix typos in log messages Dominik Rusovac
2026-03-12  8:10 ` Thomas Lamprecht
2026-03-12  8:44   ` Dominik Rusovac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal