bbaaef
From 610bac28e0e241b3ea266fb7c3745415c54452f4 Mon Sep 17 00:00:00 2001
bbaaef
From: Russell Bryant <russell@ovn.org>
bbaaef
Date: Fri, 25 Oct 2019 09:34:49 -0400
bbaaef
Subject: [PATCH 6/6] controller: Downgrade a warning log message
bbaaef
bbaaef
This log message was introduced in commit 5344f24ecb.  It gets hit
bbaaef
under normal circumstances, so it would be better as a debug message
bbaaef
instead of a warning.  I also expanded it to clarify that the next
bbaaef
step will be to create the chassis record.
bbaaef
bbaaef
This was found by trying to run the system-ovn.at tests, and they
bbaaef
failed because of these unexpected warning log messages.
bbaaef
bbaaef
Signed-off-by: Russell Bryant <russell@ovn.org>
bbaaef
Acked-by: Numan Siddique <numans@ovn.org>
bbaaef
---
bbaaef
 ovn/controller/chassis.c | 5 +++--
bbaaef
 1 file changed, 3 insertions(+), 2 deletions(-)
bbaaef
bbaaef
diff --git a/ovn/controller/chassis.c b/ovn/controller/chassis.c
bbaaef
index b74a42cc8..4cd340124 100644
bbaaef
--- a/ovn/controller/chassis.c
bbaaef
+++ b/ovn/controller/chassis.c
bbaaef
@@ -484,8 +484,9 @@ chassis_get_record(struct ovsdb_idl_txn *ovnsb_idl_txn,
bbaaef
         chassis_rec = chassis_lookup_by_name(sbrec_chassis_by_name,
bbaaef
                                              chassis_info_id(&chassis_state));
bbaaef
         if (!chassis_rec) {
bbaaef
-            VLOG_WARN("Could not find Chassis : stored (%s) ovs (%s)",
bbaaef
-                      chassis_info_id(&chassis_state), chassis_id);
bbaaef
+            VLOG_DBG("Could not find Chassis, will create it"
bbaaef
+                     ": stored (%s) ovs (%s)",
bbaaef
+                     chassis_info_id(&chassis_state), chassis_id);
bbaaef
             if (ovnsb_idl_txn) {
bbaaef
                 /* Recreate the chassis record.  */
bbaaef
                 chassis_rec = sbrec_chassis_insert(ovnsb_idl_txn);
bbaaef
-- 
bbaaef
2.23.0
bbaaef