From patchwork Wed Jan 13 23:51:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 567203 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (li376-54.members.linode.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id A60111402F0 for ; Thu, 14 Jan 2016 10:52:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=Q0KLj0VV; dkim-atps=neutral Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id CFE7F10882; Wed, 13 Jan 2016 15:52:04 -0800 (PST) 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 BD86A10140 for ; Wed, 13 Jan 2016 15:52:03 -0800 (PST) Received: from bar4.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 570AD16245F for ; Wed, 13 Jan 2016 16:52:03 -0700 (MST) X-ASG-Debug-ID: 1452729122-03dc215abd23e30001-byXFYA Received: from mx3-pf1.cudamail.com ([192.168.14.2]) by bar4.cudamail.com with ESMTP id yAUNzKw68jXEXZ3N (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 13 Jan 2016 16:52:02 -0700 (MST) X-Barracuda-Envelope-From: u9012063@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.2 Received: from unknown (HELO mail-pf0-f179.google.com) (209.85.192.179) by mx3-pf1.cudamail.com with ESMTPS (RC4-SHA encrypted); 13 Jan 2016 23:51:52 -0000 Received-SPF: pass (mx3-pf1.cudamail.com: SPF record at _netblocks.google.com designates 209.85.192.179 as permitted sender) X-Barracuda-RBL-Trusted-Forwarder: 209.85.192.179 Received: by mail-pf0-f179.google.com with SMTP id n128so89151699pfn.3 for ; Wed, 13 Jan 2016 15:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=QGnMpIit6K/+AsHqo5cLTliuBd8qA9l7OP+F3XDYhwY=; b=Q0KLj0VVBSzD3bc+JYKFcsGLvSgp1AYmK+bl/GNMo3pM4BkrKryofqhlTn3EMFZ2qp N8BUiVkMj6e1MJvPsMuSCIgUiFupjIl0ZTVEJnO7TemLg7hd3N1m1W+TN4qrtusO0jSA F4fsAtUv++CdAuqQSXYdTQpgo7eHp3bYhL2Re4XEXNznj4xMFtfh0NOcpcrxuKPxFM5m eTn5vrFSL8FTHgbJiU0iRvj0ldmovIINUK8TuIr6+4MG09RdrhzYvrCRlwfHfMNYmvR2 K2O60wvMFtBBRSyuSaljE9usu4sl6IVk2EuqXSU8pJql9lJ1a9nfhLdTeYRZL1yBrzHu udMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=QGnMpIit6K/+AsHqo5cLTliuBd8qA9l7OP+F3XDYhwY=; b=G+xHCCo/yrnW/zAV5POuX+FWnCi3d62fRxizyFvxGVlXd/iCiFXAoDkefLKv1ym2xo fO6tMaZ2IBT2a9EMhhxRWqlSBegEuSi7PYLnp04di4gUDUx2OIAcLS5sI3KVBAmrUILM H29yektja76274jxNYAmRd57ivmCZ2iE49eBYQhseZ3T7wYoW6O75vcl/xc3tX+FCj4M 9zvpWsLFIZrQ0U108HYnYN11/IfE0AxJXYKuLEYqyd5SoVyYh64sfj1jpsu/5FsgGg7U I1pMzXfzMJANpr4B+rVSJ05zN3M+f5Nj9M+V0e1J0x5dMhyZAHqEyKLIupRQAwfb2UBi AEyw== X-Gm-Message-State: ALoCoQmo3qcZ6uXps2q0wMe+Ypv4RD4EK21c07v5S3mdhCV0L7+fAeiGXYDO0HvJ8/v1IUtalf8TvEjwuWA3buygTuRMKXI+GA== X-Received: by 10.98.19.214 with SMTP id 83mr1398041pft.22.1452729112218; Wed, 13 Jan 2016 15:51:52 -0800 (PST) Received: from vm-dev.localdomain ([208.91.2.4]) by smtp.gmail.com with ESMTPSA id o81sm4933204pfi.92.2016.01.13.15.51.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jan 2016 15:51:51 -0800 (PST) X-CudaMail-Envelope-Sender: u9012063@gmail.com X-Barracuda-Apparent-Source-IP: 208.91.2.4 From: William Tu To: dev@openvswitch.org X-CudaMail-MID: CM-V1-112060847 X-CudaMail-DTE: 011316 X-CudaMail-Originating-IP: 209.85.192.179 Date: Wed, 13 Jan 2016 15:51:44 -0800 X-ASG-Orig-Subj: [##CM-V1-112060847##][PATCH v2] ovs-bugtool: Add conntrack output Message-Id: <1452729104-61503-1-git-send-email-u9012063@gmail.com> X-Mailer: git-send-email 2.5.0 X-GBUdb-Analysis: 0, 209.85.192.179, Ugly c=0.434822 p=-0.411765 Source Normal X-MessageSniffer-Rules: 0-0-0-10084-c X-Barracuda-Connect: UNKNOWN[192.168.14.2] X-Barracuda-Start-Time: 1452729122 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.60 X-Barracuda-Spam-Status: No, SCORE=0.60 using per-user scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests=BSF_SC5_MJ1963, DKIM_SIGNED, MAILTO_TO_SPAM_ADDR, RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.26105 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 0.00 MAILTO_TO_SPAM_ADDR URI: Includes a link to a likely spammer email 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS 0.50 BSF_SC5_MJ1963 Custom Rule MJ1963 Subject: [ovs-dev] [PATCH v2] ovs-bugtool: Add conntrack output 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" Add a script to show all the connection entries in the tracker. Signed-off-by: William Tu --- utilities/bugtool/automake.mk | 4 +++- utilities/bugtool/ovs-bugtool-conntrack-dump | 19 +++++++++++++++++++ .../bugtool/plugins/network-status/openvswitch.xml | 1 + xenserver/README | 5 +++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 utilities/bugtool/ovs-bugtool-conntrack-dump diff --git a/utilities/bugtool/automake.mk b/utilities/bugtool/automake.mk index 36d80ce..b11cf1a 100644 --- a/utilities/bugtool/automake.mk +++ b/utilities/bugtool/automake.mk @@ -28,7 +28,9 @@ bugtool_scripts = \ utilities/bugtool/ovs-bugtool-ovs-ofctl-show \ utilities/bugtool/ovs-bugtool-ovs-ofctl-dump-flows \ utilities/bugtool/ovs-bugtool-ovs-appctl-dpif \ - utilities/bugtool/ovs-bugtool-bond-show + utilities/bugtool/ovs-bugtool-bond-show \ + utilities/bugtool/ovs-bugtool-conntrack-dump + scripts_SCRIPTS += $(bugtool_scripts) bugtoolpluginsdir = $(pkgdatadir)/bugtool-plugins diff --git a/utilities/bugtool/ovs-bugtool-conntrack-dump b/utilities/bugtool/ovs-bugtool-conntrack-dump new file mode 100644 index 0000000..2a72c5a --- /dev/null +++ b/utilities/bugtool/ovs-bugtool-conntrack-dump @@ -0,0 +1,19 @@ +#! /bin/sh + +# This library is free software; you can redistribute it and/or +# modify it under the terms of version 2.1 of the GNU Lesser General +# Public License as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA +# +# Copyright (C) 2016 Nicira, Inc. + +ovs-appctl dpctl/dump-conntrack diff --git a/utilities/bugtool/plugins/network-status/openvswitch.xml b/utilities/bugtool/plugins/network-status/openvswitch.xml index 836cd6e..bb6792a 100644 --- a/utilities/bugtool/plugins/network-status/openvswitch.xml +++ b/utilities/bugtool/plugins/network-status/openvswitch.xml @@ -24,6 +24,7 @@ /usr/share/openvswitch/scripts/ovs-bugtool-lacp-show /usr/share/openvswitch/scripts/ovs-bugtool-cfm-show /usr/share/openvswitch/scripts/ovs-bugtool-bfd-show + /usr/share/openvswitch/scripts/ovs-bugtool-conntrack-dump /usr/share/openvswitch/scripts/ovs-bugtool-coverage-show /usr/share/openvswitch/scripts/ovs-bugtool-bond-show /usr/share/openvswitch/scripts/ovs-bugtool-memory-show diff --git a/xenserver/README b/xenserver/README index 36ea567..87378d0 100644 --- a/xenserver/README +++ b/xenserver/README @@ -95,6 +95,7 @@ debugging. The sources for the extensions are in * ovs-bugtool-coverage-show * ovs-bugtool-memory-show * ovs-bugtool-vsctl-show + * ovs-bugtool-conntrack-dump system-configuration/openvswitch.xml @@ -168,6 +169,10 @@ scripts are located in ../utilities/bugtool: Script to show a brief overview of the database contents. + ovs-bugtool-conntrack-dump + + Script to show all the connection entries in the tracker. + ovs-bugtool-daemons-ver Script to dump version information for all Open vSwitch daemons.