From patchwork Thu Oct 7 18:04:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1537874 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=pHlVAAbQ; 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 4HQK3C13FYz9sR4 for ; Fri, 8 Oct 2021 05:04:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E22A284311; Thu, 7 Oct 2021 18:04:36 +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 y1SaeLaGMo7h; Thu, 7 Oct 2021 18:04:35 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id DEE7F84161; Thu, 7 Oct 2021 18:04:34 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C224AC000F; Thu, 7 Oct 2021 18:04:34 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6765CC000D for ; Thu, 7 Oct 2021 18:04:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 49CFD40A29 for ; Thu, 7 Oct 2021 18:04:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7lXSrdlY5zS6 for ; Thu, 7 Oct 2021 18:04:32 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by smtp4.osuosl.org (Postfix) with ESMTPS id ECE5F40A1F for ; Thu, 7 Oct 2021 18:04:31 +0000 (UTC) Received: by mail-lf1-x12e.google.com with SMTP id u18so28151389lfd.12 for ; Thu, 07 Oct 2021 11:04:31 -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=PzEyK/Xk6XslRQaKYXabpazRBbJx2Qx+eQi8caQDfUQ=; b=pHlVAAbQYiajUVnPKkfG7Vc0WdC3UNT1QudN0PQpU1cDvJlA0BLrtU36E4D7JRYLX1 QmmhAnRRHnmCfsvfmr3reWz3eNpdt87QpB3n3TA9wDYqCypUTj9uVvg536/M/Yy9J18o k3fr8yGzrePZfyAP56E4EoS2shLuSKjQ9MUhAfmNKl9UDNUBq8RBFYcO36k2N1FgYs/g jg3otaOGPIKqoTD7ak4JVTVtU/1LQPlbBp7q4emtVN/+ogssbpYJhGNggTcU9WBngZQF hbEAoZwXys/NhT2qEVw6gf9m1B7kf1lhe6tdibgmKEjwPgUFdf5dMZqofUyqBeshiRPY Ufbg== 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=PzEyK/Xk6XslRQaKYXabpazRBbJx2Qx+eQi8caQDfUQ=; b=v+0AsJRMCudd7HwNV6/s3TC6YmZ7vY6rUlywRikKMgWl13cSr71NapI0wuqVWN2sM+ gv31co1TbojOwFe73LK3nXiaYyOd0d4o0YJfmYKmsSkZzguJHV310M+y9+OTFs0IrwVI xVQO0Fmh4Yhsfs23fYI6V6Va87NUEj7UdrlS/rF4OWjOc2L6lqBoW6ksE5bGOrcHJuHV ob1c12Ja1ZdfYxmYtr6yQJjNqPVSmg6dYA11FaaVIt6FoYiyefByl7yWSxq9+lZLIhkg XlzeATiax/PV5W4d2TiDWnZkXYBpNyGGZ51yeiHeLhOpX9fd3rbQH2350EmeNcGteMST oxcg== X-Gm-Message-State: AOAM532JpmI9raGMAeQOxXQHedmx9IvPN38n2oR+nY1k8xd+WaSmuaUv ZGvICGBoAZyhwMCLGuNyJP7X4p9pbOY= X-Google-Smtp-Source: ABdhPJwaKxtFubt+tJQSzhlISV/SlAkLGpUEyMs1+xzhoCwr8neJPbOD2r8XA4/GOTeCcF/fBO1iLQ== X-Received: by 2002:a05:6512:12d3:: with SMTP id p19mr5833714lfg.280.1633629869642; Thu, 07 Oct 2021 11:04:29 -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 t22sm4099ljc.120.2021.10.07.11.04.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Oct 2021 11:04:29 -0700 (PDT) From: Vladislav Odintsov To: dev@openvswitch.org Date: Thu, 7 Oct 2021 21:04:28 +0300 Message-Id: <20211007180428.516-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 daemons in test sandbox were running slower than 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. Test fail example: # ../../../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 Acked-by: Mark D. Gray --- 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