[Bug 1505961] [NEW] Internal Server Error: /dashboard/admin/volumes/ in Horizon

Pavel buffoon2001 at mail.ru
Wed Oct 14 09:04:40 UTC 2015


Public bug reported:

Hi! I just installed new openstack and have problem with Horizon.

When I click in dashbord on links: Volumes, Overview or System
Information, in general everywhere where there is cinder, i have next
error:

[Wed Oct 14 15:00:27.185705 2015] [:error] [pid 8163] Internal Server Error: /dashboard/admin/volumes/
[Wed Oct 14 15:00:27.185773 2015] [:error] [pid 8163] Traceback (most recent call last):
[Wed Oct 14 15:00:27.185783 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Wed Oct 14 15:00:27.185789 2015] [:error] [pid 8163]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Wed Oct 14 15:00:27.185795 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
[Wed Oct 14 15:00:27.185800 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
[Wed Oct 14 15:00:27.185805 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
[Wed Oct 14 15:00:27.185811 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
[Wed Oct 14 15:00:27.185817 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
[Wed Oct 14 15:00:27.185822 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
[Wed Oct 14 15:00:27.185827 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
[Wed Oct 14 15:00:27.185832 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
[Wed Oct 14 15:00:27.185837 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
[Wed Oct 14 15:00:27.185892 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
[Wed Oct 14 15:00:27.185899 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
[Wed Oct 14 15:00:27.185905 2015] [:error] [pid 8163]     return self.dispatch(request, *args, **kwargs)
[Wed Oct 14 15:00:27.185911 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
[Wed Oct 14 15:00:27.185927 2015] [:error] [pid 8163]     return handler(request, *args, **kwargs)
[Wed Oct 14 15:00:27.186152 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/views.py", line 146, in get
[Wed Oct 14 15:00:27.186165 2015] [:error] [pid 8163]     context = self.get_context_data(**kwargs)
[Wed Oct 14 15:00:27.186172 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 107, in get_context_data
[Wed Oct 14 15:00:27.186217 2015] [:error] [pid 8163]     context = super(MultiTableMixin, self).get_context_data(**kwargs)
[Wed Oct 14 15:00:27.186241 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/views.py", line 56, in get_context_data
[Wed Oct 14 15:00:27.186383 2015] [:error] [pid 8163]     exceptions.handle(self.request)
[Wed Oct 14 15:00:27.186435 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
[Wed Oct 14 15:00:27.186449 2015] [:error] [pid 8163]     six.reraise(exc_type, exc_value, exc_traceback)
[Wed Oct 14 15:00:27.186627 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/views.py", line 54, in get_context_data
[Wed Oct 14 15:00:27.186969 2015] [:error] [pid 8163]     context["tab_group"].load_tab_data()
[Wed Oct 14 15:00:27.186982 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 128, in load_tab_data
[Wed Oct 14 15:00:27.186989 2015] [:error] [pid 8163]     exceptions.handle(self.request)
[Wed Oct 14 15:00:27.186996 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
[Wed Oct 14 15:00:27.187002 2015] [:error] [pid 8163]     six.reraise(exc_type, exc_value, exc_traceback)
[Wed Oct 14 15:00:27.187008 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 125, in load_tab_data
[Wed Oct 14 15:00:27.187157 2015] [:error] [pid 8163]     tab._data = tab.get_context_data(self.request)
[Wed Oct 14 15:00:27.187168 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 465, in get_context_data
[Wed Oct 14 15:00:27.187174 2015] [:error] [pid 8163]     self.load_table_data()
[Wed Oct 14 15:00:27.187180 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 449, in load_table_data
[Wed Oct 14 15:00:27.187185 2015] [:error] [pid 8163]     table.data = data_func()
[Wed Oct 14 15:00:27.187198 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/volumes/tabs.py", line 41, in get_volumes_data
[Wed Oct 14 15:00:27.187301 2015] [:error] [pid 8163]     volumes = self._get_volumes(search_opts={'all_tenants': True})
[Wed Oct 14 15:00:27.187345 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/tabs.py", line 38, in _get_volumes
[Wed Oct 14 15:00:27.187436 2015] [:error] [pid 8163]     _('Unable to retrieve volume list.'))
[Wed Oct 14 15:00:27.187503 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
[Wed Oct 14 15:00:27.187568 2015] [:error] [pid 8163]     six.reraise(exc_type, exc_value, exc_traceback)
[Wed Oct 14 15:00:27.187827 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/tabs.py", line 35, in _get_volumes
[Wed Oct 14 15:00:27.187938 2015] [:error] [pid 8163]     search_opts=search_opts)
[Wed Oct 14 15:00:27.188044 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 198, in volume_list
[Wed Oct 14 15:00:27.188127 2015] [:error] [pid 8163]     for t in transfer_list(request, search_opts=search_opts)}
[Wed Oct 14 15:00:27.188191 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 596, in transfer_list
[Wed Oct 14 15:00:27.188256 2015] [:error] [pid 8163]     detailed=detailed, search_opts=search_opts)]
[Wed Oct 14 15:00:27.188321 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/cinderclient/v2/volume_transfers.py", line 93, in list
[Wed Oct 14 15:00:27.188384 2015] [:error] [pid 8163]     "transfers")
[Wed Oct 14 15:00:27.188448 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 70, in _list
[Wed Oct 14 15:00:27.188511 2015] [:error] [pid 8163]     data = body[response_key]
[Wed Oct 14 15:00:27.188573 2015] [:error] [pid 8163] KeyError: 'transfers'

CLI is working properly:

# cinder-manage service list
/usr/lib/python2.7/site-packages/cinder/openstack/common/service.py:38: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
  from oslo.config import cfg
No handlers could be found for logger "oslo_config.cfg"
Binary           Host                                 Zone             Status     State Updated At
cinder-volume    KZ-OSB001                            nova             enabled    :-)   2015-10-14 09:02:49
cinder-volume    KZ-OSB002                            nova             enabled    :-)   2015-10-14 09:02:55
cinder-volume    KZ-OSB003                            nova             enabled    :-)   2015-10-14 09:02:56
cinder-scheduler KZ-OSX001                            nova             enabled    :-)   2015-10-14 09:02:51
cinder-scheduler KZ-OSX002                            nova             enabled    :-)   2015-10-14 09:02:56
cinder-scheduler KZ-OSX003                            nova             enabled    :-)   2015-10-14 09:02:51
# cinder list
+----+--------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+----+--------+--------------+------+-------------+----------+-------------+
+----+--------+--------------+------+-------------+----------+-------------+

Tell me please, what is the problem?


I am doing all of the official documentation http://docs.openstack.org/kilo/install-guide/install/yum/content/install_dashboard.html

** Affects: horizon (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1505961

Title:
  Internal Server Error: /dashboard/admin/volumes/ in Horizon

Status in horizon package in Ubuntu:
  New

Bug description:
  Hi! I just installed new openstack and have problem with Horizon.

  When I click in dashbord on links: Volumes, Overview or System
  Information, in general everywhere where there is cinder, i have next
  error:

  [Wed Oct 14 15:00:27.185705 2015] [:error] [pid 8163] Internal Server Error: /dashboard/admin/volumes/
  [Wed Oct 14 15:00:27.185773 2015] [:error] [pid 8163] Traceback (most recent call last):
  [Wed Oct 14 15:00:27.185783 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
  [Wed Oct 14 15:00:27.185789 2015] [:error] [pid 8163]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  [Wed Oct 14 15:00:27.185795 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
  [Wed Oct 14 15:00:27.185800 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
  [Wed Oct 14 15:00:27.185805 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
  [Wed Oct 14 15:00:27.185811 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
  [Wed Oct 14 15:00:27.185817 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
  [Wed Oct 14 15:00:27.185822 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
  [Wed Oct 14 15:00:27.185827 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
  [Wed Oct 14 15:00:27.185832 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
  [Wed Oct 14 15:00:27.185837 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
  [Wed Oct 14 15:00:27.185892 2015] [:error] [pid 8163]     return view_func(request, *args, **kwargs)
  [Wed Oct 14 15:00:27.185899 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
  [Wed Oct 14 15:00:27.185905 2015] [:error] [pid 8163]     return self.dispatch(request, *args, **kwargs)
  [Wed Oct 14 15:00:27.185911 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
  [Wed Oct 14 15:00:27.185927 2015] [:error] [pid 8163]     return handler(request, *args, **kwargs)
  [Wed Oct 14 15:00:27.186152 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/views.py", line 146, in get
  [Wed Oct 14 15:00:27.186165 2015] [:error] [pid 8163]     context = self.get_context_data(**kwargs)
  [Wed Oct 14 15:00:27.186172 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 107, in get_context_data
  [Wed Oct 14 15:00:27.186217 2015] [:error] [pid 8163]     context = super(MultiTableMixin, self).get_context_data(**kwargs)
  [Wed Oct 14 15:00:27.186241 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/views.py", line 56, in get_context_data
  [Wed Oct 14 15:00:27.186383 2015] [:error] [pid 8163]     exceptions.handle(self.request)
  [Wed Oct 14 15:00:27.186435 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
  [Wed Oct 14 15:00:27.186449 2015] [:error] [pid 8163]     six.reraise(exc_type, exc_value, exc_traceback)
  [Wed Oct 14 15:00:27.186627 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/views.py", line 54, in get_context_data
  [Wed Oct 14 15:00:27.186969 2015] [:error] [pid 8163]     context["tab_group"].load_tab_data()
  [Wed Oct 14 15:00:27.186982 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 128, in load_tab_data
  [Wed Oct 14 15:00:27.186989 2015] [:error] [pid 8163]     exceptions.handle(self.request)
  [Wed Oct 14 15:00:27.186996 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
  [Wed Oct 14 15:00:27.187002 2015] [:error] [pid 8163]     six.reraise(exc_type, exc_value, exc_traceback)
  [Wed Oct 14 15:00:27.187008 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 125, in load_tab_data
  [Wed Oct 14 15:00:27.187157 2015] [:error] [pid 8163]     tab._data = tab.get_context_data(self.request)
  [Wed Oct 14 15:00:27.187168 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 465, in get_context_data
  [Wed Oct 14 15:00:27.187174 2015] [:error] [pid 8163]     self.load_table_data()
  [Wed Oct 14 15:00:27.187180 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 449, in load_table_data
  [Wed Oct 14 15:00:27.187185 2015] [:error] [pid 8163]     table.data = data_func()
  [Wed Oct 14 15:00:27.187198 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/volumes/tabs.py", line 41, in get_volumes_data
  [Wed Oct 14 15:00:27.187301 2015] [:error] [pid 8163]     volumes = self._get_volumes(search_opts={'all_tenants': True})
  [Wed Oct 14 15:00:27.187345 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/tabs.py", line 38, in _get_volumes
  [Wed Oct 14 15:00:27.187436 2015] [:error] [pid 8163]     _('Unable to retrieve volume list.'))
  [Wed Oct 14 15:00:27.187503 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
  [Wed Oct 14 15:00:27.187568 2015] [:error] [pid 8163]     six.reraise(exc_type, exc_value, exc_traceback)
  [Wed Oct 14 15:00:27.187827 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/tabs.py", line 35, in _get_volumes
  [Wed Oct 14 15:00:27.187938 2015] [:error] [pid 8163]     search_opts=search_opts)
  [Wed Oct 14 15:00:27.188044 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 198, in volume_list
  [Wed Oct 14 15:00:27.188127 2015] [:error] [pid 8163]     for t in transfer_list(request, search_opts=search_opts)}
  [Wed Oct 14 15:00:27.188191 2015] [:error] [pid 8163]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 596, in transfer_list
  [Wed Oct 14 15:00:27.188256 2015] [:error] [pid 8163]     detailed=detailed, search_opts=search_opts)]
  [Wed Oct 14 15:00:27.188321 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/cinderclient/v2/volume_transfers.py", line 93, in list
  [Wed Oct 14 15:00:27.188384 2015] [:error] [pid 8163]     "transfers")
  [Wed Oct 14 15:00:27.188448 2015] [:error] [pid 8163]   File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 70, in _list
  [Wed Oct 14 15:00:27.188511 2015] [:error] [pid 8163]     data = body[response_key]
  [Wed Oct 14 15:00:27.188573 2015] [:error] [pid 8163] KeyError: 'transfers'

  CLI is working properly:

  # cinder-manage service list
  /usr/lib/python2.7/site-packages/cinder/openstack/common/service.py:38: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
    from oslo.config import cfg
  No handlers could be found for logger "oslo_config.cfg"
  Binary           Host                                 Zone             Status     State Updated At
  cinder-volume    KZ-OSB001                            nova             enabled    :-)   2015-10-14 09:02:49
  cinder-volume    KZ-OSB002                            nova             enabled    :-)   2015-10-14 09:02:55
  cinder-volume    KZ-OSB003                            nova             enabled    :-)   2015-10-14 09:02:56
  cinder-scheduler KZ-OSX001                            nova             enabled    :-)   2015-10-14 09:02:51
  cinder-scheduler KZ-OSX002                            nova             enabled    :-)   2015-10-14 09:02:56
  cinder-scheduler KZ-OSX003                            nova             enabled    :-)   2015-10-14 09:02:51
  # cinder list
  +----+--------+--------------+------+-------------+----------+-------------+
  | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
  +----+--------+--------------+------+-------------+----------+-------------+
  +----+--------+--------------+------+-------------+----------+-------------+

  Tell me please, what is the problem?

  
  I am doing all of the official documentation http://docs.openstack.org/kilo/install-guide/install/yum/content/install_dashboard.html

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



More information about the Ubuntu-openstack-bugs mailing list