← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1394571] [NEW] AttributeError at /admin/instances/<UUID>/detail

 

Public bug reported:

Created an instance, clicked on it to get to details:

AttributeError at /admin/instances/05b2ea29-ebcd-4a25-9582-6fbd223fba73/detail
display_name
Request Method:	GET
Request URL:	http://10.130.11.200/admin/instances/05b2ea29-ebcd-4a25-9582-6fbd223fba73/detail
Django Version:	1.6.8
Exception Type:	AttributeError
Exception Value:	
display_name
Exception Location:	/usr/local/lib/python2.7/dist-packages/cinderclient/openstack/common/apiclient/base.py in __getattr__, line 463
Python Executable:	/usr/bin/python
Python Version:	2.7.6
Python Path:	
['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
 '/opt/stack/keystone',
 '/opt/stack/glance',
 '/opt/stack/cinder',
 '/opt/stack/nova',
 '/opt/stack/horizon',
 '/opt/stack/heat',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/opt/stack/horizon/openstack_dashboard']
Server time:	Thu, 20 Nov 2014 13:06:09 +0000

Environment:


Request Method: GET
Request URL: http://<IP>/admin/instances/05b2ea29-ebcd-4a25-9582-6fbd223fba73/detail

Django Version: 1.6.8
Python Version: 2.7.6
Installed Applications:
['openstack_dashboard.dashboards.project',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.identity',
 'openstack_dashboard.dashboards.settings',
 'openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'django_pyscss',
 'openstack_dashboard.django_pyscss_fix',
 'compressor',
 'horizon',
 'openstack_auth']
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/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  36.         return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  84.                 return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  52.             return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  36.         return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  84.                 return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  69.             return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  87.         return handler(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py" in get
  71.         context = self.get_context_data(**kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_context_data
  255.         context = super(DetailView, self).get_context_data(**kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py" in get_context_data
  56.             exceptions.handle(self.request)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py" in handle
  334.     six.reraise(exc_type, exc_value, exc_traceback)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py" in get_context_data
  51.             tab_group = self.get_tabs(self.request, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_tabs
  303.         instance = self.get_data()
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py" in wrapped
  90.             value = cache[key] = func(*args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_data
  289.                               redirect=redirect)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py" in handle
  334.     six.reraise(exc_type, exc_value, exc_traceback)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_data
  277.                                                               instance_id)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in instance_volumes_list
  726.         volume.name = volume_data.display_name
File "/usr/local/lib/python2.7/dist-packages/cinderclient/openstack/common/apiclient/base.py" in __getattr__
  463.             raise AttributeError(k)

Exception Type: AttributeError at /admin/instances/05b2ea29-ebcd-4a25-9582-6fbd223fba73/detail
Exception Value: 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/1394571

Title:
  AttributeError at /admin/instances/<UUID>/detail

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Created an instance, clicked on it to get to details:

  AttributeError at /admin/instances/05b2ea29-ebcd-4a25-9582-6fbd223fba73/detail
  display_name
  Request Method:	GET
  Request URL:	http://10.130.11.200/admin/instances/05b2ea29-ebcd-4a25-9582-6fbd223fba73/detail
  Django Version:	1.6.8
  Exception Type:	AttributeError
  Exception Value:	
  display_name
  Exception Location:	/usr/local/lib/python2.7/dist-packages/cinderclient/openstack/common/apiclient/base.py in __getattr__, line 463
  Python Executable:	/usr/bin/python
  Python Version:	2.7.6
  Python Path:	
  ['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
   '/opt/stack/keystone',
   '/opt/stack/glance',
   '/opt/stack/cinder',
   '/opt/stack/nova',
   '/opt/stack/horizon',
   '/opt/stack/heat',
   '/usr/lib/python2.7',
   '/usr/lib/python2.7/plat-x86_64-linux-gnu',
   '/usr/lib/python2.7/lib-tk',
   '/usr/lib/python2.7/lib-old',
   '/usr/lib/python2.7/lib-dynload',
   '/usr/local/lib/python2.7/dist-packages',
   '/usr/lib/python2.7/dist-packages',
   '/opt/stack/horizon/openstack_dashboard']
  Server time:	Thu, 20 Nov 2014 13:06:09 +0000

  Environment:

  
  Request Method: GET
  Request URL: http://<IP>/admin/instances/05b2ea29-ebcd-4a25-9582-6fbd223fba73/detail

  Django Version: 1.6.8
  Python Version: 2.7.6
  Installed Applications:
  ['openstack_dashboard.dashboards.project',
   'openstack_dashboard.dashboards.admin',
   'openstack_dashboard.dashboards.identity',
   'openstack_dashboard.dashboards.settings',
   'openstack_dashboard',
   'django.contrib.contenttypes',
   'django.contrib.auth',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'django.contrib.humanize',
   'django_pyscss',
   'openstack_dashboard.django_pyscss_fix',
   'compressor',
   'horizon',
   'openstack_auth']
  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/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
    112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    36.         return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    84.                 return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    52.             return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    36.         return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    84.                 return view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
    69.             return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
    87.         return handler(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py" in get
    71.         context = self.get_context_data(**kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_context_data
    255.         context = super(DetailView, self).get_context_data(**kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py" in get_context_data
    56.             exceptions.handle(self.request)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py" in handle
    334.     six.reraise(exc_type, exc_value, exc_traceback)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py" in get_context_data
    51.             tab_group = self.get_tabs(self.request, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_tabs
    303.         instance = self.get_data()
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py" in wrapped
    90.             value = cache[key] = func(*args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_data
    289.                               redirect=redirect)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py" in handle
    334.     six.reraise(exc_type, exc_value, exc_traceback)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py" in get_data
    277.                                                               instance_id)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in instance_volumes_list
    726.         volume.name = volume_data.display_name
  File "/usr/local/lib/python2.7/dist-packages/cinderclient/openstack/common/apiclient/base.py" in __getattr__
    463.             raise AttributeError(k)

  Exception Type: AttributeError at /admin/instances/05b2ea29-ebcd-4a25-9582-6fbd223fba73/detail
  Exception Value: display_name

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


Follow ups

References