From patchwork Tue Aug 16 12:32:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurucharan Shetty X-Patchwork-Id: 659848 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3sDRwR1qqMz9t0F for ; Wed, 17 Aug 2016 08:33:41 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 703FB10917; Tue, 16 Aug 2016 15:33:39 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id 6C74110916 for ; Tue, 16 Aug 2016 15:33:38 -0700 (PDT) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id D6328162A35 for ; Tue, 16 Aug 2016 16:33:37 -0600 (MDT) X-ASG-Debug-ID: 1471386817-0b3237312926030001-byXFYA Received: from mx1-pf1.cudamail.com ([192.168.24.1]) by bar6.cudamail.com with ESMTP id upzBKYxYeLtd6L0q (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 16 Aug 2016 16:33:37 -0600 (MDT) X-Barracuda-Envelope-From: guru.ovn@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.1 Received: from unknown (HELO mail-pa0-f65.google.com) (209.85.220.65) by mx1-pf1.cudamail.com with ESMTPS (AES128-SHA encrypted); 16 Aug 2016 22:33:36 -0000 Received-SPF: pass (mx1-pf1.cudamail.com: SPF record at _netblocks.google.com designates 209.85.220.65 as permitted sender) X-Barracuda-Apparent-Source-IP: 209.85.220.65 X-Barracuda-RBL-IP: 209.85.220.65 Received: by mail-pa0-f65.google.com with SMTP id hh10so5884971pac.1 for ; Tue, 16 Aug 2016 15:33:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Y3GmqQfs+vGc2HBY4VU2FfJNPlsOq8cFLfTgQa0jAs0=; b=FKNS7LQ9EPpzuqu8LOq9pgX5J2asDqSJXkLV4M7HmOCZZe/E9Cy106uHRV0BDgt6uP /w1b+O9B8e0vKCBuxjoU5i+2SRnS0BEzOq1VU9DA7H6T3uV5ExiUgd2GpA+7CXz+XF7e MbLnFVlS4ah9OFHv13xqDQSIbWHE3dBvx3HKkqkMb847UFOX4Sr6b9QyL5q8zUXoyVyE LxKP4UTNqLIweAQ5vdDv6w9kIpiXV+GYtgQ7KAyAn3WRK7A1mqYMvXrSyL2z+1zVOn7w 3Brs5qIjDxsUyVymzLjuzaHZN3LevaI1NejHxXS/OpKUH8zxMudDOpjGTM2JKo1nuS26 9Umg== X-Gm-Message-State: AEkoout2e5dyfUXxW+siylAClvbr/JPscJkA0iU2/JZdLKanKvPNgVPgvBT/XjxRtkn4Pg== X-Received: by 10.66.132.11 with SMTP id oq11mr2140010pab.4.1471386816055; Tue, 16 Aug 2016 15:33:36 -0700 (PDT) Received: from ubuntu.eng.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id 15sm41744811pfz.36.2016.08.16.15.33.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Aug 2016 15:33:34 -0700 (PDT) X-CudaMail-Envelope-Sender: guru.ovn@gmail.com From: Gurucharan Shetty To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-E1-815076072 X-CudaMail-DTE: 081616 X-CudaMail-Originating-IP: 209.85.220.65 Date: Tue, 16 Aug 2016 05:32:15 -0700 X-ASG-Orig-Subj: [##CM-E1-815076072##][PATCH] system-ovn.at: Fix occasional test failures. Message-Id: <1471350735-26221-1-git-send-email-guru@ovn.org> X-Mailer: git-send-email 1.9.1 X-Barracuda-Connect: UNKNOWN[192.168.24.1] X-Barracuda-Start-Time: 1471386817 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH] system-ovn.at: Fix occasional test failures. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" A run of the NAT unit tests hundred times showed some occasional unit test failures. With this commit, I haven't seen any failures for 100 runs. Reported-by: Joe Stringer Signed-off-by: Gurucharan Shetty --- tests/system-ovn.at | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/system-ovn.at b/tests/system-ovn.at index 09a5b6b..d336c5c 100755 --- a/tests/system-ovn.at +++ b/tests/system-ovn.at @@ -166,7 +166,8 @@ as northd OVS_APP_EXIT_AND_WAIT([ovn-northd]) as -OVS_TRAFFIC_VSWITCHD_STOP(["/failed to query port patch-.*/d"]) +OVS_TRAFFIC_VSWITCHD_STOP(["/failed to query port patch-.*/d +/*connection dropped.*/d"]) AT_CLEANUP AT_SETUP([ovn -- 2 LRs connected via LS, gateway router, easy SNAT]) @@ -247,6 +248,8 @@ ovn-nbctl lsp-add alice alice1 \ ovn-nbctl -- --id=@nat create nat type="snat" logical_ip=192.168.1.2 \ external_ip=172.16.1.1 -- add logical_router R2 nat @nat +OVS_WAIT_UNTIL([ovs-ofctl dump-flows br-int | grep ct\( | grep nat]) + # South-North SNAT: 'foo1' pings 'alice1'. But 'alice1' receives traffic # from 172.16.1.1 NS_CHECK_EXEC([foo1], [ping -q -c 3 -i 0.3 -w 2 172.16.1.2 | FORMAT_PING], \ @@ -272,7 +275,8 @@ as northd OVS_APP_EXIT_AND_WAIT([ovn-northd]) as -OVS_TRAFFIC_VSWITCHD_STOP(["/failed to query port patch-.*/d"]) +OVS_TRAFFIC_VSWITCHD_STOP(["/failed to query port patch-.*/d +/*connection dropped.*/d"]) AT_CLEANUP AT_SETUP([ovn -- load-balancing])