← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1423237] [NEW] check-tempest-dsvm-cells fails with: "AttributeError: 'dict' object has no attribute 'host' in hypervisor.py"

 

Public bug reported:

Please see
http://logs.openstack.org/76/156076/8/check/check-tempest-dsvm-cells/a23e95f/logs/screen-n-api.txt.gz?level=TRACE

Tracked it down to this change
If3f9e73eedd71b779fc6984c53eec0023e39549d

2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack Traceback (most recent call last):
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/__init__.py", line 125, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return req.get_response(self.application)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     application, catch_exc_info=False)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return resp(environ, start_response)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py", line 977, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return self._call_app(env, start_response)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py", line 902, in _call_app
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return resp(environ, start_response)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return resp(environ, start_response)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/routes/middleware.py", line 136, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     response = self.app(environ, start_response)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return resp(environ, start_response)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 749, in __call__
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     content_type, body, accept)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 814, in _process_stack
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 904, in dispatch
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return method(req=request, **action_args)
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/compute/contrib/hypervisors.py", line 98, in index
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     for hyp in compute_nodes])
2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack AttributeError: 'dict' object has no attribute 'host'

** Affects: nova
     Importance: High
         Status: Confirmed


** Tags: api cells

** Tags added: cells

** Changed in: nova
   Importance: Undecided => High

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

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

Title:
  check-tempest-dsvm-cells fails with: "AttributeError: 'dict' object
  has no attribute 'host' in hypervisor.py"

Status in OpenStack Compute (Nova):
  Confirmed

Bug description:
  Please see
  http://logs.openstack.org/76/156076/8/check/check-tempest-dsvm-cells/a23e95f/logs/screen-n-api.txt.gz?level=TRACE

  Tracked it down to this change
  If3f9e73eedd71b779fc6984c53eec0023e39549d

  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack Traceback (most recent call last):
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/__init__.py", line 125, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return req.get_response(self.application)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     application, catch_exc_info=False)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return resp(environ, start_response)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py", line 977, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return self._call_app(env, start_response)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py", line 902, in _call_app
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return resp(environ, start_response)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return resp(environ, start_response)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/local/lib/python2.7/dist-packages/routes/middleware.py", line 136, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     response = self.app(environ, start_response)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return resp(environ, start_response)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 749, in __call__
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     content_type, body, accept)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 814, in _process_stack
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 904, in dispatch
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     return method(req=request, **action_args)
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack   File "/opt/stack/new/nova/nova/api/openstack/compute/contrib/hypervisors.py", line 98, in index
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack     for hyp in compute_nodes])
  2015-02-18 03:35:01.182 18985 TRACE nova.api.openstack AttributeError: 'dict' object has no attribute 'host'

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


Follow ups

References