Skip to content

Commit

Permalink
northd: Log router name in "no path" next-hop warnings.
Browse files Browse the repository at this point in the history
This patch fixes ambiguous logs and provides context about which router
has a route configuration error. Now instead of just referring to routes
by their IP address, the router they're on is also listed.

Reported-at: https://issues.redhat.com/browse/FDP-777
Signed-off-by: Rosemarie O'Riorden <[email protected]>
  • Loading branch information
roseoriorden committed Sep 18, 2024
1 parent 2bdf112 commit 90f5a32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions northd/northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -10695,8 +10695,8 @@ get_outport_for_routing_policy_nexthop(struct ovn_datapath *od,
}

static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 1);
VLOG_WARN_RL(&rl, "No path for routing policy priority %d; next hop %s",
priority, nexthop);
VLOG_WARN_RL(&rl, "No path for routing policy priority %d on router %s; "
"next hop %s", priority, od->nbr->name, nexthop);
return NULL;
}

Expand Down Expand Up @@ -11433,8 +11433,8 @@ find_static_route_outport(struct ovn_datapath *od, const struct hmap *lr_ports,
if (!out_port || !lrp_addr_s) {
/* There is no matched out port. */
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 1);
VLOG_WARN_RL(&rl, "No path for static route %s; next hop %s",
route->ip_prefix, route->nexthop);
VLOG_WARN_RL(&rl, "No path for static route %s on router %s; next hop"
" %s", route->ip_prefix, od->nbr->name, route->nexthop);
return false;
}
if (p_out_port) {
Expand Down

0 comments on commit 90f5a32

Please sign in to comment.