Ask Your Question
0

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

asked 2014-04-19 13:46:51 -0600

phil gravatar image

updated 2014-04-20 10:24:35 -0600

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 (http://stackoverflow.com/questions/20...) ) 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 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-22 07:15:37 -0600

phil gravatar image

updated 2014-04-22 07:16:48 -0600

The problem I faced was solved in the manner I solved my other question, which is located here https://ask.openstack.org/en/question...

I had forgotten to add the cloud archives for havana which you can do by typing this,

apt-get install python-software-properties
add-apt-repository cloud-archive:havana Update the

apt-get update && apt-get dist-upgrade
reboot

Thanks for reading!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-19 13:46:51 -0600

Seen: 1,059 times

Last updated: Apr 22 '14