← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1505967] Re: AttributeError: 'APIRouterV21' object has no attribute '_router'

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

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

Title:
  AttributeError: 'APIRouterV21' object has no attribute '_router'

Status in OpenStack Compute (nova):
  Expired

Bug description:
  $ rpm -qa | grep nova
  openstack-nova-novncproxy-2015.1.0-3.el7.noarch
  python-nova-2015.1.0-3.el7.noarch
  openstack-nova-common-2015.1.0-3.el7.noarch
  openstack-nova-api-2015.1.0-3.el7.noarch
  openstack-nova-console-2015.1.0-3.el7.noarch
  openstack-nova-scheduler-2015.1.0-3.el7.noarch
  openstack-nova-conductor-2015.1.0-3.el7.noarch
  python-novaclient-2.23.0-1.el7.noarch
  openstack-nova-cert-2015.1.0-3.el7.noarch

  I was trying to list servers using both Nova V2 and V2.1 API.

  It works fine, when using v2 endpoint:
  $ curl -H 'content-type: application/json' -H "X-auth-token: 4cd9bd90bdb34c58870bfebbb3510cd9" http://127.0.0.1:8774/v2/c7d0b84341d74f10a10aa3b999727e26/servers
  {"servers": []}

  But the same request fails on v2.1 endpoint:
  $ curl -H 'content-type: application/json' -H "X-auth-token: 4cd9bd90bdb34c58870bfebbb3510cd9" http://127.0.0.1:8774/v2.1/c7d0b84341d74f10a10aa3b999727e26/servers
  {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

  2015-10-14 12:01:23.279 3087 ERROR nova.api.openstack [req-8d9e5fa2-721b-4da9-b36d-a5daf5ec29b9 b228318c4b434e20a93d5e2c40e0425d c7d0b84341d74f10a10aa3b999727e26 - - -] Caught error: 'APIRouterV21' object has no attribute '_router'
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack Traceback (most recent call last):
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/__init__.py", line 125, in __call__
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     return req.get_response(self.application)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     application, catch_exc_info=False)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     return resp(environ, start_response)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     return self._call_app(env, start_response)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     return resp(environ, start_response)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/wsgi.py", line 482, in __call__
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack     return self._router
  2015-10-14 12:01:23.279 3087 TRACE nova.api.openstack AttributeError: 'APIRouterV21' object has no attribute '_router'

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


References