← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1154327] Re: get-vnc-console while in BUILD results in traceback

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-rc1

-- 
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/1154327

Title:
  get-vnc-console while in BUILD results in traceback

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  If you try to get a VNC console while an instance is still in BUILD,
  it can fail because the instance doesn't actually exist yet on the
  hypervisor.  Here is the exception in the nova-api log from doing
  this:

  2013-03-12 18:49:55.312 INFO nova.api.openstack.wsgi [req-34f3671e-573e-4e63-a35b-868dac563537 demo demo] HTTP exception thrown: Instance instance-00000001 could not be found.
  Traceback (most recent call last):

    File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 393, in _process_data
      rval = self.proxy.dispatch(ctxt, version, method, **args)

    File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
      return getattr(proxyobj, method)(ctxt, **kwargs)

    File "/opt/stack/nova/nova/exception.py", line 117, in wrapped
      temp_level, payload)

    File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
      self.gen.next()

    File "/opt/stack/nova/nova/exception.py", line 94, in wrapped
      return f(self, context, *args, **kw)

    File "/opt/stack/nova/nova/compute/manager.py", line 225, in decorated_function
      return function(self, context, *args, **kwargs)

    File "/opt/stack/nova/nova/compute/manager.py", line 2604, in get_vnc_console
      connect_info = self.driver.get_vnc_console(instance)

    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1624, in get_vnc_console
      port = get_vnc_port_for_instance(instance['name'])

    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1615, in get_vnc_port_for_instance
      virt_dom = self._lookup_by_name(instance_name)

    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2336, in _lookup_by_name
      raise exception.InstanceNotFound(instance_id=instance_name)

  InstanceNotFound: Instance instance-00000001 could not be found.

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