← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1408708] Re: The API returns a serial console connection without an activated nova-serialproxy

 

hi Markus, 
I don't think this is a bug, nova-compute will not know if nova-serialproxy service is running.

let's take libvirt driver as an example, it start a local service on
port 10000 if you configure serial_console in nova-compute

taget@taget-ThinkStation-P300:/opt/stack/nova$ netstat -an | grep 10000
tcp        0      0 127.0.0.1:10000         0.0.0.0:*               LISTEN 

and the libvirt driver will return a vm's serial_console information and
nova-compute service will decorate this by a default url
'ws://127.0.0.1:6083/'.

nova-compute has no way to know if a nova-serialproxy is running or not, it only return user as a valid url by default or
the url you manually configured in nova conf.

thanks Eli.


** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1408708

Title:
  The API returns a serial console connection without an activated nova-
  serialproxy

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  Problem description
  ===================
  The Nova REST API returns with server action ``os-getSerialConsole``
  a connection info (a websocket URL) although the nova-serialproxy service
  is *not* activated. 

  Steps to reproduce
  ==================
  * Configure in ``nova.conf``
      [serial_console]
      enabled=true
  * restart nova compute service
  * boot an instance
  * query serial console connection (e.g. with CLI 
    ``nova get-serial-console <server>``)

  Expected behavior
  =================
  Get an exception with a reason that the ``nova-serialproxy`` is not
  activated.

  Observed behavior
  =================
  Get a valid looking URL which doesn't lead to an actual connection
  because of the inactive nova-serialproxy.

  Additional data 
  ===============
  * Nova code from master branch until commit 31bfc6415484054457c84924ac2d824e8ce2db93 (Mon Jan 5 11:49:56 2015 +0000)
  * A serial console client: https://github.com/larsks/novaconsole

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1408708/+subscriptions


References