← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1203001] Re: TypeError: __init__() got an unexpected keyword argument 'project_id'

 

** Changed in: python-novaclient
       Status: Fix Committed => Fix Released

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

Title:
  TypeError: __init__() got an unexpected keyword argument 'project_id'

Status in OpenStack Dashboard (Horizon):
  Invalid
Status in Python client library for Nova:
  Fix Released

Bug description:
  Horizon is broken with the latest devstack. After logging in, trying
  to access any page results in the following stack trace:

  Traceback:
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
    111.                         response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    38.         return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    86.                 return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    54.             return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    38.         return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    86.                 return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in view
    48.             return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
    69.         return handler(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in get
    155.         handled = self.construct_tables()
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in construct_tables
    146.             handled = self.handle_table(table)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in handle_table
    118.         data = self._get_data_dict()
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in _get_data_dict
    182.             self._data = {self.table_class._meta.name: self.get_data()}
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/overview/views.py" in get_data
    59.         data = super(GlobalOverview, self).get_data()
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/views.py" in get_data
    33.         self.usage.summarize(*self.usage.get_date_range())
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py" in summarize
    112.                                   _('Unable to retrieve usage information.'))
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py" in summarize
    109.                 self.usage_list = self.get_usage_list(start, end)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py" in get_usage_list
    144.         return api.nova.usage_list(self.request, start, end)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in usage_list
    561.             novaclient(request).usage.list(start, end, True)]
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in novaclient
    351.                            http_log_debug=settings.DEBUG)

  Exception Type: TypeError at /admin/
  Exception Value: __init__() got an unexpected keyword argument 'project_id'

  It seems project_id was renamed to projectid in a recent nova client
  commit -  02f906bcd6.

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