[GH-ISSUE #36] Error when clicking on a virtual machine that is shutdown #28

Closed
opened 2026-02-27 16:00:45 +03:00 by kerem · 2 comments
Owner

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'}>

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'}>
kerem 2026-02-27 16:00:45 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@retspen commented on GitHub (Mar 5, 2013):

HDD image must be defined in libvirt Storage Pool.

<!-- gh-comment-id:14451775 --> @retspen commented on GitHub (Mar 5, 2013): HDD image must be defined in libvirt Storage Pool.
Author
Owner

@JJClements commented on GitHub (Mar 5, 2013):

Sure, so can we have a custom error message to tell us that?

<!-- gh-comment-id:14453265 --> @JJClements commented on GitHub (Mar 5, 2013): Sure, so can we have a custom error message to tell us that?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#28
No description provided.