Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to set SPICE with Devstack

Hi all, I'm installing Openstack using Devstack, branch Mitaka but due to this bug https://bugs.launchpad.net/horizon/+bug/1622684 I'm not able to use vnc console.

I would try to use spice but I can't find reference related to how to configure it with devstack. Can you give me an example for both compute and controller node? I also tried to modify my nova.conf setting [spice] enabled = True keymap=en-us html5proxy_base_url=http://controller_IP:6082/spice_auto.html

and I have this error in the n-spice log when I restart the service:

2016-09-21 12:17:35.734 INFO nova.console.websocketproxy [-] WebSocket server settings: 2016-09-21 12:17:35.735 INFO nova.console.websocketproxy [-] - Listen on 0.0.0.0:6082 2016-09-21 12:17:35.735 INFO nova.console.websocketproxy [-] - Flash security policy server 2016-09-21 12:17:35.735 INFO nova.console.websocketproxy [-] - Web server (no directory listings). Web root: /usr/share/spice-html5 2016-09-21 12:17:35.735 INFO nova.console.websocketproxy [-] - No SSL/TLS support (no cert file) 2016-09-21 12:17:35.736 CRITICAL nova [-] error: [Errno 98] Address already in use

2016-09-21 12:17:35.736 TRACE nova Traceback (most recent call last): 2016-09-21 12:17:35.736 TRACE nova File "/usr/local/bin/nova-spicehtml5proxy", line 10, in <module> 2016-09-21 12:17:35.736 TRACE nova sys.exit(main()) 2016-09-21 12:17:35.736 TRACE nova File "/opt/stack/nova/nova/cmd/spicehtml5proxy.py", line 49, in main 2016-09-21 12:17:35.736 TRACE nova port=CONF.spice.html5proxy_port) 2016-09-21 12:17:35.736 TRACE nova File "/opt/stack/nova/nova/cmd/baseproxy.py", line 73, in proxy 2016-09-21 12:17:35.736 TRACE nova RequestHandlerClass=websocketproxy.NovaProxyRequestHandler 2016-09-21 12:17:35.736 TRACE nova File "/usr/local/lib/python2.7/dist-packages/websockify/websocket.py", line 973, in start_server 2016-09-21 12:17:35.736 TRACE nova tcp_keepintvl=self.tcp_keepintvl) 2016-09-21 12:17:35.736 TRACE nova File "/usr/local/lib/python2.7/dist-packages/websockify/websocket.py", line 741, in socket 2016-09-21 12:17:35.736 TRACE nova sock.bind(addrs[0][4]) 2016-09-21 12:17:35.736 TRACE nova File "/usr/lib/python2.7/socket.py", line 228, in meth 2016-09-21 12:17:35.736 TRACE nova return getattr(self._sock,name)(*args) 2016-09-21 12:17:35.736 TRACE nova error: [Errno 98] Address already in use 2016-09-21 12:17:35.736 TRACE nova

It sems like it can read the nova.conf

Can anyone help me? Thanks

Silvia

How to set SPICE with Devstack

Hi all, I'm installing Openstack using Devstack, branch Mitaka but due to this bug https://bugs.launchpad.net/horizon/+bug/1622684 I'm not able to use vnc console.

I would try to use spice but I can't find reference related to how to configure it with devstack. Can you give me an example for both compute and controller node? I also tried to modify my nova.conf setting setting

[spice]
enabled = True
keymap=en-us
html5proxy_base_url=http://controller_IP:6082/spice_auto.html

html5proxy_base_url=http://controller_IP:6082/spice_auto.html

and I have this error in the n-spice log when I restart the service:

2016-09-21 12:17:35.734 INFO nova.console.websocketproxy [-] WebSocket server settings:
2016-09-21 12:17:35.735 INFO nova.console.websocketproxy [-]   - Listen on 0.0.0.0:6082
2016-09-21 12:17:35.735 INFO nova.console.websocketproxy [-]   - Flash security policy server
2016-09-21 12:17:35.735 INFO nova.console.websocketproxy [-]   - Web server (no directory listings). Web root: /usr/share/spice-html5
2016-09-21 12:17:35.735 INFO nova.console.websocketproxy [-]   - No SSL/TLS support (no cert file)
2016-09-21 12:17:35.736 CRITICAL nova [-] error: [Errno 98] Address already in use

use 2016-09-21 12:17:35.736 TRACE nova Traceback (most recent call last): 2016-09-21 12:17:35.736 TRACE nova File "/usr/local/bin/nova-spicehtml5proxy", line 10, in <module> 2016-09-21 12:17:35.736 TRACE nova sys.exit(main()) 2016-09-21 12:17:35.736 TRACE nova File "/opt/stack/nova/nova/cmd/spicehtml5proxy.py", line 49, in main 2016-09-21 12:17:35.736 TRACE nova port=CONF.spice.html5proxy_port) 2016-09-21 12:17:35.736 TRACE nova File "/opt/stack/nova/nova/cmd/baseproxy.py", line 73, in proxy 2016-09-21 12:17:35.736 TRACE nova RequestHandlerClass=websocketproxy.NovaProxyRequestHandler 2016-09-21 12:17:35.736 TRACE nova File "/usr/local/lib/python2.7/dist-packages/websockify/websocket.py", line 973, in start_server 2016-09-21 12:17:35.736 TRACE nova tcp_keepintvl=self.tcp_keepintvl) 2016-09-21 12:17:35.736 TRACE nova File "/usr/local/lib/python2.7/dist-packages/websockify/websocket.py", line 741, in socket 2016-09-21 12:17:35.736 TRACE nova sock.bind(addrs[0][4]) 2016-09-21 12:17:35.736 TRACE nova File "/usr/lib/python2.7/socket.py", line 228, in meth 2016-09-21 12:17:35.736 TRACE nova return getattr(self._sock,name)(*args) 2016-09-21 12:17:35.736 TRACE nova error: [Errno 98] Address already in use 2016-09-21 12:17:35.736 TRACE nova

nova

It sems like it can read the nova.conf

Can anyone help me? Thanks

Silvia