Skip to content
Snippets Groups Projects
Commit 44b2cb30 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix: xen not returning absolute block device paths for vdisks

parent a9038b41
No related branches found
No related tags found
No related merge requests found
......@@ -760,6 +760,12 @@ class LibvirtVm(VM):
elif d_type == 'block':
d_path = xdisk.getElementsByTagName('source').pop()\
.getAttribute('dev')
# FIXME sometimes xen do not report '/dev/' at the
# beginning of block devices, and relative paths
# are non-sense
# Example: vg/myvm instead of /dev/vg/myvm
if d_path[0] != '/':
d_path = '/dev/' + d_path
# search the volume object
if d_type in ['file', 'block']:
volumes.append(self._hv_handle._sto_handle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment