sws team mailing list archive
-
sws team
-
Mailing list archive
-
Message #00003
[Bug 908556] Re: vncproxy returns hostname instead of hostip
** Description changed:
- Version essex2.
+ Currently the VNC console functionality on Horizon needs a work around
+ since VNCNovaAuthMiddleware is returning the hostname instead of the
+ host IP to websocket.js.
- Currently the VNC console functionality on Horizon does not work since
- VNCNovaAuthMiddleware is
+ The reason is because the 'host' column in the 'instances' table
+ defaults to socket.gethostname() if the --host flag is an empty string.
- returning 'hostname' instead of 'hostip' as 'host' to websocket.js.
+ If the server which is running vncproxy has a alias of hostnames in its
+ /etc/hosts file, it works fine.
- Works well if you force the 'host' value to 'hostip' at the line below:
+ Without the alias, the vncproxy cannot forward the browser to the
+ compute node which the vm instance is running.
- https://github.com/openstack/nova/blob/master/nova/vnc/auth.py#L62
-
- I'll find a way to get the host_ip from
- nova.compute.manager.ComputeManager.get_vnc_console().
+ You could set the --host to the compute node IP in every conf file but
+ it would be better if 'host' could default to $my_ip when deploying to
+ many machines.
--
You received this bug notification because you are a member of Sina Web
Services Team, which is a bug assignee.
https://bugs.launchpad.net/bugs/908556
Title:
vncproxy returns hostname instead of hostip
Status in OpenStack Compute (Nova):
New
Bug description:
Currently the VNC console functionality on Horizon needs a work around
since VNCNovaAuthMiddleware is returning the hostname instead of the
host IP to websocket.js.
The reason is because the 'host' column in the 'instances' table
defaults to socket.gethostname() if the --host flag is an empty
string.
If the server which is running vncproxy has a alias of hostnames in
its /etc/hosts file, it works fine.
Without the alias, the vncproxy cannot forward the browser to the
compute node which the vm instance is running.
You could set the --host to the compute node IP in every conf file but
it would be better if 'host' could default to $my_ip when deploying to
many machines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/908556/+subscriptions