Uploaded image for project: 'Fast Datapath Product'
  1. Fast Datapath Product
  2. FDP-1731

Investigate and fix test failures caused by delayed vswitchd exit

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • openvswitch3.6
    • None
    • Delayed exit test failures
    • False
    • Hide

      None

      Show
      None
    • False
    • To Do
    • rhel-10
    • rhel-net-ovs-dpdk
    • 100% To Do, 0% In Progress, 0% Done
    • ssg_networking

      After reviewing the "tests: Ignore no tunnel port error on vswitch stop." patch, I ran the full testsuite with a "sleep 1" added before vswitchd exists. This caused three tests to consistently fail.

      This can be reproduced with the following patch.

      diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at
      index 3cd49d7a7..92a369856 100644
      --- a/tests/ofproto-macros.at
      +++ b/tests/ofproto-macros.at
      @@ -378,7 +378,8 @@ m4_divert_pop([PREPARE_TESTS])
       #
       #   OVS_VSWITCHD_STOP(["/expected error/d"])
       m4_define([OVS_VSWITCHD_STOP],
      -  [AT_CHECK([check_logs $1])
      +  [AT_CHECK([sleep 2])
      +  AT_CHECK([check_logs $1])
          OVS_APP_EXIT_AND_WAIT([ovs-vswitchd])
          OVS_APP_EXIT_AND_WAIT([ovsdb-server])])
       
      

              ovsdpdk-triage ovsdpdk triage
              rh-ee-mpattric Mike Pattrick
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: