You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2026/07/08 01:34:00 UTC

[jira] [Created] (HDDS-15777) Make admin CLI subcommands parse IPv6 RPC addresses correctly

Siyao Meng created HDDS-15777:
---------------------------------

             Summary: Make admin CLI subcommands parse IPv6 RPC addresses correctly
                 Key: HDDS-15777
                 URL: https://issues.apache.org/jira/browse/HDDS-15777
             Project: Apache Ozone
          Issue Type: Task
            Reporter: Siyao Meng


Several admin/insight subcommands take address.split(":")[0] as the host, which returns an empty or wrong host for IPv6 literals:

- DecommissionOMSubcommand.java:137: InetAddress.getByName(rpcAddrStr.split(":")[0]).
- NSSummaryAdmin.java:62,69 and BaseInsightSubCommand.java:148,156: address.split(":", 2)[0] for host and [1] for port. These default to 0.0.0.0:port today, so they only fail once an IPv6 bind address is configured.

Proposed: use an IPv6-aware host/port parser. Add tests with IPv6 RPC addresses.

Parent epic: HDDS-15763.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org