dask / dask/distributed

dask_scheduler with --dashboard-address [xx:xx:xx:xx:xx:xx:xx:xx] broken with IPv6?

Open
#6,964 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
778
Avg merge
2h 50m
Merged PRs (30d)
3

Description

**What happened:**
Using a IPv6 VM for dask, was unable to load the dashboard

user@host:~> python -m distributed.cli.dask_scheduler --host [xx:xx:xx:xx:xx:xx:xx:xx] --port 0 --dashboard-prefix /common_classify --dashboard-address [xx:xx:xx:xx:xx:xx:xx:xx]
-----------------------------------------------
To route to workers diagnostics web server please install jupyter-server-proxy: python -m pip install jupyter-server-proxy
Traceback (most recent call last):
File "/xxx/python3/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/xxx/python3/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/xxx/python3/lib/python3.9/site-packages/distributed/cli/dask_scheduler.py", line 221, in
go() # pragma: no cover
File "/xxx/python3/lib/python3.9/site-packages/distributed/cli/dask_scheduler.py", line 217, in go
main()
File "/xxx/python3/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/xxx/python3/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/xxx/python3/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/xxx/python3/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/xxx/python3/lib/python3.9/site-packages/distributed/cli/dask_scheduler.py", line 189, in main
scheduler = Scheduler(
File "/xxx/python3/lib/python3.9/site-packages/distributed/scheduler.py", line 3778, in __init__
self.start_http_server(routes, dashboard_address, default_port=8787)
File "/xxx/python3/lib/python3.9/site-packages/distributed/node.py", line 143, in start_http_server
http_addresses = clean_dashboard_address(dashboard_address or default_port)
File "/xxx/python3/lib/python3.9/site-packages/distributed/utils.py", line 1410, in clean_dashboard_address
raise ValueError(addr)
ValueError: ['[xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx]']

**What you expected to happen**:
To load the dashboard from the IPv6 VM, and dask_scheduler Started successfully.

**Minimal Complete Verifiable Example**:
python -m distributed.cli.dask_scheduler --host [xx:xx:xx:xx:xx:xx:xx:xx] --port 0 --dashboard-prefix /common_classify --dashboard-address [xx:xx:xx:xx:xx:xx:xx:xx]

```python
# Put your MCVE code here
```

**Anything else we need to know?**:
Looks like it comes from here:
https://github.com/dask/distributed/blob/c083790da4b419fe39c2481084442fe3e3e990ad/distributed/utils.py#L1533

**Environment**:

- Dask version: 2022.3.0
- Python version: 3.9.11
- Operating System: SUSE Linux Enterprise Server 12 (x86_64)
- Install method (conda, pip, source): pip

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.