when ctx->ovnsb_idl_txn is null, binding_run exits early and does not add any local_datapaths, but patch_run doesnt check this, and ends up deleting localnet ports, because there are no local datapaths for them, They get readded in a subsequent run causing unnecessary deletion and readdition.
Signed-off-by: Ramu Ramamurthy <ramu.ramamur...@us.ibm.com> --- ovn/controller/patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovn/controller/patch.c b/ovn/controller/patch.c index 753ce3e..cfae613 100644 --- a/ovn/controller/patch.c +++ b/ovn/controller/patch.c @@ -280,7 +280,7 @@ void patch_run(struct controller_ctx *ctx, const struct ovsrec_bridge *br_int, struct hmap *local_datapaths) { - if (!ctx->ovs_idl_txn) { + if (!ctx->ovs_idl_txn || !ctx->ovnsb_idl_txn) { return; } -- 2.3.9 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev