From patchwork Sat Nov 7 00:10:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarno Rajahalme X-Patchwork-Id: 541195 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (unknown [IPv6:2600:3c00::f03c:91ff:fe6e:bdf7]) by ozlabs.org (Postfix) with ESMTP id 5A9081402D5 for ; Sat, 7 Nov 2015 11:11:42 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nicira_com.20150623.gappssmtp.com header.i=@nicira_com.20150623.gappssmtp.com header.b=AlrrCmBm; dkim-atps=neutral Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 52A4C10A04; Fri, 6 Nov 2015 16:11:12 -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 9DF54109E7 for ; Fri, 6 Nov 2015 16:11:09 -0800 (PST) Received: from bar4.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 27B64162CCB for ; Fri, 6 Nov 2015 17:11:09 -0700 (MST) X-ASG-Debug-ID: 1446855068-03dc2117b714810001-byXFYA Received: from mx3-pf3.cudamail.com ([192.168.14.3]) by bar4.cudamail.com with ESMTP id CQ75Zr4FJbWG4Eov (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 06 Nov 2015 17:11:08 -0700 (MST) X-Barracuda-Envelope-From: jrajahalme@nicira.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.3 Received: from unknown (HELO mail-pa0-f42.google.com) (209.85.220.42) by mx3-pf3.cudamail.com with ESMTPS (RC4-SHA encrypted); 7 Nov 2015 00:21:32 -0000 Received-SPF: unknown (mx3-pf3.cudamail.com: Multiple SPF records returned) X-Barracuda-RBL-Trusted-Forwarder: 209.85.220.42 Received: by padhx2 with SMTP id hx2so129089539pad.1 for ; Fri, 06 Nov 2015 16:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nicira_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0YpONMlK2mMTLtPBOdUuqpJM1fiaq4tYqvqLHiUNwhI=; b=AlrrCmBm5UzEi1qyarkTbExTliz76mXZgxXNuaLQgFTnG6MTwN5LH/CtWaum3IzwTK ldXOCp23sRTLYLg4t20CqeQ0kvBozFnU6rAgVqF+FqxveCmLwPBh61ywokZrE6T4AufL O/cPxYiDjfk92ph7wb5s45Ar7ur0DDbA/NeAVPx9aasBV+LypOJVIvzFGZLWl/FoM/BN 5cBzmNMEhv0fCs1U0qdqw9U3CC4VDNvqElarzUGWixj8XwkRo8i8jQAkDaDbFXofm62S PYtoam/LbPvx+eJBIA+ukU7WQi7Rx9VzCx2a6fpGMO3TZPi6o/4HdpBSGzJirPUWBEJL OS6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0YpONMlK2mMTLtPBOdUuqpJM1fiaq4tYqvqLHiUNwhI=; b=N5IAVnZLnChiZFDUjyogkYZAElOYCdvU0ylJ0PXxN0ztNqfiyZcqtQW20oaqwdfq/f t0MpVsK8fm781njRUtfwKFXqJmGpvize4d6FJWNt/aOwTPBoEq4DN2BYaYhNkbHjuvYF 2IOr3pFJrSgN2WuxR9mrDUsnvHMv11GUYAw3Ru0lpU23JPGOFCCozyp9n5qlA4vhok5a sgs5m++OW7unbtW465MjujjWdQUcLY9bkiJgwNPtu+PJr6BkSf3m2vz+EGdVAwURASxk WCejT4uzKPepFVvhoPV+0mHL0mNoic5UgBMkfsbt+q3E/7nxO+q+ZjLlDI5qGCzOr7Wz gA1A== X-Gm-Message-State: ALoCoQm/VmzPspECJvKt1kRTfVKUPYmjBzV0zq06jqWuxh73tk8yFGCIbmnmqScfhwnab2DqkC1T X-Received: by 10.66.102.74 with SMTP id fm10mr21597726pab.33.1446855068204; Fri, 06 Nov 2015 16:11:08 -0800 (PST) Received: from sc9-mailhost1.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id kj3sm2137013pbc.59.2015.11.06.16.11.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Nov 2015 16:11:07 -0800 (PST) X-CudaMail-Envelope-Sender: jrajahalme@nicira.com X-Barracuda-Apparent-Source-IP: 208.91.1.34 From: Jarno Rajahalme To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-V3-1105062490 X-CudaMail-DTE: 110615 X-CudaMail-Originating-IP: 209.85.220.42 Date: Fri, 6 Nov 2015 16:10:53 -0800 X-ASG-Orig-Subj: [##CM-V3-1105062490##][PATCH v2 6/8] system-tests: Workaround for pyftpdlib bug handling IPv6 addresses. Message-Id: <1446855055-38378-7-git-send-email-jrajahalme@nicira.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446855055-38378-1-git-send-email-jrajahalme@nicira.com> References: <1446855055-38378-1-git-send-email-jrajahalme@nicira.com> X-Barracuda-Connect: UNKNOWN[192.168.14.3] X-Barracuda-Start-Time: 1446855068 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH v2 6/8] system-tests: Workaround for pyftpdlib bug handling IPv6 addresses. 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" Hack around a bug in pyftpdlib that rejects EPRT connection due to mismatching textual representation of the IPv6 address when the address is not in the normalized format. This happens when the control connection is mangled by Linux NAT. Signed-off-by: Jarno Rajahalme Acked-by: Joe Stringer --- tests/test-l7.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test-l7.py b/tests/test-l7.py index faec2bc..c89fcf2 100755 --- a/tests/test-l7.py +++ b/tests/test-l7.py @@ -37,6 +37,10 @@ def get_ftpd(): class OVSFTPHandler(FTPHandler): authorizer = DummyAuthorizer() authorizer.add_anonymous("/tmp") + # Hack around a bug in pyftpdlib, which rejects EPRT + # connection due to mismatching textual representation of + # the IPv6 address. + permit_foreign_addresses = True server = [FTPServer, OVSFTPHandler, 21] except ImportError: server = None