[Openstack] AttributeError: display_name on fresh devstack install

Richard Hedlind rhedlind at gmail.com
Wed Nov 5 20:12:16 UTC 2014


Installed Devstack, created a volume, a snapshot and launched an instance
based on the snapshot. When I try to access the instance details in
Horizon, it blows up with this exception. Looks like some component can’t
handle cinder v2, where the display_name attribute has been replaced by
name.  I found older bugs describing this issue, but they are marked as
fixed. Is this a known issue? Would appreciate help with a workaround.



[Wed Nov 05 17:55:08.812173 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py",
line 71, in get

[Wed Nov 05 17:55:08.812178 2014] [:error] [pid 10218:tid
140035227817728]     context = self.get_context_data(**kwargs)

[Wed Nov 05 17:55:08.812183 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py",
line 255, in get_context_data

[Wed Nov 05 17:55:08.812188 2014] [:error] [pid 10218:tid
140035227817728]     context = super(DetailView,
self).get_context_data(**kwargs)

[Wed Nov 05 17:55:08.812195 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py",
line 56, in get_context_data

[Wed Nov 05 17:55:08.812200 2014] [:error] [pid 10218:tid
140035227817728]     exceptions.handle(self.request)

[Wed Nov 05 17:55:08.812204 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py",
line 334, in handle

[Wed Nov 05 17:55:08.812209 2014] [:error] [pid 10218:tid
140035227817728]     six.reraise(exc_type, exc_value, exc_traceback)

[Wed Nov 05 17:55:08.812213 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py",
line 51, in get_context_data

[Wed Nov 05 17:55:08.812218 2014] [:error] [pid 10218:tid
140035227817728]     tab_group = self.get_tabs(self.request, **kwargs)

[Wed Nov 05 17:55:08.812222 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py",
line 303, in get_tabs

[Wed Nov 05 17:55:08.812227 2014] [:error] [pid 10218:tid
140035227817728]     instance = self.get_data()

[Wed Nov 05 17:55:08.812231 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py",
line 90, in wrapped

[Wed Nov 05 17:55:08.812236 2014] [:error] [pid 10218:tid
140035227817728]     value = cache[key] = func(*args, **kwargs)

[Wed Nov 05 17:55:08.812241 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py",
line 289, in get_data

[Wed Nov 05 17:55:08.812247 2014] [:error] [pid 10218:tid
140035227817728]     redirect=redirect)

[Wed Nov 05 17:55:08.812252 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py",
line 334, in handle

[Wed Nov 05 17:55:08.812256 2014] [:error] [pid 10218:tid
140035227817728]     six.reraise(exc_type, exc_value, exc_traceback)

[Wed Nov 05 17:55:08.812261 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py",
line 277, in get_data

[Wed Nov 05 17:55:08.812266 2014] [:error] [pid 10218:tid
140035227817728]     instance_id)

[Wed Nov 05 17:55:08.812270 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py",
line 718, in instance_volumes_list

[Wed Nov 05 17:55:08.812275 2014] [:error] [pid 10218:tid
140035227817728]     volume.name = volume_data.display_name

[Wed Nov 05 17:55:08.812289 2014] [:error] [pid 10218:tid
140035227817728]   File
"/opt/stack/python-cinderclient/cinderclient/openstack/common/apiclient/base.py",
line 463, in __getattr__

[Wed Nov 05 17:55:08.812294 2014] [:error] [pid 10218:tid
140035227817728]     raise AttributeError(k)

[Wed Nov 05 17:55:08.812299 2014] [:error] [pid 10218:tid 140035227817728]
AttributeError: display_name



Thanks,

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141105/ae0b3768/attachment.html>


More information about the Openstack mailing list