This is an automated email from the ASF dual-hosted git repository.

smengcl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 141e765f623 HDDS-16969. Add an IPv6-only acceptance smoke test (#11510)
141e765f623 is described below

commit 141e765f6239606309ef1f1e611cf0f7c55de8ac
Author: Siyao Meng <[email protected]>
AuthorDate: Wed Oct 21 22:03:08 2026 -0700

    HDDS-16969. Add an IPv6-only acceptance smoke test (#11510)
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    Co-authored-by: Wei-Chiu Chuang <[email protected]>
    Co-authored-by: Cursor <[email protected]>
---
 .../dist/src/main/compose/ozone-ha/ipv6.yaml       | 67 +++++++++++++++++++++
 .../dist/src/main/compose/ozone-ha/test-ipv6.sh    | 55 +++++++++++++++++
 .../dist/src/main/smoketest/ipv6/ipv6.robot        | 68 ++++++++++++++++++++++
 3 files changed, 190 insertions(+)

diff --git a/hadoop-ozone/dist/src/main/compose/ozone-ha/ipv6.yaml 
b/hadoop-ozone/dist/src/main/compose/ozone-ha/ipv6.yaml
new file mode 100644
index 00000000000..52054154bca
--- /dev/null
+++ b/hadoop-ozone/dist/src/main/compose/ozone-ha/ipv6.yaml
@@ -0,0 +1,67 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Override for running the cluster on an IPv6-only network.
+# Other environments keep the default bind host (0.0.0.0); here the bind host
+# properties are set to the IPv6 wildcard address explicitly.
+# SCM HA reads the RPC bind hosts only from the keys with service ID and node 
ID.
+x-ipv6-config:
+  &ipv6-config
+  environment:
+    HTTPFS-SITE.XML_httpfs.http.hostname: "::"
+    OZONE-SITE.XML_hdds.datanode.client.bind.host: "::"
+    OZONE-SITE.XML_hdds.datanode.http-bind-host: "::"
+    OZONE-SITE.XML_ozone.om.http-bind-host: "::"
+    OZONE-SITE.XML_ozone.recon.http-bind-host: "::"
+    OZONE-SITE.XML_ozone.s3g.http-bind-host: "::"
+    OZONE-SITE.XML_ozone.s3g.webadmin.http-bind-host: "::"
+    OZONE-SITE.XML_ozone.scm.block.client.bind.host.scmservice.scm1: "::"
+    OZONE-SITE.XML_ozone.scm.block.client.bind.host.scmservice.scm2: "::"
+    OZONE-SITE.XML_ozone.scm.block.client.bind.host.scmservice.scm3: "::"
+    OZONE-SITE.XML_ozone.scm.client.bind.host.scmservice.scm1: "::"
+    OZONE-SITE.XML_ozone.scm.client.bind.host.scmservice.scm2: "::"
+    OZONE-SITE.XML_ozone.scm.client.bind.host.scmservice.scm3: "::"
+    OZONE-SITE.XML_ozone.scm.datanode.bind.host.scmservice.scm1: "::"
+    OZONE-SITE.XML_ozone.scm.datanode.bind.host.scmservice.scm2: "::"
+    OZONE-SITE.XML_ozone.scm.datanode.bind.host.scmservice.scm3: "::"
+    OZONE-SITE.XML_ozone.scm.http-bind-host: "::"
+
+services:
+  datanode:
+    <<: *ipv6-config
+  om1:
+    <<: *ipv6-config
+  om2:
+    <<: *ipv6-config
+  om3:
+    <<: *ipv6-config
+  scm1:
+    <<: *ipv6-config
+  scm2:
+    <<: *ipv6-config
+  scm3:
+    <<: *ipv6-config
+  httpfs:
+    <<: *ipv6-config
+  s3g:
+    <<: *ipv6-config
+  recon:
+    <<: *ipv6-config
+
+networks:
+  default:
+    enable_ipv4: false
+    enable_ipv6: true
diff --git a/hadoop-ozone/dist/src/main/compose/ozone-ha/test-ipv6.sh 
b/hadoop-ozone/dist/src/main/compose/ozone-ha/test-ipv6.sh
new file mode 100755
index 00000000000..66cd52896ed
--- /dev/null
+++ b/hadoop-ozone/dist/src/main/compose/ozone-ha/test-ipv6.sh
@@ -0,0 +1,55 @@
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#suite:ipv6
+
+set -u -o pipefail
+
+COMPOSE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+export COMPOSE_DIR
+
+export SECURITY_ENABLED=false
+export OZONE_REPLICATION_FACTOR=3
+export SCM=scm1
+export OM_SERVICE_ID=omservice
+
+# shellcheck source=/dev/null
+source "$COMPOSE_DIR/../testlib.sh"
+
+export COMPOSE_FILE=docker-compose.yaml:ipv6.yaml
+
+# JaCoCo reports to the IPv4 docker bridge gateway; that address is 
unreachable on
+# the IPv6-only compose network and prevents SCM from starting.
+if [[ "${OZONE_WITH_COVERAGE:-false}" == "true" ]]; then
+  export OZONE_OPTS=
+fi
+
+start_docker_env 3
+
+execute_robot_test ${SCM} ipv6
+
+execute_robot_test ${SCM} basic/ozone-shell-single.robot
+execute_robot_test ${SCM} -v SCHEME:ofs -v BUCKET_TYPE:bucket -N 
ozonefs-ofs-bucket ozonefs/ozonefs.robot
+execute_robot_test ${SCM} -v BUCKET:generated -v BUCKET_LAYOUT:OBJECT_STORE -N 
s3-OBJECT_STORE-generated s3/objectputget.robot
+
+execute_robot_test ${SCM} -v USERNAME:httpfs httpfs
+
+execute_robot_test ${SCM} admincli/datanode.robot
+execute_robot_test ${SCM} admincli/pipeline.robot
+execute_robot_test ${SCM} admincli/scmrole.robot
+execute_robot_test ${SCM} omha/om-roles.robot
+execute_robot_test ${SCM} omha/om-leader-transfer.robot
diff --git a/hadoop-ozone/dist/src/main/smoketest/ipv6/ipv6.robot 
b/hadoop-ozone/dist/src/main/smoketest/ipv6/ipv6.robot
new file mode 100644
index 00000000000..fa59726abf8
--- /dev/null
+++ b/hadoop-ozone/dist/src/main/smoketest/ipv6/ipv6.robot
@@ -0,0 +1,68 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+*** Settings ***
+Documentation       Checks for a cluster running on an IPv6-only network
+Resource            ../commonlib.robot
+Test Timeout        5 minutes
+
+*** Keywords ***
+IPv6 Literal Of
+    [Arguments]         ${host}
+    ${address} =        Execute             getent hosts ${host} | awk 'NR == 
1 { print $1 }'
+                        Should Contain      ${address}          :
+    [Return]            [${address}]
+
+Address Overrides
+    [Arguments]         ${key_prefix}       @{nodes}
+    ${options} =        Set Variable        ${EMPTY}
+    FOR    ${node}    IN    @{nodes}
+        ${literal} =    IPv6 Literal Of     ${node}
+        ${options} =    Catenate            ${options}          --set 
'${key_prefix}.${node}=${literal}'
+    END
+    [Return]            ${options}
+
+*** Test Cases ***
+Hosts have no IPv4 address
+    FOR    ${host}    IN    scm1    om1    recon    s3g    httpfs
+        ${rc} =         Run And Return Rc   getent ahostsv4 ${host}
+                        Should Not Be Equal As Integers         ${rc}          
     0
+    END
+
+Datanodes register with IPv6 addresses
+    ${addresses} =      Execute             ozone admin datanode list --json | 
jq -r '.[].ipAddress'
+                        Should Contain      ${addresses}        :
+                        Should Not Match Regexp                 ${addresses}   
     \\d+\\.\\d+\\.\\d+\\.\\d+
+
+Datanodes are reachable by IPv6 address
+    ${output} =         Execute             ozone admin reconfig 
--service=DATANODE --in-service-datanodes properties
+                        Should Contain X Times                  ${output}      
     Reconfigurable properties    3
+
+HTTP servers listen on IPv6
+    FOR    ${host}    ${port}    IN    scm1    9876    om1    9874    recon    
9888    s3g    19878
+        ${literal} =    IPv6 Literal Of     ${host}
+                        Execute             curl -g -sSf -o /dev/null 
'http://${literal}:${port}/jmx'
+    END
+    ${literal} =        IPv6 Literal Of     httpfs
+                        Execute             curl -g -sSf -o /dev/null 
'http://${literal}:14000/webhdfs/v1/?op=GETFILESTATUS&user.name=httpfs'
+
+SCM is reachable by IPv6 literal
+    ${overrides} =      Address Overrides   ozone.scm.address.scmservice       
     scm1    scm2    scm3
+    ${output} =         Execute             ozone admin ${overrides} scm roles
+                        Should Contain      ${output}           LEADER
+
+OM is reachable by IPv6 literal
+    ${overrides} =      Address Overrides   ozone.om.address.omservice         
     om1     om2     om3
+                        Execute             ozone sh ${overrides} volume list 
o3://omservice/


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to