Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"TypeError: list() got an unexpected keyword argument 'is_public'" when accessing flavor list in horizon

In short, when trying to access the flavor list through the horizon dashboard, I get the traceback included at the end of this question. It started to occur, if memory serves, when I used "cinder-manage db sync" to fix some errors with quotas and volumes that horizon was giving me. Before this, flavors was working fine (if memory serves). Also, I'm using Havana/Ubuntu 12.04 LTS and the installation was done through puppet and modules provided through puppet forge.

I've only been able to find one post online about this issue (http://stackoverflow.com/questions/20090300/cant-display-flavors-interface-in-openstack-horizon-dashboard) and I'm not sure the solution applies to me is I have images/flavors have public set to true. Also as a side note, which I think is to be expected, I'm unable to launch instances, the popup is blank and I can only click cancel.

nova flavor-list outputs the following,

nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      | {}          |
| 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      | {}          |
| 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      | {}          |
| 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      | {}          |
| 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      | {}          |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+

The only log I could find that appears relevant is from /var/log/horizon/horizon.log which I've included blow,

2014-04-19 18:30:27,663 6809 ERROR django.request Internal Server Error: /horizon/admin/flavors/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 155, in get
    handled = self.construct_tables()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 146, in construct_tables
    handled = self.handle_table(table)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 118, in handle_table
    data = self._get_data_dict()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 182, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 51, in get_data
    _('Unable to retrieve flavor list.'))
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 48, in get_data
    flavors = api.nova.flavor_list(request, None)
  File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py", line 33, in __call__
    value = self.func(*args)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 406, in flavor_list
    return novaclient(request).flavors.list(is_public=is_public)
TypeError: list() got an unexpected keyword argument 'is_public'

Thank you for any help you can provide!

"TypeError: list() got an unexpected keyword argument 'is_public'" when accessing flavor list in horizon

In short, when trying to access the flavor list through the horizon dashboard, I get the traceback included at the end of this question. It started to occur, if memory serves, when I used "cinder-manage db sync" to fix some errors with quotas and volumes that horizon was giving me. Before this, flavors was working fine (if memory serves). Also, I'm using Havana/Ubuntu 12.04 LTS and the installation was done through puppet and modules provided through puppet forge.

I've only been able to find one post online about this issue (http://stackoverflow.com/questions/20090300/cant-display-flavors-interface-in-openstack-horizon-dashboard) and I'm not sure the solution applies to me is I have images/flavors have public set to true. Also as a side note, which I think is to be expected, I'm unable to launch instances, the popup is blank and I can only click cancel.

nova flavor-list outputs the following,

nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      | {}          |
| 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      | {}          |
| 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      | {}          |
| 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      | {}          |
| 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      | {}          |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+

The only log I could find that appears relevant is from /var/log/horizon/horizon.log which I've included blow,

2014-04-19 18:30:27,663 6809 ERROR django.request Internal Server Error: /horizon/admin/flavors/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 155, in get
    handled = self.construct_tables()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 146, in construct_tables
    handled = self.handle_table(table)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 118, in handle_table
    data = self._get_data_dict()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 182, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 51, in get_data
    _('Unable to retrieve flavor list.'))
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 48, in get_data
    flavors = api.nova.flavor_list(request, None)
  File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py", line 33, in __call__
    value = self.func(*args)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 406, in flavor_list
    return novaclient(request).flavors.list(is_public=is_public)
TypeError: list() got an unexpected keyword argument 'is_public'

Thank you for any help you can provide!

Edit

Here's some more info,

    Environment:


Request Method: GET
Request URL: http://hostaddress/horizon/admin/flavors/

Django Version: 1.5.4
Python Version: 2.7.3
Installed Applications:
('openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'compressor',
 'horizon',
 'openstack_dashboard.dashboards.project',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.settings',
 'openstack_auth',
 'openstack_dashboard.dashboards.router')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  86.                 return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  54.             return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  86.         return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in get
  155.         handled = self.construct_tables()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in construct_tables
  146.             handled = self.handle_table(table)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in handle_table
  118.         data = self._get_data_dict()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in _get_data_dict
  182.             self._data = {self.table_class._meta.name: self.get_data()}
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py" in get_data
  51.                               _('Unable to retrieve flavor list.'))
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py" in get_data
  48.             flavors = api.nova.flavor_list(request, None)
File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py" in __call__
  33.             value = self.func(*args)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in flavor_list
  406.     return novaclient(request).flavors.list(is_public=is_public)
'
Exception Type: TypeError at /admin/flavors/
Exception Value: list() got an unexpected keyword argument 'is_public

"TypeError: list() got an unexpected keyword argument 'is_public'" when accessing flavor list in horizon

In short, when trying to access the flavor list through the horizon dashboard, I get the traceback included at the end of this question. It started to occur, if memory serves, when I used "cinder-manage db sync" to fix some errors with quotas and volumes that horizon was giving me. Before this, flavors was working fine (if memory serves). Also, I'm using Havana/Ubuntu 12.04 LTS and the installation was done through puppet and modules provided through puppet forge.

I've only been able to find one post online about this issue (http://stackoverflow.com/questions/20090300/cant-display-flavors-interface-in-openstack-horizon-dashboard) and I'm not sure the solution applies to me is I have images/flavors have public set to true. Also as a side note, which I think is to be expected, I'm unable to launch instances, the popup is blank and I can only click cancel.

nova flavor-list outputs the following,

nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      | {}          |
| 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      | {}          |
| 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      | {}          |
| 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      | {}          |
| 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      | {}          |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+

The only log I could find that appears relevant is from /var/log/horizon/horizon.log which I've included blow,

2014-04-19 18:30:27,663 6809 ERROR django.request Internal Server Error: /horizon/admin/flavors/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 155, in get
    handled = self.construct_tables()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 146, in construct_tables
    handled = self.handle_table(table)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 118, in handle_table
    data = self._get_data_dict()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 182, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 51, in get_data
    _('Unable to retrieve flavor list.'))
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 48, in get_data
    flavors = api.nova.flavor_list(request, None)
  File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py", line 33, in __call__
    value = self.func(*args)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 406, in flavor_list
    return novaclient(request).flavors.list(is_public=is_public)
TypeError: list() got an unexpected keyword argument 'is_public'

Thank you for any help you can provide!

Edit

Here's some more info,

    Environment:


Request Method: GET
Request URL: http://hostaddress/horizon/admin/flavors/

Django Version: 1.5.4
Python Version: 2.7.3
Installed Applications:
('openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'compressor',
 'horizon',
 'openstack_dashboard.dashboards.project',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.settings',
 'openstack_auth',
 'openstack_dashboard.dashboards.router')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  86.                 return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  54.             return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  86.         return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in get
  155.         handled = self.construct_tables()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in construct_tables
  146.             handled = self.handle_table(table)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in handle_table
  118.         data = self._get_data_dict()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in _get_data_dict
  182.             self._data = {self.table_class._meta.name: self.get_data()}
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py" in get_data
  51.                               _('Unable to retrieve flavor list.'))
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py" in get_data
  48.             flavors = api.nova.flavor_list(request, None)
File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py" in __call__
  33.             value = self.func(*args)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in flavor_list
  406.     return novaclient(request).flavors.list(is_public=is_public)
'
Exception Type: TypeError at /admin/flavors/
Exception Value: list() got an unexpected keyword argument 'is_public

Upon further examination I'm getting a revovling door of errors,

AttributeError at /admin/flavors/
'Client' object has no attribute 'sort'

NameError at /admin/flavors/
global name 'flavor' is not defined

TypeError at /admin/flavors/
list() got an unexpected keyword argument 'is_public'

But the exception location seems constant, and the rest of the traceback.

"TypeError: list() got an unexpected keyword argument 'is_public'" when accessing flavor list in horizon

Edit

Upon further examination I'm getting a revovling door of errors,

AttributeError at /admin/flavors/
'Client' object has no attribute 'sort'

NameError at /admin/flavors/
global name 'flavor' is not defined

TypeError at /admin/flavors/
list() got an unexpected keyword argument 'is_public'

Original Question Starts Here

In short, when trying to access the flavor list through the horizon dashboard, I get the traceback included at the end of this question. It started to occur, if memory serves, when I used "cinder-manage db sync" to fix some errors with quotas and volumes that horizon was giving me. Before this, flavors was working fine (if memory serves). Also, I'm using Havana/Ubuntu 12.04 LTS and the installation was done through puppet and modules provided through puppet forge.

I've only been able to find one post online about this issue (http://stackoverflow.com/questions/20090300/cant-display-flavors-interface-in-openstack-horizon-dashboard) and I'm not sure the solution applies to me is I have images/flavors have public set to true. Also as a side note, which I think is to be expected, I'm unable to launch instances, the popup is blank and I can only click cancel.

nova flavor-list outputs the following,

nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      | {}          |
| 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      | {}          |
| 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      | {}          |
| 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      | {}          |
| 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      | {}          |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+

The only log I could find that appears relevant is from /var/log/horizon/horizon.log which I've included blow,

2014-04-19 18:30:27,663 6809 ERROR django.request Internal Server Error: /horizon/admin/flavors/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 155, in get
    handled = self.construct_tables()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 146, in construct_tables
    handled = self.handle_table(table)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 118, in handle_table
    data = self._get_data_dict()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 182, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 51, in get_data
    _('Unable to retrieve flavor list.'))
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 48, in get_data
    flavors = api.nova.flavor_list(request, None)
  File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py", line 33, in __call__
    value = self.func(*args)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 406, in flavor_list
    return novaclient(request).flavors.list(is_public=is_public)
TypeError: list() got an unexpected keyword argument 'is_public'

Thank you for any help you can provide!

Edit

Here's some more info,

    Environment:


Request Method: GET
Request URL: http://hostaddress/horizon/admin/flavors/

Django Version: 1.5.4
Python Version: 2.7.3
Installed Applications:
('openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'compressor',
 'horizon',
 'openstack_dashboard.dashboards.project',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.settings',
 'openstack_auth',
 'openstack_dashboard.dashboards.router')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  86.                 return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  54.             return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  86.         return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in get
  155.         handled = self.construct_tables()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in construct_tables
  146.             handled = self.handle_table(table)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in handle_table
  118.         data = self._get_data_dict()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in _get_data_dict
  182.             self._data = {self.table_class._meta.name: self.get_data()}
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py" in get_data
  51.                               _('Unable to retrieve flavor list.'))
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py" in get_data
  48.             flavors = api.nova.flavor_list(request, None)
File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py" in __call__
  33.             value = self.func(*args)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in flavor_list
  406.     return novaclient(request).flavors.list(is_public=is_public)
'
Exception Type: TypeError at /admin/flavors/
Exception Value: list() got an unexpected keyword argument 'is_public

Upon further examination I'm getting a revovling door of errors,

AttributeError at /admin/flavors/
'Client' object has no attribute 'sort'

NameError at /admin/flavors/
global name 'flavor' is not defined

TypeError at /admin/flavors/
list() got an unexpected keyword argument 'is_public'

But the exception location seems constant, and the rest of the traceback.

"TypeError: list() got an unexpected keyword argument 'is_public'" when accessing flavor list in horizon

Edit

Upon further examination I'm getting a revovling door of errors,

AttributeError at /admin/flavors/
'Client' object has no attribute 'sort'

NameError at /admin/flavors/
global name 'flavor' is not defined

TypeError at /admin/flavors/
list() got an unexpected keyword argument 'is_public'

ValueError at /admin/flavors/
The view openstack_dashboard.dashboards.admin.flavors.views.IndexView didn't return an HttpResponse object

Original Question Starts Here

In short, when trying to access the flavor list through the horizon dashboard, I get the traceback included at the end of this question. It started to occur, if memory serves, when I used "cinder-manage db sync" to fix some errors with quotas and volumes that horizon was giving me. Before this, flavors was working fine (if memory serves). Also, I'm using Havana/Ubuntu 12.04 LTS and the installation was done through puppet and modules provided through puppet forge.

I've only been able to find one post online about this issue (http://stackoverflow.com/questions/20090300/cant-display-flavors-interface-in-openstack-horizon-dashboard) and I'm not sure the solution applies to me is I have images/flavors have public set to true. Also as a side note, which I think is to be expected, I'm unable to launch instances, the popup is blank and I can only click cancel.

nova flavor-list outputs the following,

nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      | {}          |
| 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      | {}          |
| 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      | {}          |
| 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      | {}          |
| 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      | {}          |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+

The only log I could find that appears relevant is from /var/log/horizon/horizon.log which I've included blow,

2014-04-19 18:30:27,663 6809 ERROR django.request Internal Server Error: /horizon/admin/flavors/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 155, in get
    handled = self.construct_tables()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 146, in construct_tables
    handled = self.handle_table(table)
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 118, in handle_table
    data = self._get_data_dict()
  File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 182, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 51, in get_data
    _('Unable to retrieve flavor list.'))
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py", line 48, in get_data
    flavors = api.nova.flavor_list(request, None)
  File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py", line 33, in __call__
    value = self.func(*args)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 406, in flavor_list
    return novaclient(request).flavors.list(is_public=is_public)
TypeError: list() got an unexpected keyword argument 'is_public'

Thank you for any help you can provide!

Edit

Here's some more info,

    Environment:


Request Method: GET
Request URL: http://hostaddress/horizon/admin/flavors/

Django Version: 1.5.4
Python Version: 2.7.3
Installed Applications:
('openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'compressor',
 'horizon',
 'openstack_dashboard.dashboards.project',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.settings',
 'openstack_auth',
 'openstack_dashboard.dashboards.router')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  86.                 return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  54.             return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  86.         return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in get
  155.         handled = self.construct_tables()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in construct_tables
  146.             handled = self.handle_table(table)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in handle_table
  118.         data = self._get_data_dict()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in _get_data_dict
  182.             self._data = {self.table_class._meta.name: self.get_data()}
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py" in get_data
  51.                               _('Unable to retrieve flavor list.'))
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py" in get_data
  48.             flavors = api.nova.flavor_list(request, None)
File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py" in __call__
  33.             value = self.func(*args)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in flavor_list
  406.     return novaclient(request).flavors.list(is_public=is_public)
'
Exception Type: TypeError at /admin/flavors/
Exception Value: list() got an unexpected keyword argument 'is_public