← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1392962] [NEW] Horizon fail to view volume data if configured with cinder v2

 

Public bug reported:

When Horizon configured with using cinder v2 api as below: 
OPENSTACK_API_VERSIONS = {
    "identity": 2.0,
    "volume": 2
}

Note that: Nova already switch to use cinderv2 api as default since commit: 
https://review.openstack.org/#/c/124468

After nova attach a volume(with configured nova using cinder_catalog_info="volumev2:cinderv2:publicURL'.  Login into horion, 
it will fail to get to the instance detail pages due to error blow. 

[Fri Nov 14 14:27:44 2014] [error] Traceback (most recent call last):
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 112, in get_response
[Fri Nov 14 14:27:44 2014] [error]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 36, in dec
[Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 84, in dec
[Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 52, in dec
[Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 36, in dec
[Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 84, in dec
[Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in view
[Fri Nov 14 14:27:44 2014] [error]     return self.dispatch(request, *args, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 87, in dispatch
[Fri Nov 14 14:27:44 2014] [error]     return handler(request, *args, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 71, in get
[Fri Nov 14 14:27:44 2014] [error]     context = self.get_context_data(**kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 255, in get_context_data
[Fri Nov 14 14:27:44 2014] [error]     context = super(DetailView, self).get_context_data(**kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 56, in get_context_data
[Fri Nov 14 14:27:44 2014] [error]     exceptions.handle(self.request)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/exceptions.py", line 334, in handle
[Fri Nov 14 14:27:44 2014] [error]     six.reraise(exc_type, exc_value, exc_traceback)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 51, in get_context_data
[Fri Nov 14 14:27:44 2014] [error]     tab_group = self.get_tabs(self.request, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 299, in get_tabs
[Fri Nov 14 14:27:44 2014] [error]     instance = self.get_data()
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/utils/memoized.py", line 90, in wrapped
[Fri Nov 14 14:27:44 2014] [error]     value = cache[key] = func(*args, **kwargs)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 285, in get_data
[Fri Nov 14 14:27:44 2014] [error]     redirect=redirect)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/exceptions.py", line 334, in handle
[Fri Nov 14 14:27:44 2014] [error]     six.reraise(exc_type, exc_value, exc_traceback)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 273, in get_data
[Fri Nov 14 14:27:44 2014] [error]     instance_id)
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 720, in instance_volumes_list
[Fri Nov 14 14:27:44 2014] [error]     volume.name = volume_data.display_name
[Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/cinderclient/openstack/common/apiclient/base.py", line 463, in __getattr__
[Fri Nov 14 14:27:44 2014] [error]     raise AttributeError(k)
[Fri Nov 14 14:27:44 2014] [error] AttributeError: display_name

** Affects: horizon
     Importance: Undecided
         Status: New

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

Title:
  Horizon fail to view volume data if configured with cinder v2

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  When Horizon configured with using cinder v2 api as below: 
  OPENSTACK_API_VERSIONS = {
      "identity": 2.0,
      "volume": 2
  }

  Note that: Nova already switch to use cinderv2 api as default since commit: 
  https://review.openstack.org/#/c/124468

  After nova attach a volume(with configured nova using cinder_catalog_info="volumev2:cinderv2:publicURL'.  Login into horion, 
  it will fail to get to the instance detail pages due to error blow. 

  [Fri Nov 14 14:27:44 2014] [error] Traceback (most recent call last):
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 112, in get_response
  [Fri Nov 14 14:27:44 2014] [error]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 36, in dec
  [Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 84, in dec
  [Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 52, in dec
  [Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 36, in dec
  [Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 84, in dec
  [Fri Nov 14 14:27:44 2014] [error]     return view_func(request, *args, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in view
  [Fri Nov 14 14:27:44 2014] [error]     return self.dispatch(request, *args, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 87, in dispatch
  [Fri Nov 14 14:27:44 2014] [error]     return handler(request, *args, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 71, in get
  [Fri Nov 14 14:27:44 2014] [error]     context = self.get_context_data(**kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 255, in get_context_data
  [Fri Nov 14 14:27:44 2014] [error]     context = super(DetailView, self).get_context_data(**kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 56, in get_context_data
  [Fri Nov 14 14:27:44 2014] [error]     exceptions.handle(self.request)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/exceptions.py", line 334, in handle
  [Fri Nov 14 14:27:44 2014] [error]     six.reraise(exc_type, exc_value, exc_traceback)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 51, in get_context_data
  [Fri Nov 14 14:27:44 2014] [error]     tab_group = self.get_tabs(self.request, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 299, in get_tabs
  [Fri Nov 14 14:27:44 2014] [error]     instance = self.get_data()
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/utils/memoized.py", line 90, in wrapped
  [Fri Nov 14 14:27:44 2014] [error]     value = cache[key] = func(*args, **kwargs)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 285, in get_data
  [Fri Nov 14 14:27:44 2014] [error]     redirect=redirect)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/exceptions.py", line 334, in handle
  [Fri Nov 14 14:27:44 2014] [error]     six.reraise(exc_type, exc_value, exc_traceback)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 273, in get_data
  [Fri Nov 14 14:27:44 2014] [error]     instance_id)
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 720, in instance_volumes_list
  [Fri Nov 14 14:27:44 2014] [error]     volume.name = volume_data.display_name
  [Fri Nov 14 14:27:44 2014] [error]   File "/usr/lib/python2.6/site-packages/cinderclient/openstack/common/apiclient/base.py", line 463, in __getattr__
  [Fri Nov 14 14:27:44 2014] [error]     raise AttributeError(k)
  [Fri Nov 14 14:27:44 2014] [error] AttributeError: display_name

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


Follow ups

References