* [pve-devel] [PATCH network] frr: print task warning when frr reload fails
@ 2025-09-11 15:33 Gabriel Goller
2025-09-11 15:52 ` Gabriel Goller
2025-09-16 10:10 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 2 replies; 3+ messages in thread
From: Gabriel Goller @ 2025-09-11 15:33 UTC (permalink / raw)
To: pve-devel
Instead of just printing a normal warning, use log_warn, which adds a
warning to the whole task. This means the whole task ends with a
"warning" status which is visible nicely in the task list. Previously we
just printed a warning, which made the task end with "OK" even if the
reload failed.
frr-reload.py only fails if it's not installed (where a warning status
is ok) or the configuration is not valid (where a warning status is also
ok). Having frr-reload.py uninstalled for some reason and always relying
on `systemctl restart frr` to reload the sdn config is kinda weird and
you probably deserve to get a warning on each sdn apply task.
Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---
src/PVE/Network/SDN/Frr.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Network/SDN/Frr.pm b/src/PVE/Network/SDN/Frr.pm
index b548e7b4f0fe..b607b32c248d 100644
--- a/src/PVE/Network/SDN/Frr.pm
+++ b/src/PVE/Network/SDN/Frr.pm
@@ -70,7 +70,7 @@ sub apply {
eval { reload() };
return if !$@;
- warn "reloading frr configuration failed: $@";
+ log_warn("reloading frr configuration failed: $@");
warn "trying to restart frr instead";
}
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pve-devel] [PATCH network] frr: print task warning when frr reload fails
2025-09-11 15:33 [pve-devel] [PATCH network] frr: print task warning when frr reload fails Gabriel Goller
@ 2025-09-11 15:52 ` Gabriel Goller
2025-09-16 10:10 ` [pve-devel] applied: " Thomas Lamprecht
1 sibling, 0 replies; 3+ messages in thread
From: Gabriel Goller @ 2025-09-11 15:52 UTC (permalink / raw)
To: pve-devel
Forgot to mention, this is to partially fix:
https://bugzilla.proxmox.com/show_bug.cgi?id=5479
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pve-devel] applied: [PATCH network] frr: print task warning when frr reload fails
2025-09-11 15:33 [pve-devel] [PATCH network] frr: print task warning when frr reload fails Gabriel Goller
2025-09-11 15:52 ` Gabriel Goller
@ 2025-09-16 10:10 ` Thomas Lamprecht
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2025-09-16 10:10 UTC (permalink / raw)
To: pve-devel, Gabriel Goller
On Thu, 11 Sep 2025 17:33:54 +0200, Gabriel Goller wrote:
> Instead of just printing a normal warning, use log_warn, which adds a
> warning to the whole task. This means the whole task ends with a
> "warning" status which is visible nicely in the task list. Previously we
> just printed a warning, which made the task end with "OK" even if the
> reload failed.
>
> frr-reload.py only fails if it's not installed (where a warning status
> is ok) or the configuration is not valid (where a warning status is also
> ok). Having frr-reload.py uninstalled for some reason and always relying
> on `systemctl restart frr` to reload the sdn config is kinda weird and
> you probably deserve to get a warning on each sdn apply task.
>
> [...]
Applied, thanks!
[1/1] frr: print task warning when frr reload fails
commit: ea13baa9af4cff1c2dbc096a757b4c0a94afaa56
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-16 10:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-11 15:33 [pve-devel] [PATCH network] frr: print task warning when frr reload fails Gabriel Goller
2025-09-11 15:52 ` Gabriel Goller
2025-09-16 10:10 ` [pve-devel] applied: " Thomas Lamprecht
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.