ovn-controller-vtep: occasional failure in "binding 1" test case
authorLance Richardson <lrichard@redhat.com>
Fri, 15 Jul 2016 13:15:05 +0000 (09:15 -0400)
committerRussell Bryant <russell@ovn.org>
Fri, 15 Jul 2016 17:40:08 +0000 (13:40 -0400)
commit35cfa3887049de662b354517497ddf5237531d52
treef6427661a809a588fc6c756d30d4fcde73bd0126
parent3041e1fc963886c3e19f1b848df20c6f9d96b289
ovn-controller-vtep: occasional failure in "binding 1" test case

The ovn-controller-vtep "binding 1" test case fails occasionally
due to a race with the ovs-vtep daemon.  If ovs-vtep happens to
execute handle_physical() after "ovs-vsctl del-port p0", but before
the test script has executed "vtep-ctl del-port br-vtep p0", the
latter command will fail because ovs-vtep will have already deleted
p0 from the vtep db.

Eliminate this race while adding an additional check to verify that
ovs-vtep is working as expected by waiting for ovs-vtep to remove
entries for the deleted physical ports from the vtep db.

Signed-off-by: Lance Richardson <lrichard@redhat.com>
Suggested-by: Darrell Ball <dlu998@gmail.com>
Acked-by: Darrell Ball <dlu998@gmail.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
tests/ovn-controller-vtep.at