Ask Your Question
0

How to set SPICE with Devstack

asked 2016-09-21 05:20:29 -0600

Silvia gravatar image

updated 2016-09-21 15:29:18 -0600

rbowen gravatar image

Hi all, I'm installing Openstack using Devstack, branch Mitaka but due to this bug https://bugs.launchpad.net/horizon/+b... 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

edit retag flag offensive close merge delete

Comments

Did you solve your issue? Because I have the exact same problem.

Bshow gravatar imageBshow ( 2018-03-23 10:30:17 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-26 07:09:32 -0600

vatsal gravatar image

Include following in your local.conf file under [[local|localrc]]

#spice
NOVA_VNC_ENABLED=False
NOVA_SPICE_ENABLED=True
SPICEAGENT_ENABLED=True
enable_service n-spice
disable_service n-novnc

and then do

./stack.sh
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-09-21 05:20:29 -0600

Seen: 373 times

Last updated: Mar 26