Zun

Websocket in zun-ui gives "handler exception: Origin header does not match this host"

Bug #1958221 reported by Francois Michaut
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
New
Undecided
Unassigned

Bug Description

By following the install instructions of zun's install guide, the configuration of the websocket proxy in zun.conf on the controller is something like this :

[websocket_proxy]
...
wsproxy_host = 10.0.0.11
wsproxy_port = 6784
base_url = ws://controller.hostname.external:6784/

"controller.hostname.external" is the hostname for the controller that users can reach. "controller" is the hostname used internally by openstack services.

But with this configuration, the console in zun-ui is "OPEN" but nothing gets ever printed.
Looking at the logs of zun-wsproxy we can see the request made by zun-ui followed by the error : "handler exception: Origin header does not match this host".

Adding "allowed_origins = controller" to websocket_proxy in zun.conf resolves the issue.

"allowed_origins" wans't mentioned in the documentation, maybe it should be or is there another way to avoid this issue ?

This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:

- [ ] This doc is inaccurate in this way: ______
- [x] This is a doc addition request.
- [ ] I have a fix to the document that I can paste below including example: input and output.

If you have a troubleshooting or support issue, use the following resources:

 - The mailing list: https://lists.openstack.org
 - IRC: 'openstack' channel on OFTC

-----------------------------------
Release: 8.0.0.0rc2.dev2 on 2020-04-22 00:44:46
SHA: 3784d99f0cd27a7cf1fd674478b7254d0a35d9e2
Source: https://opendev.org/openstack/zun/src/doc/source/install/controller-install.rst
URL: https://docs.openstack.org/zun/xena/install/controller-install.html

Revision history for this message
Maroš Varchola (marosvarchola) wrote :

Hey! Same here

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.