[ovs-dev] [PATCH 2/2] test: Fix failed test "flow resume with geneve tun_metadata"

David Marchand david.marchand at redhat.com
Fri Feb 1 08:47:32 UTC 2019


On Fri, Feb 1, 2019 at 12:10 AM Yifeng Sun <pkusunyifeng at gmail.com> wrote:

> Test "flow resume with geneve tun_metadata" failed because there is
> no controller running to send controller(pause) message. A previous
> commit deleted the line that starts ovs-ofctl as a controller in
> order to avoid a race condition on monitor log. This patch adds
> back this line but omits the log file because this test doesn't
> dpends on the log file.
>
> Fixes: e8833217914f9c071c49 ("system-traffic.at: avoid a race condition
> on monitor log")
> CC: David Marchand <david.marchand at redhat.com>
> Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>
> ---
>  tests/system-traffic.at | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/tests/system-traffic.at b/tests/system-traffic.at
> index ffe508dd61f7..84c2af4170a3 100644
> --- a/tests/system-traffic.at
> +++ b/tests/system-traffic.at
> @@ -538,6 +538,8 @@ OVS_CHECK_GENEVE()
>  OVS_TRAFFIC_VSWITCHD_START()
>  ADD_BR([br-underlay])
>
> +AT_CHECK([ovs-ofctl monitor br0 resume --detach --no-chdir --pidfile 2>
> /dev/null])
> +
>  ADD_NAMESPACES(at_ns0)
>
>  dnl Set up underlay link from host into the namespace using veth pair.
> @@ -567,6 +569,7 @@ NS_CHECK_EXEC([at_ns0], [ping -q -c 3 10.1.1.100 |
> FORMAT_PING], [0], [dnl
>  3 packets transmitted, 3 received, 0% packet loss, time 0ms
>  ])
>
> +OVS_APP_EXIT_AND_WAIT([ovs-ofctl])
>  OVS_TRAFFIC_VSWITCHD_STOP
>  AT_CLEANUP
>
>
Oops.
Thanks for fixing.


-- 
David Marchand


More information about the dev mailing list