|
|
9219d1 |
From 4fe045290891859c14e19d6bb00b2c857a0d4021 Mon Sep 17 00:00:00 2001
|
|
|
9219d1 |
From: Dumitru Ceara <dceara@redhat.com>
|
|
|
9219d1 |
Date: Tue, 1 Sep 2020 21:20:04 +0200
|
|
|
9219d1 |
Subject: [PATCH] ovn-northd: Rate limit missing chassis log.
|
|
|
9219d1 |
|
|
|
9219d1 |
This log does indicate a problem so it's useful to log it at WARN level
|
|
|
9219d1 |
but there's not much use to spam at every iteration of ovn-northd.
|
|
|
9219d1 |
|
|
|
9219d1 |
CC: Han Zhou <hzhou@ovn.org>
|
|
|
9219d1 |
Fixes: 4adc10f58127 ("Avoid nb_cfg update notification flooding")
|
|
|
9219d1 |
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
|
|
|
9219d1 |
Signed-off-by: Han Zhou <hzhou@ovn.org>
|
|
|
9219d1 |
(cherry picked from upstream commit 81e88122985caf35b6c60b8d04e16cd0b53aa2b7)
|
|
|
9219d1 |
|
|
|
9219d1 |
Change-Id: I946b74b44149cefec09cd1a19de3ffb8d7c01647
|
|
|
9219d1 |
---
|
|
|
9219d1 |
northd/ovn-northd.c | 6 ++++--
|
|
|
9219d1 |
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
9219d1 |
|
|
|
9219d1 |
diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
|
|
|
9219d1 |
index c83f9d5..8f2cd43 100644
|
|
|
9219d1 |
--- a/northd/ovn-northd.c
|
|
|
9219d1 |
+++ b/northd/ovn-northd.c
|
|
|
9219d1 |
@@ -12254,8 +12254,10 @@ update_northbound_cfg(struct northd_context *ctx,
|
|
|
9219d1 |
continue;
|
|
|
9219d1 |
}
|
|
|
9219d1 |
} else {
|
|
|
9219d1 |
- VLOG_WARN("Chassis not exist for Chassis_Private record, "
|
|
|
9219d1 |
- "name: %s", chassis_priv->name);
|
|
|
9219d1 |
+ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 1);
|
|
|
9219d1 |
+ VLOG_WARN_RL(&rl, "Chassis does not exist for "
|
|
|
9219d1 |
+ "Chassis_Private record, name: %s",
|
|
|
9219d1 |
+ chassis_priv->name);
|
|
|
9219d1 |
}
|
|
|
9219d1 |
|
|
|
9219d1 |
if (chassis_priv->nb_cfg < hv_cfg) {
|
|
|
9219d1 |
--
|
|
|
9219d1 |
1.8.3.1
|
|
|
9219d1 |
|