On slow systems, northd may not have committed the RBAC_Role row
yet when the test queries it right after ovn_start.  Wait for the
row to appear before calling fetch_column.

Fixes: e65fb9efe286 ("northd: Fix issues in RBAC tables recovery.")
Signed-off-by: Xavier Simonart <[email protected]>
---
 tests/ovn-northd.at | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at
index 0c98eb7fb..8129f4f50 100644
--- a/tests/ovn-northd.at
+++ b/tests/ovn-northd.at
@@ -15581,6 +15581,7 @@ AT_CLEANUP
 AT_SETUP([RBAC -- Recover builtin role and permissions])
 ovn_start
 
+wait_row_count RBAC_Role 1 name=ovn-controller
 RBR_BUILTIN_PNAMES=$(fetch_column RBAC_Role permissions name=ovn-controller | 
uuidfilt | sed -e 's/<[[^<>]]>*//g' | tr -d '=,{}')
 
 declare -A RBR_BUILTIN_PERM
-- 
2.47.1

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

Reply via email to