ovn-controller: race between binding-run and patch-run for localnet ports
authorRamu Ramamurthy <ramu.ramamurthy@gmail.com>
Sat, 5 Mar 2016 01:40:26 +0000 (20:40 -0500)
committerRussell Bryant <russell@ovn.org>
Mon, 7 Mar 2016 14:42:03 +0000 (09:42 -0500)
commit3a83007a76bbf05144cee1fda7ad81c1c717dca7
tree4ed27ebb009913b8699c54118d0514a28f0c5b42
parent8520deefbf208b24518c2bf67baad6d230f39dc0
ovn-controller: race between binding-run and patch-run for localnet ports

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.ramamurthy@us.ibm.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
ovn/controller/patch.c