From patchwork Mon Sep 18 16:47:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xavier Simonart X-Patchwork-Id: 1836331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eJPsOmYZ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rq9hV25pHz1ync for ; Tue, 19 Sep 2023 02:47:54 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 001A74175D; Mon, 18 Sep 2023 16:47:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 001A74175D Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eJPsOmYZ X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Jcn8jDjyUDx; Mon, 18 Sep 2023 16:47:47 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id 1DF16415BA; Mon, 18 Sep 2023 16:47:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1DF16415BA Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6726CC0DDC; Mon, 18 Sep 2023 16:47:44 +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 34708C0DD6 for ; Mon, 18 Sep 2023 16:47:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 22E3141B23 for ; Mon, 18 Sep 2023 16:47:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 22E3141B23 Authentication-Results: smtp4.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eJPsOmYZ X-Virus-Scanned: amavisd-new at osuosl.org 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 2ohBPmxuNn1h for ; Mon, 18 Sep 2023 16:47:18 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp4.osuosl.org (Postfix) with ESMTPS id 9B03E41ADE for ; Mon, 18 Sep 2023 16:47:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9B03E41ADE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695055636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YVd2/1WByWJIGH9OAIlWx6SczQmlfUcotwg+z8//yH4=; b=eJPsOmYZiLqWyG/Chgos/izqtTHr7Mx0/uD/xOGA6zTkIIh8+XBPkH8TJtH9uv1TmhRMXN wluVuaP8TyLsR0j31EuE3yzLyPE/M8KMY0O3quTPDh4bwjl36In8wh+OLi7p812c72fJlc STc/Zh4fhEPf2svMrvzcIOeIDd8Qfms= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-93-qfvuhnn1MNW97CNwvMFGOw-1; Mon, 18 Sep 2023 12:47:15 -0400 X-MC-Unique: qfvuhnn1MNW97CNwvMFGOw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EB994858F1B for ; Mon, 18 Sep 2023 16:47:14 +0000 (UTC) Received: from wsfd-netdev90.ntdv.lab.eng.bos.redhat.com (wsfd-netdev90.ntdv.lab.eng.bos.redhat.com [10.19.188.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id D2F68C15BB8; Mon, 18 Sep 2023 16:47:14 +0000 (UTC) From: Xavier Simonart To: xsimonar@redhat.com, dev@openvswitch.org Date: Mon, 18 Sep 2023 18:47:04 +0200 Message-Id: <20230918164714.3144984-6-xsimonar@redhat.com> In-Reply-To: <20230918164714.3144984-1-xsimonar@redhat.com> References: <20230918164714.3144984-1-xsimonar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn 05/15] tests: wait for all flows to be installed before sending packets 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" Remote output flows are setup when binding of remote port is received. Hence those flows can be setup after ports have been reported up. - 3 HVs, 1 VIFs/HV, 1 software GW, 1 LS - 3 HVs, 3 LS, 3 lports/LS, 1 LR - 2 HVs, 2 LRs connected via LS, gateway router Signed-off-by: Xavier Simonart --- tests/ovn.at | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/ovn.at b/tests/ovn.at index 3c4d266c5..927c505df 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -4650,6 +4650,12 @@ OVN_POPULATE_ARP wait_for_ports_up check ovn-nbctl --wait=hv sync +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv2"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv1"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv_gw"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv_gw"],["hv1"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv_gw"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv_gw"],["hv2"]) # test_packet INPORT DST SRC ETHTYPE OUTPORT... # @@ -4849,6 +4855,13 @@ check ovn-nbctl --wait=hv sync # for ARP resolution). OVN_POPULATE_ARP +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv2"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv1"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv3"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv3"],["hv2"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv3"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv3"],["hv1"]) + # test_ip INPORT SRC_MAC DST_MAC SRC_IP DST_IP OUTPORT... # # This shell function causes a packet to be received on INPORT. The packet's @@ -7645,6 +7658,9 @@ ovn-nbctl lsp-add alice alice1 \ wait_for_ports_up check ovn-nbctl --wait=hv sync +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv2"]) +OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv1"]) + # Send ip packets between foo1 and alice1 src_mac="f00000010203" dst_mac="000001010203"