From patchwork Thu Oct 7 17:49:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1537858 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=CR29uc3D; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HQJkQ66RFz9sP7 for ; Fri, 8 Oct 2021 04:50:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6B9FB843AD; Thu, 7 Oct 2021 17:50:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hO1Z2r3IZgtI; Thu, 7 Oct 2021 17:50:00 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9E1D4842FB; Thu, 7 Oct 2021 17:49:59 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 71431C000F; Thu, 7 Oct 2021 17:49:59 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0C7D0C000D for ; Thu, 7 Oct 2021 17:49:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id F071784300 for ; Thu, 7 Oct 2021 17:49:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DwZTfqKoXaHh for ; Thu, 7 Oct 2021 17:49:58 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by smtp1.osuosl.org (Postfix) with ESMTPS id 0F45A842FB for ; Thu, 7 Oct 2021 17:49:57 +0000 (UTC) Received: by mail-lf1-x12c.google.com with SMTP id j5so28170555lfg.8 for ; Thu, 07 Oct 2021 10:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XnI+SijQgpQ/Fo6sbhs6m3szpDnzZc16LYc42QcNmjg=; b=CR29uc3DCY+hOuMXT5luI+MT0ligawL1sToQ2p+4vsa7cEhW0+N2Au3P+EY4a/fnG3 1V3qYLGPeMg09FkAep8o44ZO55qF9+IKpOVUFQ1h1VPlgHW+lQVQuh2CFxKKP6vJ/w1C vAwMiOUz7Okvqj1l+tbhVpJOtzGf2WGnl5JW/0cCJ9vLBXoevH8nFR1EMcZ/eHDmnyXY tqozbLCZlgqdD4XJ5XVuVU0U7ZT76NKZx4PHhSBvK8UnYmb4TUon/AIm819uhCTdXzlT xejT9BpFDkhn7cnVp/UqwrL4eMngBOMOtJcZGul6qJc/bSArSnh3Uuh2XLxV/EUOhOS7 B+Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XnI+SijQgpQ/Fo6sbhs6m3szpDnzZc16LYc42QcNmjg=; b=YsNMPK+C8kiVbJD7+7ZoZMGIDJkEW2zRYh7qSqCj6m0JgNDb5xpmCZfK/uw/L+9a/6 xzYmlSuv8nANKl/y7Q1jJ8GJOtCDUdShGXEh7gMok+4l1zRHEDkzrVbUKOdpm9tDZKiF sQlvtg59lTvnSvdqclN2DtYlEenyC+EaaspLRDfCFA7D4rP2O7qSjRM7mQxdeDIuLmjh 4faJCVSlnCy1uc7Sy+iqWdCh4YOBf09FbY8mNSAGrcNBqRgG02gqILIRnQuUMN69jh2m oSNmeybsJhxUeye0MYhmbbp56RDkL+EsDZ2yq8AUWUZKjgXk9VC23Y7TiZtm4r6hR4fz bwag== X-Gm-Message-State: AOAM531H/YXATZlwbq3MdtzXK3n0bTks0H0NV8RS30fPDP0YT3uQ/RDd 1frnaOw4FB7gLHNmv+PLXJccj99U2G0= X-Google-Smtp-Source: ABdhPJzg3QWja1TuS7Jknp0qMbC4rBuNcu/TTrtukfK6vZF2LSfuCUW/AUO67GFENTXaNJ1lbz0qDw== X-Received: by 2002:ac2:4bc1:: with SMTP id o1mr5488831lfq.633.1633628995666; Thu, 07 Oct 2021 10:49:55 -0700 (PDT) Received: from localhost.localdomain (109-252-131-59.dynamic.spd-mgts.ru. [109.252.131.59]) by smtp.gmail.com with ESMTPSA id f28sm2475lfk.62.2021.10.07.10.49.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Oct 2021 10:49:55 -0700 (PDT) From: Vladislav Odintsov To: dev@openvswitch.org Date: Thu, 7 Oct 2021 20:49:53 +0300 Message-Id: <20211007174953.302-1-odivlad@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn] tests: fix flaky "ovn-ic -- gateway sync" test X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Sometimes when ovn-ic daemon was running less quick that usual (more often in ASAN tests), test 'ovn-ic -- gateway sync' failed if chassis was not created yet. This patch fixes such situation by adding await for chassis to appear. ../../../tests/ovn-ic.at:119: ovn_as az2 ovn-sbctl show | sort -r --- - 2021-10-07 12:50:45.178529089 +0000 +++ /home/runner/work/ovn/ovn/ovn-21.09.90/_build/sub/tests/testsuite.dir/at-groups/1069/stdout 2021-10-07 12:50:45.169509348 +0000 @@ -1,9 +1 @@ -Chassis gw1 - hostname: gw1 - Encap vxlan - Encap geneve - options: {csum="true"} - options: {csum="true"} - ip: "192.168.0.1" - ip: "192.168.0.1" 1069. ovn-ic.at:119: 1069. ovn-ic -- gateway sync -- ovn-northd -- dp-groups=no (ovn-ic.at:119): FAILED (ovn-ic.at:119) Signed-off-by: Vladislav Odintsov --- tests/ovn-ic.at | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ovn-ic.at b/tests/ovn-ic.at index 15560334d..3faa9629a 100644 --- a/tests/ovn-ic.at +++ b/tests/ovn-ic.at @@ -129,6 +129,7 @@ ovs-vsctl add-br br-phys ovn_az_attach az1 n1 br-phys 192.168.0.1 ovs-vsctl set open . external-ids:ovn-is-interconn=true external-ids:hostname=gw1 +OVS_WAIT_UNTIL([ovn_as az2 ovn-sbctl show | grep "192.168.0.1"]) AT_CHECK([ovn_as az2 ovn-sbctl show | sort -r], [0], [dnl Chassis gw1 hostname: gw1