** Changed in: horizon/juno
       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/1386727

Title:
  Cinder API v2 support instance view

Status in OpenStack Dashboard (Horizon):
  Fix Committed
Status in OpenStack Dashboard (Horizon) juno series:
  Fix Released

Bug description:
  There was a bug report: https://bugs.launchpad.net/bugs/1226944 to fix
  Horizon to communicate with Cinder v2 API.

  But there's a problem still exists for the instance view.

  
  If you're using cinder v2 you will get an error for instance view:

  
https://github.com/openstack/horizon/blob/stable/juno/openstack_dashboard/api/nova.py#L720
  
https://github.com/openstack/horizon/blob/stable/icehouse/openstack_dashboard/api/nova.py#L668

  => should be
  volume.name = volume_data.name


  Reproduce:

  * Add new cinder endpoint (API v2) 
  * Login to Horizon 
  * Create instance
  * Show instance details => 500


  [Tue Oct 28 12:26:29 2014] [error] Internal Server Error: 
/project/instances/cd38d21d-0281-40cf-b31b-c39f27f62ea8/
  [Tue Oct 28 12:26:29 2014] [error] Traceback (most recent call last):
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in 
get_response
  [Tue Oct 28 12:26:29 2014] [error]     response = wrapped_callback(request, 
*callback_args, **callback_kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
  [Tue Oct 28 12:26:29 2014] [error]     return view_func(request, *args, 
**kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
  [Tue Oct 28 12:26:29 2014] [error]     return view_func(request, *args, 
**kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
  [Tue Oct 28 12:26:29 2014] [error]     return view_func(request, *args, 
**kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in 
view
  [Tue Oct 28 12:26:29 2014] [error]     return self.dispatch(request, *args, 
**kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in 
dispatch
  [Tue Oct 28 12:26:29 2014] [error]     return handler(request, *args, 
**kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 71, in get
  [Tue Oct 28 12:26:29 2014] [error]     context = 
self.get_context_data(**kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py",
 line 251, in get_context_data
  [Tue Oct 28 12:26:29 2014] [error]     context = super(DetailView, 
self).get_context_data(**kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 56, in 
get_context_data
  [Tue Oct 28 12:26:29 2014] [error]     exceptions.handle(self.request)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 51, in 
get_context_data
  [Tue Oct 28 12:26:29 2014] [error]     tab_group = 
self.get_tabs(self.request, **kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py",
 line 287, in get_tabs
  [Tue Oct 28 12:26:29 2014] [error]     instance = self.get_data()
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py", line 90, in 
wrapped
  [Tue Oct 28 12:26:29 2014] [error]     value = cache[key] = func(*args, 
**kwargs)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py",
 line 273, in get_data
  [Tue Oct 28 12:26:29 2014] [error]     redirect=redirect)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py",
 line 261, in get_data
  [Tue Oct 28 12:26:29 2014] [error]     instance_id)
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py",
 line 668, in instance_volumes_list
  [Tue Oct 28 12:26:29 2014] [error]     volume.name = volume_data.display_name
  [Tue Oct 28 12:26:29 2014] [error]   File 
"/usr/lib/python2.7/dist-packages/cinderclient/base.py", line 271, in 
__getattr__
  [Tue Oct 28 12:26:29 2014] [error]     raise AttributeError(k)
  [Tue Oct 28 12:26:29 2014] [error] AttributeError: display_name

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to