all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] verify: include namespace for group in log
@ 2025-11-20 11:52 Hannes Laimer
  2025-11-20 12:34 ` Michael Köppl
  2025-11-20 13:09 ` Fabian Grünbichler
  0 siblings, 2 replies; 4+ messages in thread
From: Hannes Laimer @ 2025-11-20 11:52 UTC (permalink / raw)
  To: pbs-devel

Groups with the same name in different namespaces couldn't really be told
appart. This solves this by also printing the namespace of a group to the
log.

This came up in support.

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
not super sure about the formatting, didn't want to change the
<datastore>:<group> format we use a lot. don't log for snapshots as that
would potentially add a lot of output that doesn't add much information

 src/backup/verify.rs | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/backup/verify.rs b/src/backup/verify.rs
index 734c7b30..10f54c28 100644
--- a/src/backup/verify.rs
+++ b/src/backup/verify.rs
@@ -500,8 +500,15 @@ impl VerifyWorker {
         };
 
         let snapshot_count = list.len();
+        let ns = group.backup_ns();
+        let ns_str = if ns.is_root() {
+            "/".to_string()
+        } else {
+            ns.to_string()
+        };
         info!(
-            "verify group {}:{} ({} snapshots)",
+            "verify group in '{}' - {}:{} ({} snapshots)",
+            ns_str,
             self.datastore.name(),
             group.group(),
             snapshot_count
-- 
2.47.3



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


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

* Re: [pbs-devel] [PATCH proxmox-backup] verify: include namespace for group in log
  2025-11-20 11:52 [pbs-devel] [PATCH proxmox-backup] verify: include namespace for group in log Hannes Laimer
@ 2025-11-20 12:34 ` Michael Köppl
  2025-11-20 13:09 ` Fabian Grünbichler
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Köppl @ 2025-11-20 12:34 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion; +Cc: pbs-devel

Quickly tested this by verifying both a group in my root namespace as
well as a custom namespace. Works as expected and seems like a sensible
addition to the logs.

Consider this:
Tested-by: Michael Köppl <m.koeppl@proxmox.com>

On Thu Nov 20, 2025 at 12:52 PM CET, Hannes Laimer wrote:
> Groups with the same name in different namespaces couldn't really be told
> appart. This solves this by also printing the namespace of a group to the

s/appart/apart

> log.
>
> This came up in support.
>
> Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
> ---
> not super sure about the formatting, didn't want to change the
> <datastore>:<group> format we use a lot. don't log for snapshots as that
> would potentially add a lot of output that doesn't add much information
>
>  src/backup/verify.rs | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/src/backup/verify.rs b/src/backup/verify.rs
> index 734c7b30..10f54c28 100644
> --- a/src/backup/verify.rs
> +++ b/src/backup/verify.rs
> @@ -500,8 +500,15 @@ impl VerifyWorker {
>          };
>  
>          let snapshot_count = list.len();
> +        let ns = group.backup_ns();
> +        let ns_str = if ns.is_root() {
> +            "/".to_string()
> +        } else {
> +            ns.to_string()
> +        };
>          info!(
> -            "verify group {}:{} ({} snapshots)",
> +            "verify group in '{}' - {}:{} ({} snapshots)",
> +            ns_str,
>              self.datastore.name(),
>              group.group(),
>              snapshot_count



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel

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

* Re: [pbs-devel] [PATCH proxmox-backup] verify: include namespace for group in log
  2025-11-20 11:52 [pbs-devel] [PATCH proxmox-backup] verify: include namespace for group in log Hannes Laimer
  2025-11-20 12:34 ` Michael Köppl
@ 2025-11-20 13:09 ` Fabian Grünbichler
  2025-11-20 13:21   ` Hannes Laimer
  1 sibling, 1 reply; 4+ messages in thread
From: Fabian Grünbichler @ 2025-11-20 13:09 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion

On November 20, 2025 12:52 pm, Hannes Laimer wrote:
> Groups with the same name in different namespaces couldn't really be told
> appart. This solves this by also printing the namespace of a group to the
> log.
> 
> This came up in support.
> 
> Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
> ---
> not super sure about the formatting, didn't want to change the
> <datastore>:<group> format we use a lot. don't log for snapshots as that
> would potentially add a lot of output that doesn't add much information
> 
>  src/backup/verify.rs | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/src/backup/verify.rs b/src/backup/verify.rs
> index 734c7b30..10f54c28 100644
> --- a/src/backup/verify.rs
> +++ b/src/backup/verify.rs
> @@ -500,8 +500,15 @@ impl VerifyWorker {
>          };
>  
>          let snapshot_count = list.len();
> +        let ns = group.backup_ns();
> +        let ns_str = if ns.is_root() {
> +            "/".to_string()
> +        } else {
> +            ns.to_string()
> +        };
>          info!(
> -            "verify group {}:{} ({} snapshots)",
> +            "verify group in '{}' - {}:{} ({} snapshots)",
> +            ns_str,

when syncing, we log the namespace once at the start/end, should follow
this approach here as well for consistency?

nested namespace names can get quite long..

>              self.datastore.name(),
>              group.group(),
>              snapshot_count
> -- 
> 2.47.3
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 
> 
> 


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


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

* Re: [pbs-devel] [PATCH proxmox-backup] verify: include namespace for group in log
  2025-11-20 13:09 ` Fabian Grünbichler
@ 2025-11-20 13:21   ` Hannes Laimer
  0 siblings, 0 replies; 4+ messages in thread
From: Hannes Laimer @ 2025-11-20 13:21 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Fabian Grünbichler

On 11/20/25 14:09, Fabian Grünbichler wrote:
> On November 20, 2025 12:52 pm, Hannes Laimer wrote:
>> Groups with the same name in different namespaces couldn't really be told
>> appart. This solves this by also printing the namespace of a group to the
>> log.
>>
>> This came up in support.
>>
>> Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
>> ---
>> not super sure about the formatting, didn't want to change the
>> <datastore>:<group> format we use a lot. don't log for snapshots as that
>> would potentially add a lot of output that doesn't add much information
>>
>>   src/backup/verify.rs | 9 ++++++++-
>>   1 file changed, 8 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/backup/verify.rs b/src/backup/verify.rs
>> index 734c7b30..10f54c28 100644
>> --- a/src/backup/verify.rs
>> +++ b/src/backup/verify.rs
>> @@ -500,8 +500,15 @@ impl VerifyWorker {
>>           };
>>   
>>           let snapshot_count = list.len();
>> +        let ns = group.backup_ns();
>> +        let ns_str = if ns.is_root() {
>> +            "/".to_string()
>> +        } else {
>> +            ns.to_string()
>> +        };
>>           info!(
>> -            "verify group {}:{} ({} snapshots)",
>> +            "verify group in '{}' - {}:{} ({} snapshots)",
>> +            ns_str,
> 
> when syncing, we log the namespace once at the start/end, should follow
> this approach here as well for consistency?
> 
> nested namespace names can get quite long..
> 

IIRC we sort just by the groups, but if the namespaces would be done in
blocks, sure. would cut down verbosity by quite a bit



>>               self.datastore.name(),
>>               group.group(),
>>               snapshot_count
>> -- 
>> 2.47.3
>>
>>
>>
>> _______________________________________________
>> pbs-devel mailing list
>> pbs-devel@lists.proxmox.com
>> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
>>
>>
>>
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 
> 



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel

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

end of thread, other threads:[~2025-11-20 13:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-20 11:52 [pbs-devel] [PATCH proxmox-backup] verify: include namespace for group in log Hannes Laimer
2025-11-20 12:34 ` Michael Köppl
2025-11-20 13:09 ` Fabian Grünbichler
2025-11-20 13:21   ` Hannes Laimer

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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal