Zun

webproxy not suppot ipv6

Bug #1874369 reported by feng.shengqin@zte.com.cn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Confirmed
Critical
feng.shengqin@zte.com.cn

Bug Description

2020-04-22 17:14:58.157 653 DEBUG zun.api.wsgi [-] websocket_proxy.allowed_origins = [] log_opt_values /usr/lib/python3.6/site-packages/oslo_config/cfg.py:2590
URIReference(scheme='ws', authority='8086:101::18:5:6784', path='/', query=None, fragment=None)
URIReference(scheme='ws', authority='8086:101::18:5:6784', path='/', query=None, fragment=None)
['scheme', 'host']
ws
None
2020-04-22 17:14:58.158 653 CRITICAL zun [-] Unhandled error: ValueError: ('host was required but missing', URIReference(scheme='ws', authority='8086:101::18:5:6784', path='/', query=None, fragment=None), ['host'])
2020-04-22 17:14:58.158 653 ERROR zun Traceback (most recent call last):
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/oslo_config/types.py", line 899, in __call__
2020-04-22 17:14:58.158 653 ERROR zun validator.validate(uri)
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/rfc3986/validators.py", line 234, in validate
2020-04-22 17:14:58.158 653 ERROR zun ensure_required_components_exist(uri, required_components)
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/rfc3986/validators.py", line 276, in ensure_required_components_exist
2020-04-22 17:14:58.158 653 ERROR zun raise exceptions.MissingComponentError(uri, *missing_components)
2020-04-22 17:14:58.158 653 ERROR zun rfc3986.exceptions.MissingComponentError: ('host was required but missing', URIReference(scheme='ws', authority='8086:101::18:5:6784', path='/', query=None, fragment=None), ['host'])
2020-04-22 17:14:58.158 653 ERROR zun
2020-04-22 17:14:58.158 653 ERROR zun During handling of the above exception, another exception occurred:
2020-04-22 17:14:58.158 653 ERROR zun
2020-04-22 17:14:58.158 653 ERROR zun Traceback (most recent call last):
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/bin/zun-api-wsgi", line 54, in <module>
2020-04-22 17:14:58.158 653 ERROR zun application = init_application()
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/zun/api/wsgi.py", line 33, in init_application
2020-04-22 17:14:58.158 653 ERROR zun CONF.log_opt_values(LOG, log.DEBUG)
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2590, in log_opt_values
2020-04-22 17:14:58.158 653 ERROR zun _sanitize(opt, getattr(group_attr, opt_name)))
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 3135, in __getattr__
2020-04-22 17:14:58.158 653 ERROR zun return self._conf._get(name, self._group)
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2632, in _get
2020-04-22 17:14:58.158 653 ERROR zun value, loc = self._do_get(name, group, namespace)
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2734, in _do_get
2020-04-22 17:14:58.158 653 ERROR zun return (convert(opt.default), loc)
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2665, in convert
2020-04-22 17:14:58.158 653 ERROR zun self._substitute(value, group, namespace), opt)
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2787, in _convert_value
2020-04-22 17:14:58.158 653 ERROR zun return opt.type(value)
2020-04-22 17:14:58.158 653 ERROR zun File "/usr/lib/python3.6/site-packages/oslo_config/types.py", line 901, in __call__
2020-04-22 17:14:58.158 653 ERROR zun raise ValueError(exc)
2020-04-22 17:14:58.158 653 ERROR zun ValueError: ('host was required but missing', URIReference(scheme='ws', authority='8086:101::18:5:6784', path='/', query=None, fragment=None), ['host'])
2020-04-22 17:14:58.158 653 ERROR zun

Changed in zun:
assignee: nobody → feng.shengqin@zte.com.cn (feng-shengqin)
Revision history for this message
feng.shengqin@zte.com.cn (feng-shengqin) wrote :

if ipv4, ws://$wsproxy_host:$wsproxy_port/
if ipv6, ws://[$wsproxy_host]:$wsproxy_port/

Revision history for this message
feng.shengqin@zte.com.cn (feng-shengqin) wrote :

import rfc3986.uri

url=rfc3986.uri.URIReference(scheme='ws', authority='[8086:101::18:5]:6784', path='/', query=None, fragment=None)
host=getattr(url, 'host')
host=8086:101::18:5

url=rfc3986.uri.URIReference(scheme='ws', authority='8086:101::18:5:6784', path='/', query=None, fragment=None)
host=getattr(url, 'host')
host=none

hongbin (hongbin034)
Changed in zun:
importance: Undecided → High
status: New → Confirmed
importance: High → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.