[From nobody Tue Sep 21 12:00:02 2021
Received: from localhost [::1]
 by metalio.americas.hpqcorp.net with IMAP (fetchmail-6.3.26)
 for &lt;erikj@localhost&gt; (single-drop); Mon, 20 Sep 2021 16:48:33 -0500 (CDT)
Received: from DF4PR8401MB0428.NAMPRD84.PROD.OUTLOOK.COM
 (2a01:111:e400:7606::17) by TU4PR8401MB0381.NAMPRD84.PROD.OUTLOOK.COM with
 HTTPS; Mon, 20 Sep 2021 21:46:40 +0000
Received: from BN6PR13CA0013.namprd13.prod.outlook.com (2603:10b6:404:10a::23)
 by DF4PR8401MB0428.NAMPRD84.PROD.OUTLOOK.COM
 (2a01:111:e400:7606::17) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.18; Mon, 20 Sep
 2021 21:46:39 +0000
Received: from BN8NAM11FT039.eop-nam11.prod.protection.outlook.com
 (2603:10b6:404:10a:cafe::dd) by BN6PR13CA0013.outlook.office365.com
 (2603:10b6:404:10a::23) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.6 via Frontend
 Transport; Mon, 20 Sep 2021 21:46:39 +0000
Authentication-Results: spf=none (sender IP is 15.219.147.19)
 smtp.mailfrom=gluster.org; hpenterprise.mail.onmicrosoft.com; dkim=fail
 (signature did not verify)
 header.d=hpe.com;hpenterprise.mail.onmicrosoft.com; dmarc=fail action=none
 header.from=hpe.com;
Received-SPF: None (protection.outlook.com: gluster.org does not designate
 permitted sender hosts)
Received: from G1W8107.americas.hpqcorp.net (15.219.147.19) by
 BN8NAM11FT039.mail.protection.outlook.com (10.13.177.169) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id
 15.20.4523.14 via Frontend Transport; Mon, 20 Sep 2021 21:46:38 +0000
Received: from G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) by
 G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) with Microsoft SMTP
 Server (TLS) id 15.0.1497.18; Mon, 20 Sep 2021 21:46:25 +0000
Received: from g9t5006.houston.hpe.com (15.241.48.70) by
 G4W9120.americas.hpqcorp.net (16.210.21.15) with Microsoft SMTP Server (TLS)
 id 15.0.1497.18 via Frontend Transport; Mon, 20 Sep 2021 21:46:25 +0000
Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com
 [148.163.147.86])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by g9t5006.houston.hpe.com (Postfix) with ESMTPS id A8A7767
 for &lt;erik.jacobson@hpe.com&gt;; Mon, 20 Sep 2021 21:46:24 +0000 (UTC)
Received: from pps.filterd (m0134420.ppops.net [127.0.0.1])
 by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18KHQhVg030053
 for &lt;erik.jacobson@hpe.com&gt;; Mon, 20 Sep 2021 21:46:24 GMT
Authentication-Results-Original: ppops.net;	spf=none
 smtp.mailfrom=gluster-users-bounces@gluster.org;	dkim=fail header.s=pps0720
 header.d=hpe.com;	dmarc=fail header.from=hpe.com
Received: from lists-el7.rht.gluster.org (lists-el7.rht.gluster.org
 [8.43.85.172])
 by mx0b-002e3701.pphosted.com with ESMTP id 3b6byx0mgf-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
 Mon, 20 Sep 2021 21:46:23 +0000
Received: from lists-el7.rht.gluster.org (localhost [IPv6:::1])
 by lists-el7.rht.gluster.org (Postfix) with ESMTP id 8D2BB4003A;
 Mon, 20 Sep 2021 21:45:20 +0000 (UTC)
X-Original-To: gluster-users@gluster.org
Delivered-To: gluster-users@gluster.org
Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com
 [148.163.143.35])
 by lists-el7.rht.gluster.org (Postfix) with ESMTP id 0F37140027
 for &lt;gluster-users@gluster.org&gt;; Mon, 20 Sep 2021 21:45:17 +0000 (UTC)
Received: from pps.filterd (m0134425.ppops.net [127.0.0.1])
 by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18KKYm45031874; 
 Mon, 20 Sep 2021 21:46:14 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com;
 h=date : from : to :
 subject : message-id : references : content-type : in-reply-to :
 mime-version; s=pps0720; bh=JDpAmKZjinz+ChabE0FE4xV8OI/9qZtiojo+4Ep6X2M=;
 b=fwdQKqRkDv7zYLhfFMKlq1TbOYGgmVEuItphE4hixOloNW7eEVTHyUQrwbvrPH8IVASS
 6QBmxf8B5mS1lfFAGuENTj9IWL8gxwzywLg2Ft39sQAiXD27JRByROTTwaT2CErTqUnF
 k/vFR5/0UO4R8s+sFrx7Rt8Kp27EYFZsncmOuk38KgbXkQlUz1qJzLp6aOT+2Ohomw7k
 Akcj6AJJqD8RuO18sMtT5qhSAodeD+cSKvW/eigm0K6yQ0GuCxOQpiw/iRVdEqSqw9Mi
 yCMCmD4PlLZTZRfVrIuhMhuAtq422V3e3ELiBKUog/V/HGimZ9aWyCI196+V63KK7rvQ kg== 
Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27])
 by mx0b-002e3701.pphosted.com with ESMTP id 3b6gw6fs0f-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
 Mon, 20 Sep 2021 21:46:13 +0000
Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net
 [16.196.225.135])
 by g2t2354.austin.hpe.com (Postfix) with ESMTP id 0EA60AC;
 Mon, 20 Sep 2021 21:46:13 +0000 (UTC)
Received: from metalio.americas.hpqcorp.net (metalio.americas.hpqcorp.net
 [10.251.9.134])
 by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id CBE9D3F;
 Mon, 20 Sep 2021 21:46:12 +0000 (UTC)
Date: Mon, 20 Sep 2021 16:46:12 -0500
From: Erik Jacobson &lt;erik.jacobson@hpe.com&gt;
To: gluster-users@gluster.org, hpcm-devel@gluster.org
Message-ID: &lt;20210920214612.GD18434@metalio.americas.hpqcorp.net&gt;
References: &lt;20210920155930.GA18434@metalio.americas.hpqcorp.net&gt;
 &lt;20210920163535.GB18434@metalio.americas.hpqcorp.net&gt;
Content-Type: multipart/mixed; boundary=&quot;MGYHOYXEY6WxJCY8&quot;
Content-Disposition: inline
In-Reply-To: &lt;20210920163535.GB18434@metalio.americas.hpqcorp.net&gt;
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Proofpoint-UnRewURL: 5 URL's were un-rewritten
X-HPE-SCL: -1
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475
 definitions=2021-09-20_07,2021-09-20_01,2020-04-07_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 adultscore=0 phishscore=0
 lowpriorityscore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0
 suspectscore=0 malwarescore=0 mlxscore=0 spamscore=0 clxscore=1011
 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2109030001 definitions=main-2109200125
Subject: [Gluster-users] gluster forcing IPV6 on our IPV4 servers,
 glusterd fails (was gluster update question regarding new DNS
 resolution requirement)
X-BeenThere: gluster-users@gluster.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Gluster General Discussion List  &lt;gluster-users.gluster.org&gt;
List-Unsubscribe: &lt;https://lists.gluster.org/mailman/options/gluster-users&gt;,
 &lt;mailto:gluster-users-request@gluster.org?subject=unsubscribe&gt;
List-Archive: &lt;http://lists.gluster.org/pipermail/gluster-users/&gt;
List-Post: &lt;mailto:gluster-users@gluster.org&gt;
List-Help: &lt;mailto:gluster-users-request@gluster.org?subject=help&gt;
List-Subscribe: &lt;https://lists.gluster.org/mailman/listinfo/gluster-users&gt;,
 &lt;mailto:gluster-users-request@gluster.org?subject=subscribe&gt;
Errors-To: gluster-users-bounces@gluster.org
Sender: Gluster-users &lt;gluster-users-bounces@gluster.org&gt;
X-Proofpoint-GUID: rRSB5sXrozijhENcmXr3pq1-XwBj6Ku1
X-CLX-Shades: MLX
X-CLX-Response: 1TFkXGxkbEQpMehcaEQpZRBdjU2F/WUtEE01gXBEKWFgXY1NMTx14ZR54QRw
 RCnhOF2xsfU0ZSGtnZVppEQp5TBdkR0ZgEl4YGnxnXBEKQ0gXBx4SGxEKQ1kXBxsaHREKQ0kXGg
 QaGhoRCllNF2dmchEKWUkXGnEaEBp3BhsbG3EbGBAadwYYGgYaEQpZXhdobnkRCklGF0JaT3VCR
 VleT04RCkNOF1h4eWgfWXJYRVBDQEJvZElHclgZWlsbB3JdaEAcYV8bEQpYXBcfBBoEGBkZBRsa
 BBsaGgQeEgQYGBAbHhofGhEKXlkXc0xbcmERCk1cFx8aExEKTFoXaWhtTWt7EQpNThd7EQpMRhd
 vY2tvRmtuEQpCTxdvfEJBWUsBSUJjQREKQ1oXGx4SBBscGQQbHhkEGR8RCkJeFxsRCkRYFxgRCk
 ReFxgRCkJGF3p4BX1/YBtaRRtnEQpCRxdlGG4aWQFvAXBYeREKQlwXGhEKQkUXZhNQXmR6E3tve
 mURCkJOF2xsfU0ZSGtnZVppEQpCTBdjU0xPHXhlHnhBHBEKQmwXYBhHUGxkGGxrS1gRCkJAF2Fp
 Y15EcnphRF9kEQpaWBcfEQp5QxdnS0RYc0ZbeBxLWREKcGcXY35yHFNGE2F9fxgQGhEKcGgXbhg
 faB9JfxlDZkcQGhEKcGgXY3JcawV/HkJoeRIQGhEKcGgXb1BeeWR+fWdBbWwQGhEKcGgXb2d4XB
 1cexlQXU0QGhEKcGgXYk9cXltPTxJ/ZxsQGhEKcH0Xbm8fSHJiSR4dEkUQGhEKcH0XZUZfYFpAe
 lpBe1kQGhEKcH0XZktne3BES3ITTmUQGhEKcGsXZUsTWQVsTWVkBWwQGhEKcEsXYxgYZX5LfkJy
 fQUQGxoZEQpwfxdraxJJaGVLSUFDSRAbHRkRCnBfF25nX0F/fFMdeGRmEBoRCnB/F29EYVASE38
 bHBJ+EBMaEQpwXxdtbUt/Rh8fQ1JDbRAaEQpwfxd6GWBsbkgSZHJvWBAaEQpwXxdpXV9+RR58GF
 JvTxAcGhEKcGwXYgUFYGZ6H1paHlMQHBoRCnBDF2NMQlJoaRhlbWgeEBsYEhEKbX4XGhEKWE0XS
 xEg
X-Proofpoint-ORIG-GUID: rRSB5sXrozijhENcmXr3pq1-XwBj6Ku1
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475
 definitions=2021-09-20_07,2021-09-20_01,2020-04-07_01
X-Proofpoint-Spam-Details: rule=inbound_notspam policy=inbound score=0
 impostorscore=0 phishscore=0
 lowpriorityscore=0 priorityscore=0 mlxscore=0 mlxlogscore=999 clxscore=131
 suspectscore=0 spamscore=0 bulkscore=0 adultscore=0 malwarescore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001
 definitions=main-2109200125
X-HPE-EXTERNAL: 1
Return-Path: gluster-users-bounces@gluster.org
X-OrganizationHeadersPreserved: G1W8107.americas.hpqcorp.net
X-MS-Exchange-Organization-ExpirationStartTime: 20 Sep 2021 21:46:38.7510 (UTC)
X-MS-Exchange-Organization-ExpirationStartTimeReason: OriginalSubmit
X-MS-Exchange-Organization-ExpirationInterval: 1:00:00:00.0000000
X-MS-Exchange-Organization-ExpirationIntervalReason: OriginalSubmit
X-MS-Exchange-Organization-Network-Message-Id: c4ee1bb8-02d2-4e3d-0e3b-08d97c802033
X-EOPAttributedMessage: 0
X-MS-Exchange-Organization-MessageDirectionality: Originating
X-MS-Exchange-Organization-AuthSource: G4W9120.americas.hpqcorp.net
X-MS-Exchange-Organization-AuthAs: External
X-MS-Exchange-Organization-AuthMechanism: 10
X-MS-Exchange-Organization-SCL: -1
X-CrossPremisesHeadersPromoted: BN8NAM11FT039.eop-nam11.prod.protection.outlook.com
X-CrossPremisesHeadersFiltered: BN8NAM11FT039.eop-nam11.prod.protection.outlook.com
X-MS-PublicTrafficType: Email
X-OriginatorOrg: hpe.onmicrosoft.com
X-MS-Office365-Filtering-Correlation-Id: c4ee1bb8-02d2-4e3d-0e3b-08d97c802033
X-MS-TrafficTypeDiagnostic: DF4PR8401MB0428:
X-MS-Exchange-Organization-BypassClutter: true
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-Microsoft-Antispam: BCL:0;
X-Forefront-Antispam-Report: CIP:15.219.147.19; CTRY:US; LANG:en; SCL:-1; SRV:;
 IPV:NLI; SFV:SFE; H:G1W8107.americas.hpqcorp.net; PTR:InfoDomainNonexistent;
 CAT:NONE; SFS:; DIR:INB; 
X-MS-Exchange-ABP-GUID: 02950aeb-3c14-4da5-8c60-ccbcc3967284
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2021 21:46:38.6251 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: c4ee1bb8-02d2-4e3d-0e3b-08d97c802033
X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=105b2061-b669-4b31-92ac-24d304d195dc; Ip=[15.219.147.19];
 Helo=[G1W8107.americas.hpqcorp.net]
X-MS-Exchange-CrossTenant-AuthSource: G4W9120.americas.hpqcorp.net
X-MS-Exchange-CrossTenant-AuthAs: External
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0428
X-MS-Exchange-Transport-EndToEndLatency: 00:00:01.5601917
X-MS-Exchange-Processed-By-BccFoldering: 15.20.4523.018
X-Microsoft-Antispam-Mailbox-Delivery: wl:1; pcwl:1; ucf:0; jmr:0; auth:0;
 dest:I;
 ENG:(910001)(944506458)(944626604)(750131)(520011016)(520004051)(702028); 
X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Dg9RnLmhzWsnXQzngcuWToKPvjYpdStB8wy2LUwa4mLwzENIkLHVmevwi1Hd?=
 =?us-ascii?Q?hheCMpMM9vbXX2cGGqYyI74wemrLpGIrrzjpVHdgf5pI143O+6sXeRNgAHxn?=
 =?us-ascii?Q?IlYK4nOaSj1S4T4UVS+rbl1uh7ctAljfOZGjCiBQlFBoOPSKgSbolHm6hY1U?=
 =?us-ascii?Q?lPptk3Mp+riooNm368+ufPh/NZ3eAfH7bqPjM4831xxFSGtHobbpbyizBa1h?=
 =?us-ascii?Q?CobuIWOKgOG0YWkc8rGLQUAl62NC7iA2hs09nexi6vXusqKfufwDahX/Ruyu?=
 =?us-ascii?Q?bfiY6IXL1S5FQ5t4IHdB/tf3tv/sq9VEeDUW+lgWkwTpahRUNY9l3GgTIGpi?=
 =?us-ascii?Q?oSF3OjazWhaZOAqHSEDWOcFhyZREHqkDoE0wA//O1wj31xYpqADyOLB53TXZ?=
 =?us-ascii?Q?n7rcNNqYZJwQWfmN0KwXWg1U7NLS5Xl4GSPQBn5CXpVv8AVtqz5+RyReFyrU?=
 =?us-ascii?Q?OCz9a80bfqtLA8Pce9odf5KA+88VmqB+ylhDhlARQIVxCpGMEG/PPzUbrZr6?=
 =?us-ascii?Q?X2X0xtbrnaFN7fGyHEbqgAwQJQrfI87YpvhTK0vbij0RURNAi/Lfn8iA1QCV?=
 =?us-ascii?Q?ue3n0INHroRwn++0Pdr3kQgERnP5Bvd2o5F1ZHNRuEEsIrFVOzDMsETJHG85?=
 =?us-ascii?Q?DX0YCwLawJsVmAf+alaqRYJXHiNnwkRoy55pxYNmTABlwzl8i3kpqqERl8Nr?=
 =?us-ascii?Q?JZdX7Sp/H704gkk/Ps7IXTR6bpIUxeSy/RSgENYdaPLdkTmDIi0jKfMQz0Cz?=
 =?us-ascii?Q?J3fceMSa0sw5p2ixFk4LmGivrdzsEC2BHSINM41PZEUiypkz9xV2HyRo9ZSh?=
 =?us-ascii?Q?cKk9QZ4vx68syogVXA2kYGX96VbUQN//2N3H1lx8ZN6hyfwMmsdhEr2Y/PSZ?=
 =?us-ascii?Q?tCp6rVMDuCpXYycJER7pbCSlyUJcUDTWgtDAibi1j59l58j0sKTQl3d/4JsG?=
 =?us-ascii?Q?0G58eBgXKmuGNY3YquJGonqJMKp5GmKwLwox9/IV+BUDJlgQy3dvmKd18+nP?=
 =?us-ascii?Q?7wPyG5x686K8goGdwmmUeOi5ZGQMcc1JhsvVMi7LYphqkFDupgoTqVk8bQ7v?=
 =?us-ascii?Q?oXGzPmj409iTH/cWKtJJDZKUAIYdofXq12itpeigUTvFNMW6EK6zweFjexNz?=
 =?us-ascii?Q?Fko8cZLrvMKrU8s1Hu6+I8xJwRdrJrY9o1AOgMYA+QHDyBsfFbP37kao6vRs?=
 =?us-ascii?Q?BVi6cGb1f8J66nwZA5+fk6QLJ+HeATVyYrhS1labZ5YZuJe+fX0TaIYpbYTC?=
 =?us-ascii?Q?PjY8Vr1h7kCUUfErkeUqSqxEZbEQzHi/CAJTWP0N6eOBdpCJBO6BjdvG2LK3?=
 =?us-ascii?Q?AWF924a4RltU3TSd+60/dXaVMQhJmIb4184l4DUu8ps815f2mKnlWkQFr3na?=
 =?us-ascii?Q?XPdXqohDbEyKNICK9VQSMnNmBSEqcjMvF3bxoh+LAtKAX20Ucw43UyWoK7/V?=
 =?us-ascii?Q?/TswRMwrwOvZHKIITpy8sHNHNxuw+7HVmz8dxslErmMcAIyBoaa+GuO/aEpa?=
 =?us-ascii?Q?BeLCQHNWeT5WxyRQQonZ5QpNBabbY62FbvN0/9KDYxPu/S15ijRxqLQ3tXvL?=
 =?us-ascii?Q?PvFhINQEwhxjwvRp57StS6wluGv0rhEdn54Rip93ftjukCOYu492BRhgJR6r?=
 =?us-ascii?Q?yTewP37Cd1KbVBflEIVxkb0S5rROBDoDTIdvYp3Ce1EeltUz7PEebQ61+vs/?=
 =?us-ascii?Q?fANivXWDIwiBM9kUVWwVf9Pgh2g9M96TvSms16ByirqwS2C5eAZFLdQD8DBq?=
 =?us-ascii?Q?wIBFqH1K7LZ+kfIL89g1BvtCZ6p/9BTEv2vDEFv01oH3w30Kpyq/kvFRgvRb?=
 =?us-ascii?Q?rWremMoj5rmfUQ2XvOpm3fCHvBKsRpPOH9pYrs2BK/KG32DifVFHXf/h?=
MIME-Version: 1.0

--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: Quoted-printable

I pretended I'm a low-level C programmer with network and filesystem
experience for a few hours.

I'm not sure what the right solution is but what was happening was the
code was trying to treat our IPV4 hosts as AF_INET6 and the family was
incompatible with our IPV4 IP addresses. Yes, we need to move to IPV6
but we're hoping to do that on our own time (~50 years like everybody
else :)

I found a chunk of the code that seemed to be force-setting us to
AF_INET6.

While I'm sure it is not 100% the correct patch, the patch attached and
pasted below is working for me so I'll integrate it with our internal
build to continue testing.

Please let me know if there is a configuration item I missed or a
different way to do this. I added -devel to this email.

In the previous thread, you would have seen that we're testing a
hopeful change that will upgrade our deployed customers from gluster
7.9 to gluster 9.3.

Thank you!! Advice on next steps would be appreciated !!


diff -Narup glusterfs-9.3-ORIG/rpc/rpc-transport/socket/src/name.c glusterf=
s-9.3-NEW/rpc/rpc-transport/socket/src/name.c
--- glusterfs-9.3-ORIG/rpc/rpc-transport/socket/src/name.c	2021-06-29 00:27=
:44.381408294 -0500
+++ glusterfs-9.3-NEW/rpc/rpc-transport/socket/src/name.c	2021-09-20 16:34:=
28.969425361 -0500
@@ -252,9 +252,16 @@ af_inet_client_get_remote_sockaddr(rpc_t
     /* Need to update transport-address family if address-family is not pr=
ovided
        to command-line arguments
     */
+    /* HPE This is forcing our IPV4 servers in to to an IPV6 address
+     * family that is not compatible with IPV4. For now we will just set it
+     * to AF_INET.
+     */
+    /*
     if (inet_pton(AF_INET6, remote_host, &amp;serveraddr)) {
         sockaddr-&gt;sa_family =3D AF_INET6;
     }
+    */
+    sockaddr-&gt;sa_family =3D AF_INET;
=20
     /* TODO: gf_resolve is a blocking call. kick in some
        non blocking dns techniques */


On Mon, Sep 20, 2021 at 11:35:35AM -0500, Erik Jacobson wrote:
&gt; I missed the other important log snip:
&gt;=20
&gt; The message &quot;E [MSGID: 101075] [common-utils.c:520:gf_resolve_ip6] 0-reso=
lver: error in getaddrinfo [{family=3D10}, {ret=3DAddress family for hostna=
me not supported}]&quot; repeated 620 times between [2021-09-20 15:49:23.720633 =
+0000] and [2021-09-20 15:50:41.731542 +0000]
&gt;=20
&gt; So I will dig in to the code some here.
&gt;=20
&gt;=20
&gt; On Mon, Sep 20, 2021 at 10:59:30AM -0500, Erik Jacobson wrote:
&gt; &gt; Hello all! I hope you are well.
&gt; &gt;=20
&gt; &gt; We are starting a new software release cycle and I am trying to find a
&gt; &gt; way to upgrade customers from our build of gluster 7.9 to our build of
&gt; &gt; gluster 9.3
&gt; &gt;=20
&gt; &gt; When we deploy gluster, we foribly remove all references to any host
&gt; &gt; names and use only IP addresses. This is because, if for any reason a
&gt; &gt; DNS server is unreachable, even if the peer files have IPs and DNS, it
&gt; &gt; causes glusterd to be unable to reach peers properly. We can't really
&gt; &gt; rely on /etc/hosts either because customers take artistic licene with
&gt; &gt; their /etc/hosts files and don't realize that problems that can cause.
&gt; &gt;=20
&gt; &gt; So our deployed peer files look something like this:
&gt; &gt;=20
&gt; &gt; uuid=3D46a4b506-029d-4750-acfb-894501a88977
&gt; &gt; state=3D3
&gt; &gt; hostname1=3D172.23.0.16
&gt; &gt;=20
&gt; &gt; That is, with full intention, we avoid host names.
&gt; &gt;=20
&gt; &gt; When we upgrade to gluster 9.3, we fall over with these errors and
&gt; &gt; gluster is now partitioned and the updated gluster servers can't reach
&gt; &gt; anybody:
&gt; &gt;=20
&gt; &gt; [2021-09-20 15:50:41.731543 +0000] E [name.c:265:af_inet_client_get_rem=
ote_sockaddr] 0-management: DNS resolution failed on host 172.23.0.16
&gt; &gt;=20
&gt; &gt;=20
&gt; &gt; As you can see, we have defined on purpose everything using IPs but in
&gt; &gt; 9.3 it appears this method fails. Are there any suggestions short of
&gt; &gt; putting real host names in peer files?
&gt; &gt;=20
&gt; &gt;=20
&gt; &gt;=20
&gt; &gt; FYI
&gt; &gt;=20
&gt; &gt; This supercomputer will be using gluster for part of its system
&gt; &gt; management. It is how we deploy the Image Objects (squashfs images)
&gt; &gt; hosted on NFS today and served by gluster leader nodes and also store
&gt; &gt; system logs, console logs, and other data.
&gt; &gt;=20
&gt; &gt; https://www.olcf.ornl.gov/frontier/=20=20=20
&gt; &gt;=20
&gt; &gt;=20
&gt; &gt; Erik
&gt; &gt; ________
&gt; &gt;=20
&gt; &gt;=20
&gt; &gt;=20
&gt; &gt; Community Meeting Calendar:
&gt; &gt;=20
&gt; &gt; Schedule -
&gt; &gt; Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
&gt; &gt; Bridge: https://meet.google.com/cpu-eiue-hvk=20=20=20
&gt; &gt; Gluster-users mailing list
&gt; &gt; Gluster-users@gluster.org
&gt; &gt; https://lists.gluster.org/mailman/listinfo/gluster-users=20=20=20
&gt; ________
&gt;=20
&gt;=20
&gt;=20
&gt; Community Meeting Calendar:
&gt;=20
&gt; Schedule -
&gt; Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
&gt; Bridge: https://meet.google.com/cpu-eiue-hvk=20=20
&gt; Gluster-users mailing list
&gt; Gluster-users@gluster.org
&gt; https://lists.gluster.org/mailman/listinfo/gluster-users=20=20

--MGYHOYXEY6WxJCY8
Content-Type: text/x-patch; charset=us-ascii
Content-Disposition: attachment; filename=&quot;gluster-ipv4.patch&quot;

diff -Narup glusterfs-9.3-ORIG/rpc/rpc-transport/socket/src/name.c glusterfs-9.3-NEW/rpc/rpc-transport/socket/src/name.c
--- glusterfs-9.3-ORIG/rpc/rpc-transport/socket/src/name.c	2021-06-29 00:27:44.381408294 -0500
+++ glusterfs-9.3-NEW/rpc/rpc-transport/socket/src/name.c	2021-09-20 16:34:28.969425361 -0500
@@ -252,9 +252,16 @@ af_inet_client_get_remote_sockaddr(rpc_t
     /* Need to update transport-address family if address-family is not provided
        to command-line arguments
     */
+    /* HPE This is forcin gour IPV4 servers in to to an IPV6 address
+     * family that is not compatible with IPV4. For now we will just set it
+     * to AF_INET.
+     */
+    /*
     if (inet_pton(AF_INET6, remote_host, &amp;serveraddr)) {
         sockaddr-&gt;sa_family = AF_INET6;
     }
+    */
+    sockaddr-&gt;sa_family = AF_INET;
 
     /* TODO: gf_resolve is a blocking call. kick in some
        non blocking dns techniques */

--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=&quot;us-ascii&quot;
Content-Disposition: inline
Content-Transfer-Encoding: Quoted-printable

________



Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://meet.google.com/cpu-eiue-hvk=20
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users=20

--MGYHOYXEY6WxJCY8--
]