← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1116012] Re: HTTP 500 response when get_console_output or start, stop action called before host set

 

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

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

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

Title:
  HTTP 500 response when get_console_output or start,stop action called
  before host set

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  If instance host was not set, actions such as request console output
  or start, stop the instance cause HTTP 500 response.

  2013-02-05 14:05:42 ERROR nova.api.openstack [req-36bc6ade-bf56-4a5b-a913-1195b75040e8 0732bcc6b79b44058498feedbb957763 12ed8c7f70fb48018cdbf3aa60503541] Caught error: Unable to find host for Instance 5116bdf5-4cbe-4bd1-96d4-1534b22a010f2013-02-05 14:05:42 TRACE nova.api.openstack Traceback (most recent call last):
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/api/openstack/__init__.py", line 78, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     return req.get_response(self.application)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
  2013-02-05 14:05:42 TRACE nova.api.openstack     application, catch_exc_info=False)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
  2013-02-05 14:05:42 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 278, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     return self.app(env, start_response)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     response = self.app(environ, start_response)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     return resp(environ, start_response)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
  2013-02-05 14:05:42 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/api/openstack/wsgi.py", line 885, in __call__
  2013-02-05 14:05:42 TRACE nova.api.openstack     content_type, body, accept)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/api/openstack/wsgi.py", line 933, in _process_stack
  2013-02-05 14:05:42 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/api/openstack/wsgi.py", line 1021, in dispatch
  2013-02-05 14:05:42 TRACE nova.api.openstack     return method(req=request, **action_args)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/api/openstack/compute/contrib/server_start_stop.py", line 56, in _stop_server
  2013-02-05 14:05:42 TRACE nova.api.openstack     self.compute_api.stop(context, instance)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/compute/api.py", line 116, in wrapped
  2013-02-05 14:05:42 TRACE nova.api.openstack     return func(self, context, target, *args, **kwargs)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/compute/api.py", line 106, in inner
  2013-02-05 14:05:42 TRACE nova.api.openstack     return function(self, context, instance, *args, **kwargs)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/compute/api.py", line 96, in inner
  2013-02-05 14:05:42 TRACE nova.api.openstack     return f(self, context, instance, *args, **kw)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/compute/api.py", line 1176, in stop
  2013-02-05 14:05:42 TRACE nova.api.openstack     self.compute_rpcapi.stop_instance(context, instance, cast=do_cast)
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/compute/rpcapi.py", line 487, in stop_instance
  2013-02-05 14:05:42 TRACE nova.api.openstack     topic=_compute_topic(self.topic, ctxt, None, instance))
  2013-02-05 14:05:42 TRACE nova.api.openstack   File "path/nova/compute/rpcapi.py", line 48, in _compute_topic
  2013-02-05 14:05:42 TRACE nova.api.openstack     'Instance %s') % instance['uuid'])
  2013-02-05 14:05:42 TRACE nova.api.openstack NovaException: Unable to find host for Instance 5116bdf5-4cbe-4bd1-96d4-1534b22a010f
  2013-02-05 14:05:42 TRACE nova.api.openstack-
  2013-02-05 14:05:42 INFO nova.api.openstack [req-36bc6ade-bf56-4a5b-a913-1195b75040e8 0732bcc6b79b44058498feedbb957763 12ed8c7f70fb48018cdbf3aa60503541] http://localhost:8774/v2/12ed8c7f70fb48018cdbf3aa60503541/servers/5116bdf5-4cbe-4bd1-96d4-1534b22a010f/action returned with HTTP 500

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