mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 07:35:50 +03:00
[GH-ISSUE #36] Error when clicking on a virtual machine that is shutdown #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JJClements on GitHub (Mar 5, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/36
If a virtual machine has been shutdown, trying to click on it from the list causes a '500' error.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/var/www/webvirtmgr/virtmgr/views.py", line 1217, in vm
hdd_image = get_dom_hdd(storages)
File "/var/www/webvirtmgr/virtmgr/views.py", line 1167, in get_dom_hdd
img = conn.storageVolLookupByPath(hdd)
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2830, in storageVolLookupByPath
if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', conn=self)
libvirtError: Storage volume not found: no storage vol with matching path
<ModPythonRequest
path:/vm/1/web302.ln1.vm.prod/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'csrftoken': 'd44f4f73a7bcc71dfc2a6b5ea9fa11e9',
'sessionid': 'b9d9dc651ca4ad0adff8bdf3fe2f53dd'},
META:{'AUTH_TYPE': None,
'CONTENT_LENGTH': 0,
'CONTENT_TYPE': None,
'CSRF_COOKIE': 'd44f4f73a7bcc71dfc2a6b5ea9fa11e9',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'csrftoken=d44f4f73a7bcc71dfc2a6b5ea9fa11e9; sessionid=b9d9dc651ca4ad0adff8bdf3fe2f53dd',
'HTTP_HOST': '10.3.117.100',
'HTTP_REFERER': 'http://10.3.117.100/overview/1/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0',
'PATH_INFO': u'/vm/1/web302.ln1.vm.prod/',
'PATH_TRANSLATED': None,
'QUERY_STRING': None,
'REMOTE_ADDR': '172.17.25.41',
'REMOTE_HOST': None,
'REMOTE_IDENT': None,
'REMOTE_USER': None,
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '/webvirtmgr',
'SERVER_NAME': 'kvmmaster.ln1.vm.prod',
'SERVER_PORT': 80,
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'mod_python'}>
@retspen commented on GitHub (Mar 5, 2013):
HDD image must be defined in libvirt Storage Pool.
@JJClements commented on GitHub (Mar 5, 2013):
Sure, so can we have a custom error message to tell us that?