Recently ovn-nbctl was changed to partially monitor NB DB, which
revealed the missing column monitoring for NB_Global:nb_cfg_timestamp.

Without the fix, ovn-nbctl --wait=hv --print-wait-time would print
something like:

Time spent on processing nb_cfg 39:
        ovn-northd delay before processing:     -1623916000627ms
        ovn-northd completion:                  14408ms
        ovn-controller(s) completion:           36204ms

Signed-off-by: Han Zhou <[email protected]>
---
 utilities/ovn-nbctl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
index ec6d48c75..3144fba49 100644
--- a/utilities/ovn-nbctl.c
+++ b/utilities/ovn-nbctl.c
@@ -61,6 +61,7 @@ nbctl_add_base_prerequisites(struct ovsdb_idl *idl,
 
     ovsdb_idl_add_table(idl, &nbrec_table_nb_global);
     if (wait_type != NBCTL_WAIT_NONE) {
+        ovsdb_idl_add_column(idl, &nbrec_nb_global_col_nb_cfg_timestamp);
         ovsdb_idl_add_column(idl, &nbrec_nb_global_col_sb_cfg);
         ovsdb_idl_add_column(idl, &nbrec_nb_global_col_sb_cfg_timestamp);
         if (wait_type == NBCTL_WAIT_HV) {
-- 
2.30.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to