From dev-return-31686-apmail-geode-dev-archive=geode.apache.org@geode.apache.org Thu Aug 22 04:56:32 2019 Return-Path: X-Original-To: apmail-geode-dev-archive@minotaur.apache.org Delivered-To: apmail-geode-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 53E5F1980B for ; Thu, 22 Aug 2019 04:56:32 +0000 (UTC) Received: (qmail 5723 invoked by uid 500); 22 Aug 2019 04:56:31 -0000 Delivered-To: apmail-geode-dev-archive@geode.apache.org Received: (qmail 5631 invoked by uid 500); 22 Aug 2019 04:56:31 -0000 Mailing-List: contact dev-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list dev@geode.apache.org Received: (qmail 5620 invoked by uid 99); 22 Aug 2019 04:56:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2019 04:56:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A21441A3239 for ; Thu, 22 Aug 2019 04:56:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.199 X-Spam-Level: X-Spam-Status: No, score=-0.199 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Fi5l0tblojOS for ; Thu, 22 Aug 2019 04:56:28 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=148.163.153.148; helo=mx0b-00296801.pphosted.com; envelope-from=jbarrett@pivotal.io; receiver= Received: from mx0b-00296801.pphosted.com (mx0b-00296801.pphosted.com [148.163.153.148]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id C8D977DD38 for ; Thu, 22 Aug 2019 04:56:27 +0000 (UTC) Received: from pps.filterd (m0114584.ppops.net [127.0.0.1]) by mx0b-00296801.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7M4uPpo026267 for ; Thu, 22 Aug 2019 04:56:25 GMT Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0b-00296801.pphosted.com with ESMTP id 2uhad40hb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 22 Aug 2019 04:56:25 +0000 Received: by mail-pf1-f200.google.com with SMTP id w16so3189834pfn.12 for ; Wed, 21 Aug 2019 21:56:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=i2Q6AYnq84bqDMPaaNn1bB5zm7uuyZS9GZmy5qbf8+Y=; b=JNMagM5sE7/MgWY55Yz6zPw4aSpSvM+XZnOxJlLnhhIXOQezfBiVNUaFvifqmMEE51 MUX3PSQ1dRPHAPe3p/c0nZjrMUMl/jwr3sNtCdoHPfe+/LUalizSc5wzMCbWFDqCSdXO ReRpDueuwCyOPpxsaF20ZUHQq6oz2t8yBakWm4KPUIXUHHf/8B79HPQmHndfntvyESYw qf+7yB7CxxhR8p8+wUlxXHa4M4v+LwRONrKNhNeN+sMUSpTaUvNv793mEZEWG75wZCUi HnvUSwCcmC0o9vngIaC+/WNDoI0lQ1BD3SCovQd62WEaEC7mQw4kbuTKl0aiThY84HTq 64OA== X-Gm-Message-State: APjAAAVQAAnDM6dE2I8xuENwxKTGwmfInx9LLjNiJJKx241x/mHwgMRd I0hmbl8Rigxu3q3FetLVIjy5vf5lPq9TZIG3iXSvJMeb9gNN5Ut3Y1favY/XsSImEPbLvD5Gcm8 AwE/9QL0bghw1RfBxc9ZiTVegLuJhRifSGMcEAqo= X-Received: by 2002:a17:90a:ab0b:: with SMTP id m11mr3575051pjq.73.1566449784416; Wed, 21 Aug 2019 21:56:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdQDzua6/RWLThq7qeMMSIBp7YlV0EzH9hbfD6DT4FKw9ptS5b5xv18phMJ90UJ+cdi1x5vA== X-Received: by 2002:a17:90a:ab0b:: with SMTP id m11mr3575027pjq.73.1566449783964; Wed, 21 Aug 2019 21:56:23 -0700 (PDT) Received: from jacobs-mbp.users.condointernet.net ([174.127.212.211]) by smtp.gmail.com with ESMTPSA id x9sm20284666pgp.75.2019.08.21.21.56.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Aug 2019 21:56:23 -0700 (PDT) From: Jacob Barrett Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: geode-native ipv6 Date: Wed, 21 Aug 2019 21:56:21 -0700 References: <5F43D7F0-7627-438B-95EB-5D6AE7FCC14A@pivotal.io> To: dev@geode.apache.org In-Reply-To: Message-Id: <8F71C677-7F96-4521-92E6-FD713576685B@pivotal.io> X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-22_03:2019-08-19,2019-08-22 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 suspectscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 clxscore=1015 impostorscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1906280000 definitions=main-1908220051 You might start by updating the framework=E2=80=99s Cluster class accept = a hostname that would be used for both Locator and Server classes. Then = in an IPv6 tests you could set the hostname to '0:0:0:0:0:0:0:1=E2=80=99, = which is the loopback address. In theory this should work.=20 In Cluster.hpp: Look for all the NamedType definitions and add. using BindAddress =3D NamedType; Plumb it though to Locator and Server. In your test: Cluster cluster(=E2=80=A6, BindAddress(=E2=80=9C0:0:0:0:0:0:0:1")); Even more simple may be to not allow the hostname but just a flag for = IPv4 or IPv6 and internally set the hostname to the IPv6 or IPv6 = localhost address. In Cluster.hpp: using UseIpv6 =3D NamedType; Then plumb that through to Locator and Server and select the appropriate = loopback address. In your test: Cluster cluster(=E2=80=A6, UseIpv6(true)); I can help you in more detail if you want.=20 -Jake > On Aug 21, 2019, at 12:34 AM, Mario Ivanac = wrote: >=20 > Hi, >=20 >=20 > Can you help me, how to simulate ipv6 in new integration test = framework? >=20 >=20 > BR, >=20 > Mario >=20 > ________________________________ > =C5=A0alje: Jacob Barrett > Poslano: 14. kolovoza 2019. 21:00:35 > Prima: dev@geode.apache.org > Predmet: Re: geode-native ipv6 >=20 > Can you build an integration test in the new framework? >=20 >> On Aug 14, 2019, at 11:25 AM, Mario Ivanac = wrote: >>=20 >> Hi, >>=20 >>=20 >> created https://issues.apache.org/jira/browse/GEODE-7086, and PR with = code impacts. >>=20 >> Proposed solution was tried on IPv6 environment, and basic operations = (PUT/GET) were successful. >>=20 >> Additional test needed. >>=20 >>=20 >> BR, >>=20 >> Mario >>=20 >> ________________________________ >> =C5=A0alje: Blake Bender >> Poslano: 9. kolovoza 2019. 0:03:32 >> Prima: dev@geode.apache.org >> Predmet: Re: geode-native ipv6 >>=20 >> This chunk of code in the client handshake code leads me to believe = it is >> still IPv4 only. Won't say it's definitive, cause I'm not 100% = certain >> hostaddr is used on the server side, but still... >>=20 >> // writing first 4 bytes of the address. This will be same until >> // IPV6 support is added in the client >> uint32_t temp; >> memcpy(&temp, hostAddr, 4); >> m_memID.writeInt(static_cast(temp)); >>=20 >>=20 >>> On Thu, Aug 8, 2019 at 1:18 PM Jacob Barrett = wrote: >>>=20 >>> We are on the latest ACE. >>>=20 >>>> On Aug 8, 2019, at 9:56 AM, Mark Hanson wrote: >>>>=20 >>>> The latest ACE framework seems to have support, but I don=E2=80=99t = know how far >>> off latest we are. I don=E2=80=99t think we test anything in an IPv6 = context, so I >>> would say no that we don=E2=80=99t officially support it in the = client. Given some >>> time, I could do some testing.. >>>>=20 >>>> Thanks, >>>> Mark >>>>=20 >>>>> On Aug 8, 2019, at 7:35 AM, Blake Bender = wrote: >>>>>=20 >>>>> I'm sure someone will chime in with a more definitive answer, but = I'm >>>>> pretty certain the answer is no, sorry. >>>>>=20 >>>>> Thanks, >>>>>=20 >>>>> Blake >>>>>=20 >>>>>=20 >>>>>> On Thu, Aug 8, 2019 at 4:28 AM Mario Ivanac = >>> wrote: >>>>>>=20 >>>>>> Hi, >>>>>>=20 >>>>>>=20 >>>>>> can you tell me does geode-native client support ipv6? >>>>>>=20 >>>>>>=20 >>>>>> BR, >>>>>>=20 >>>>>> Mario >>>>>>=20 >>>>=20 >>>=20