Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1306580/?format=api
{ "id": 1306580, "url": "http://patchwork.ozlabs.org/api/patches/1306580/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20200610061843.1994116-1-numans@ovn.org/", "project": { "id": 47, "url": "http://patchwork.ozlabs.org/api/projects/47/?format=api", "name": "Open vSwitch", "link_name": "openvswitch", "list_id": "ovs-dev.openvswitch.org", "list_email": "ovs-dev@openvswitch.org", "web_url": "http://openvswitch.org/", "scm_url": "git@github.com:openvswitch/ovs.git", "webscm_url": "https://github.com/openvswitch/ovs", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20200610061843.1994116-1-numans@ovn.org>", "list_archive_url": null, "date": "2020-06-10T06:18:43", "name": "[ovs-dev,ovn,v11,5/6] tests: Enhance ovn-performance testing by adding gw router port.", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "8aa6885c47511fe56fc3f6d34e14930c610ecf6a", "submitter": { "id": 77669, "url": "http://patchwork.ozlabs.org/api/people/77669/?format=api", "name": "Numan Siddique", "email": "numans@ovn.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20200610061843.1994116-1-numans@ovn.org/mbox/", "series": [ { "id": 182423, "url": "http://patchwork.ozlabs.org/api/series/182423/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=182423", "date": "2020-06-10T06:17:26", "name": "Incremental processing improvements.", "version": 11, "mbox": "http://patchwork.ozlabs.org/series/182423/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1306580/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1306580/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<ovs-dev-bounces@openvswitch.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "dev@openvswitch.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "ovs-dev@lists.linuxfoundation.org" ], "Authentication-Results": [ "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.136; helo=silver.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)", "ozlabs.org;\n dmarc=none (p=none dis=none) header.from=ovn.org" ], "Received": [ "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 49hcJh1rpZz9sRh\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 10 Jun 2020 16:19:16 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id A84B4258C9;\n\tWed, 10 Jun 2020 06:19:14 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 6ZKXugMlmDlH; Wed, 10 Jun 2020 06:19:08 +0000 (UTC)", "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby silver.osuosl.org (Postfix) with ESMTP id 0B4E424CBC;\n\tWed, 10 Jun 2020 06:19:04 +0000 (UTC)", "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id DE091C088C;\n\tWed, 10 Jun 2020 06:19:03 +0000 (UTC)", "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 4815BC016F\n for <dev@openvswitch.org>; Wed, 10 Jun 2020 06:19:02 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by whitealder.osuosl.org (Postfix) with ESMTP id 380EC88071\n for <dev@openvswitch.org>; Wed, 10 Jun 2020 06:19:02 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id yOtz+qO54cTh for <dev@openvswitch.org>;\n Wed, 10 Jun 2020 06:18:57 +0000 (UTC)", "from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n [217.70.183.197])\n by whitealder.osuosl.org (Postfix) with ESMTPS id 2729387FF1\n for <dev@openvswitch.org>; Wed, 10 Jun 2020 06:18:52 +0000 (UTC)", "from nusiddiq.home.org.com (unknown [115.99.171.40])\n (Authenticated sender: numans@ovn.org)\n by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2D3621C0004;\n Wed, 10 Jun 2020 06:18:48 +0000 (UTC)" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-Originating-IP": "115.99.171.40", "From": "numans@ovn.org", "To": "dev@openvswitch.org", "Date": "Wed, 10 Jun 2020 11:48:43 +0530", "Message-Id": "<20200610061843.1994116-1-numans@ovn.org>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20200610061726.1937231-1-numans@ovn.org>", "References": "<20200610061726.1937231-1-numans@ovn.org>", "MIME-Version": "1.0", "Subject": "[ovs-dev] [PATCH ovn v11 5/6] tests: Enhance ovn-performance\n\ttesting by adding gw router port.", "X-BeenThere": "ovs-dev@openvswitch.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "<ovs-dev.openvswitch.org>", "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>", "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>", "List-Post": "<mailto:ovs-dev@openvswitch.org>", "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>", "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "ovs-dev-bounces@openvswitch.org", "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>" }, "content": "From: Numan Siddique <numans@ovn.org>\n\nThis covers the scenario of setting up/deleting of BFD tunnels\nfor HA.\n\nTested-by: Dumitru Ceara <dceara@redhat.com>\nSigned-off-by: Numan Siddique <numans@ovn.org>\n---\n tests/ovn-performance.at | 104 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 104 insertions(+)", "diff": "diff --git a/tests/ovn-performance.at b/tests/ovn-performance.at\nindex a12757e18..2a15cb473 100644\n--- a/tests/ovn-performance.at\n+++ b/tests/ovn-performance.at\n@@ -239,6 +239,16 @@ for i in 1 2; do\n ovn_attach n1 br-phys 192.168.0.$i\n done\n \n+for i in 1 2 3; do\n+ sim_add gw$i\n+ as gw$i\n+ ovs-vsctl add-br br-phys\n+ ovs-vsctl add-br br-ex\n+ ovs-vsctl set open . external_ids:ovn-bridge-mappings=\"public:br-ex\"\n+ j=$((i + 2))\n+ ovn_attach n1 br-phys 192.168.0.$j\n+done\n+\n # Wait for the tunnel ports to be created and up.\n # Otherwise this may affect the lflow_run count.\n \n@@ -399,6 +409,100 @@ OVN_CONTROLLER_EXPECT_NO_HIT(\n [ovn-nbctl --wait=hv acl-add pg1 to-lport 1001 'outport == @pg1 && ip4.src == $pg1_ip4' allow]\n )\n \n+# Create a public logical switch and attach the router to it.\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv ls-add public]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lsp-add public public-lr1]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lsp-set-type public-lr1 router]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lsp-set-addresses public-lr1 router]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lsp-set-options public-lr1 router-port=lr1-public]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lrp-add lr1 lr1-public 00:00:20:20:12:13 172.168.0.100/24]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lsp-add public ln-public]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lsp-set-type ln-public localnet]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lsp-set-addresses ln-public unknown]\n+)\n+\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2], [lflow_run],\n+ [ovn-nbctl --wait=hv lsp-set-options ln-public network_name=public]\n+)\n+\n+OVN_CONTROLLER_EXPECT_HIT_COND(\n+ [hv1 hv2 gw1 gw2 gw3], [lflow_run], [=0 =0 >0 =0 =0],\n+ [ovn-nbctl --wait=hv lrp-set-gateway-chassis lr1-public gw1 30]\n+)\n+\n+# After this, BFD should be enabled from hv1 and hv2 to gw1.\n+# So there should be lflow_run hits in hv1, hv2, gw1 and gw2\n+OVN_CONTROLLER_EXPECT_HIT_COND(\n+ [hv1 hv2 gw1 gw2 gw3], [lflow_run], [>0 >0 >0 >0 =0],\n+ [ovn-nbctl --wait=hv lrp-set-gateway-chassis lr1-public gw2 20]\n+)\n+\n+OVN_CONTROLLER_EXPECT_HIT(\n+ [hv1 hv2 gw1 gw2 gw3], [lflow_run],\n+ [ovn-nbctl --wait=hv lrp-set-gateway-chassis lr1-public gw3 10]\n+)\n+\n+# Make gw2 master.\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2 gw1 gw2 gw3], [lflow_run],\n+ [ovn-nbctl --wait=hv lrp-set-gateway-chassis lr1-public gw2 40]\n+)\n+\n+# Delete gw2 from gateway chassis\n+OVN_CONTROLLER_EXPECT_HIT(\n+ [hv1 hv2 gw1 gw2 gw3], [lflow_run],\n+ [ovn-nbctl --wait=hv lrp-del-gateway-chassis lr1-public gw2]\n+)\n+\n+# Delete gw1 from gateway chassis\n+# After this, the BFD should be disabled entirely as gw3 is the\n+# only gateway chassis.\n+OVN_CONTROLLER_EXPECT_HIT_COND(\n+ [hv1 hv2 gw1 gw2 gw3], [lflow_run], [>0 >0 >0 =0 >0],\n+ [ovn-nbctl --wait=hv lrp-del-gateway-chassis lr1-public gw1]\n+)\n+\n+# Delete gw3 from gateway chassis. There should be no lflow_run.\n+OVN_CONTROLLER_EXPECT_NO_HIT(\n+ [hv1 hv2 gw1 gw2 gw3], [lflow_run],\n+ [ovn-nbctl --wait=hv lrp-del-gateway-chassis lr1-public gw3]\n+)\n+\n for i in 1 2; do\n j=$((i%2 + 1))\n lp=lp$i\n", "prefixes": [ "ovs-dev", "ovn", "v11", "5/6" ] }