You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "smengcl (via GitHub)" <gi...@apache.org> on 2026/10/13 09:01:44 UTC
[PR] HDDS-16969. Add an IPv6-only acceptance smoke test [ozone]
smengcl opened a new pull request, #11510:
URL: https://github.com/apache/ozone/pull/11510
Generated-by: Claude Code (Opus 5.5)
## What changes were proposed in this pull request?
No test currently runs an Ozone cluster over IPv6 end to end. The IPv6 fixes under HDDS-15763 only have unit tests, so a regression in listener setup, peer addressing or a client path would not be caught.
This adds an acceptance test that runs the non-secure `ozone-ha` compose cluster (SCM HA, OM HA, three datanodes, Recon, S3 Gateway) on a Docker network with IPv4 disabled:
* `compose/ozone-ha/ipv6.yaml` is a compose override that sets `enable_ipv4: false` and `enable_ipv6: true` on the network and sets the bind host properties to `::`. SCM HA reads its RPC bind hosts only from the keys suffixed with service ID and node ID, so those are set per node. Existing environments are unchanged.
* `compose/ozone-ha/test-ipv6.sh` (suite `HA-unsecure`) reuses existing robot suites: shell, `ofs`, S3 object put and get, `admincli` datanode, pipeline and SCM roles, OM roles and OM leader transfer.
* `smoketest/ipv6/ipv6.robot` adds checks specific to this environment:
* no host resolves to an IPv4 address, so a test cannot silently fall back to IPv4
* datanodes register with IPv6 addresses
* `ozone admin reconfig --service=DATANODE --in-service-datanodes properties` reaches each datanode by its IPv6 address
* SCM, OM, Recon and S3 Gateway HTTP servers answer on a bracketed IPv6 literal
* SCM and OM are reachable when the client addresses are overridden with bracketed IPv6 literals
Not covered here:
* Bracketed IPv6 literals in the servers' own configuration. That needs static container addresses and can be a follow-up.
* A secure (Kerberos) variant, which is a separate subtask.
* If Docker cannot create an IPv6-only network, the test fails. It does not report itself as skipped.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16969
## How was this patch tested?
Ran `compose/ozone-ha/test-ipv6.sh` from a locally built distribution on Docker 29.8.2 with Compose v2. All suites passed. The containers had no IPv4 address and every listener was bound to `:::port`.
GitHub-hosted runners have no outbound IPv6 route, but this test only needs traffic between containers on a local bridge. The acceptance (HA-unsecure) job of this PR is the first run there.
đŸ¤– Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16969. Add an IPv6-only acceptance smoke test [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on PR #11510:
URL: https://github.com/apache/ozone/pull/11510#issuecomment-6333148672
New split [acceptance (ipv6)](https://github.com/apache/ozone/actions/runs/39706446293/job/119591624878?pr=11510#logs) took 11m 40s to finish, but it isn't adding CI wall time because there are other much slower splits running in parallel. The whole CI finished in 1h 8m.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16969. Add an IPv6-only acceptance smoke test [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang commented on code in PR #11510:
URL: https://github.com/apache/ozone/pull/11510#discussion_r4277441084
##########
hadoop-ozone/dist/src/main/smoketest/ipv6/ipv6.robot:
##########
@@ -0,0 +1,66 @@
+# 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
+ ${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
Review Comment:
let's include httpfs too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16969. Add an IPv6-only acceptance smoke test [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl merged PR #11510:
URL: https://github.com/apache/ozone/pull/11510
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16969. Add an IPv6-only acceptance smoke test [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang commented on PR #11510:
URL: https://github.com/apache/ozone/pull/11510#issuecomment-6180748046
## CI failure analysis (HA-unsecure, `test-ipv6.sh`)
Fork run [smengcl/hadoop-ozone/actions/runs/38373381842](https://github.com/smengcl/hadoop-ozone/actions/runs/38373381842) / job `115330662593`: the **HA-unsecure** acceptance job failed only on **`compose/ozone-ha/test-ipv6.sh`**. Other scripts in the same job (`test.sh`, `test-haproxy-s3g.sh`, etc.) passed.
### Symptom
- `start_docker_env` never gets past `wait_for_port scm1 9860` (120s) → `Timed out waiting on scm1 9860 to become available`.
- Logs repeat `service "scm1" is not running` (container exits during init, not a Robot failure).
### Root cause
From artifact `ozone-ha/ipv6/docker-ozone-ha-scm1-1.log`, SCM aborts on **`ozone scm --init`** because the **JaCoCo `-javaagent`** fails in `premain`:
```
Caused by: java.net.SocketException: Network is unreachable
at org.jacoco.agent.rt.internal_bac9136.output.TcpClientOutput.createSocket(...)
...
Aborted (core dumped) /opt/hadoop/bin/ozone scm --init
```
This job runs with **`with-coverage: true`**, so every JVM loads JaCoCo and opens a TCP socket to the coverage collector. On the **IPv6-only** compose network (`enable_ipv4: false`), that collector address is not reachable (no IPv4 path), the agent fails to load, and SCM never binds **9860**.
So this looks like **coverage × IPv6-only compose**, not a missing Ozone bind key in the first instance—the default HA scripts still use an IPv4-enabled bridge where JaCoCo works.
### Suggested directions
1. Disable or skip JaCoCo for `test-ipv6.sh` when `OZONE_WITH_COVERAGE=true` (override `JAVA_TOOL_OPTIONS` / jacoco opts for that script only).
2. Configure JaCoCo to report to an address reachable on the IPv6 bridge (if supported).
3. Run IPv6 acceptance in a **separate suite without coverage** until (1) or (2) is in place.
Happy to re-review once CI is green with one of these approaches.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16969. Add an IPv6-only acceptance smoke test [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on PR #11510:
URL: https://github.com/apache/ozone/pull/11510#issuecomment-6333154980
Thanks @jojochuang @adoroszlai for the reviews.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16969. Add an IPv6-only acceptance smoke test [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on code in PR #11510:
URL: https://github.com/apache/ozone/pull/11510#discussion_r4307392281
##########
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:HA-unsecure
Review Comment:
Adding it to `HA-unsecure` suite increases split time to ~1 hour. Since this starts a new cluster, it can be in any split, including its own new one.
```suggestion
#suite:ipv6
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16969. Add an IPv6-only acceptance smoke test [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on code in PR #11510:
URL: https://github.com/apache/ozone/pull/11510#discussion_r4343699881
##########
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:HA-unsecure
Review Comment:
Thanks, moved it to its own split.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org