[openstack-dev] [nova] How to connect to a serial port of an instance via websocket?

Markus Zoeller mzoeller at de.ibm.com
Thu Oct 30 10:29:22 UTC 2014


On Wed Oct 29 09:42:52 UTC 2014, Sahid Orentino Ferdjaoui wrote:
> 
> The aim of the feature is exposing an interactive web-based serial
> consoles through a websocket proxy. The API returns an URL with a
> valid token that should be used with a websocket client to read/write
> on the stream.
> 
> Considering the service nova-serialproxy is running and well
> configured you can use this simple test purpose client to connect
> yourself on the URL returned by the API:
> 
>   https://gist.github.com/sahid/894c31f306bebacb2207
> 
> The general idea behind this service is for example to help debugging
> VMs when something was wrong with the network configuration.

Hi Sahid,

thanks for your great example! When I execute it I get the error
    socket.error: [Errno 111] Connection refused
How do I debug this? Did I miss a configuration?


./lazyclient.py 
ws://127.0.0.1:6083/?token=39262891-2588-4872-994b-3be9b7333fd7
Traceback (most recent call last):
  File "./lazyclient.py", line 27, in <module>
    ws.connect()
  File "/usr/local/lib/python2.7/dist-packages/ws4py/client/__init__.py", 
line 209, in connect
    self.sock.connect(self.bind_addr)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused




More information about the OpenStack-dev mailing list