ptlrs opened a new pull request, #10468: URL: https://github.com/apache/ozone/pull/10468
## What changes were proposed in this pull request? When any VPN is enabled, MiniOzoneCluster setup is stuck with the following logs ``` 2026-06-08 21:27:39,275 [2e356ac8-c8fe-422b-ab07-b38cf90f4ac5@group-D0937D61FBB5-StateMachineUpdater] INFO SCMHATransactionMonitor (BackgroundSCMService.java:notifyStatusChanged(78)) - Service SCMHATransactionMonitor transitions to RUNNING. 2026-06-08 21:27:58,720 [main] INFO ipc_.Client (Client.java:handleConnectionTimeout(861)) - Retrying connect to server: 0.0.0.0/0.0.0.0:15001. Already tried 0 time(s); maxRetries=45 2026-06-08 21:28:18,724 [main] INFO ipc_.Client (Client.java:handleConnectionTimeout(861)) - Retrying connect to server: 0.0.0.0/0.0.0.0:15001. Already tried 1 time(s); maxRetries=45 2026-06-08 21:28:38,727 [main] INFO ipc_.Client (Client.java:handleConnectionTimeout(861)) - Retrying connect to server: 0.0.0.0/0.0.0.0:15001. Already tried 2 time(s); maxRetries=45 2026-06-08 21:28:58,730 [main] INFO ipc_.Client (Client.java:handleConnectionTimeout(861)) - Retrying connect to server: 0.0.0.0/0.0.0.0:15001. Already tried 3 time(s); maxRetries=45 ``` The problem is that the bind address for SCM is never set. As a result it defaults to 0.0.0.0. This reroutes to localhost/127.0.0.1 when no VPN is enabled but it is rerouted to a random IP when VPN is enabled. Without VPN: ``` rpatel@GQ2V5HK6NX ~ % lsof -i :15001 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 21703 rpatel 406u IPv4 0x61ad94e3040c8c85 0t0 TCP *:15001 (LISTEN) java 21703 rpatel 504u IPv4 0xda4ec39b5b69c9c1 0t0 TCP mac:57747->mac:15001 (ESTABLISHED) java 21703 rpatel 505u IPv4 0x970351ac8a67ab7c 0t0 TCP mac:15001->mac:57747 (ESTABLISHED) ``` With VPN: ``` rpatel@GQ2V5HK6NX ~ % lsof -i :15001 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 21382 rpatel 406u IPv4 0xbe6aafab2e6f769a 0t0 TCP *:15001 (LISTEN) java 21382 rpatel 504u IPv4 0x5febf36e5f0f5a7e 0t0 TCP 10.19.13.105:57618->192.168.4.44:15001 (SYN_SENT) ``` After applying the PR: ``` rpatel@GQ2V5HK6NX ~ % lsof -i :15001 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 32513 rpatel 406u IPv4 0x9ff01ec7a29075f7 0t0 TCP localhost:15001 (LISTEN) java 32513 rpatel 504u IPv4 0xf968e5ff22fc6491 0t0 TCP localhost:58189->localhost:15001 (ESTABLISHED) java 32513 rpatel 505u IPv4 0x206a62e061704db4 0t0 TCP localhost:15001->localhost:58189 (ESTABLISHED) ``` ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15513 ## How was this patch tested? CI: https://github.com/ptlrs/ozone/actions/runs/27187591995 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
