[ovs-dev] [PATCH v2] testsuite: exit gracefully if it fails.

Joe Stringer joe at ovn.org
Mon Jun 12 23:21:04 UTC 2017


On 9 June 2017 at 08:58, Flavio Leitner <fbl at redhat.com> wrote:
> The daemon is killed leaving resources behind when a test fails.
> This fixes to first signal the daemon to exit gracefully.
>
> Fixes: 0f28164be02ac ("netdev-linux: make tap devices persistent")
> Suggested-by: Joe Stringer <joe at ovn.org>
> Co-authored-by: Ben Pfaff <blp at ovn.org>
> Signed-off-by: Flavio Leitner <fbl at redhat.com>
> ---

Thanks for the re-spin. Ben, as co-author were you planning to commit this?

Acked-by: Joe Stringer <joe at ovn.org>

As a side note, in the case that the "kill" gets hit, there will be
state left lying around such as tap devices. To truly handle that, we
would have to consider keeping track of all of the bridges and devices
configured during the tests (or prefixing them with a common prefix
like "ovs_" or "at_") then blindly clearing these out in this failure
case. I don't know how big of a problem this is in practice, since it
requires ovs-vswitchd to become unresponsive.


More information about the dev mailing list