[Openstack] 回复: The dashboard crash after attaching a volume to a VM

董建华 dongjh at nci.com.cn
Fri Oct 25 08:14:32 UTC 2013


Adding comment.

This is the apache error log.

root at controller:/var/log/apache2# nova volume-attach test1 81554eb2-69c4-45c3-9886-21369a5238d7 /dev/vdb
+----------+--------------------------------------+
| Property | Value                                |
+----------+--------------------------------------+
| device   | /dev/vdb                             |
| serverId | f2905850-d84f-4792-a868-b5018d379c9d |
| id       | 81554eb2-69c4-45c3-9886-21369a5238d7 |
| volumeId | 81554eb2-69c4-45c3-9886-21369a5238d7 |
+----------+--------------------------------------+

root at controller:/var/log/apache2# tail -f error.log

[Fri Oct 25 08:02:37 2013] [error] Internal Server Error: /horizon/project/instances/f2905850-d84f-4792-a868-b5018d379c9d/
[Fri Oct 25 08:02:37 2013] [error] Traceback (most recent call last):
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
[Fri Oct 25 08:02:37 2013] [error]     response = callback(request, *callback_args, **callback_kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
[Fri Oct 25 08:02:37 2013] [error]     return view_func(request, *args, **kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
[Fri Oct 25 08:02:37 2013] [error]     return view_func(request, *args, **kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
[Fri Oct 25 08:02:37 2013] [error]     return view_func(request, *args, **kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
[Fri Oct 25 08:02:37 2013] [error]     return self.dispatch(request, *args, **kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 86, in dispatch
[Fri Oct 25 08:02:37 2013] [error]     return handler(request, *args, **kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 60, in get
[Fri Oct 25 08:02:37 2013] [error]     context = self.get_context_data(**kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 212, in get_context_data
[Fri Oct 25 08:02:37 2013] [error]     context = super(DetailView, self).get_context_data(**kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 44, in get_context_data
[Fri Oct 25 08:02:37 2013] [error]     exceptions.handle(self.request)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 39, in get_context_data
[Fri Oct 25 08:02:37 2013] [error]     tab_group = self.get_tabs(self.request, **kwargs)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 239, in get_tabs
[Fri Oct 25 08:02:37 2013] [error]     instance = self.get_data()
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 234, in get_data
[Fri Oct 25 08:02:37 2013] [error]     redirect=redirect)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/views.py", line 222, in get_data
[Fri Oct 25 08:02:37 2013] [error]     instance_id)
[Fri Oct 25 08:02:37 2013] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 637, in instance_volumes_list
[Fri Oct 25 08:02:37 2013] [error]     volume_data = cinderclient(request).volumes.get(volume.id)
[Fri Oct 25 08:02:37 2013] [error] AttributeError: 'NoneType' object has no attribute 'volumes'
发件人: 董建华
发送时间: 2013-10-25 15:33
收件人: openstack
主题: The dashboard crash after attaching a volume to a VM
Hello,

I just installed and configured the cinder services on the controller node. After attaching a volume to a instance, i clicked the link of the instance name, the dashborad ceashed, i got the below error messages, however i can click other instances without issue. Have anybody encountered this ?

Something went wrong!
An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131025/db9d6d0e/attachment.html>


More information about the Openstack mailing list