Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-node
Commits
44b2cb30
Commit
44b2cb30
authored
13 years ago
by
Thibault VINCENT
Browse files
Options
Downloads
Patches
Plain Diff
fix: xen not returning absolute block device paths for vdisks
parent
a9038b41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ccnode/libvirtwrapper.py
+6
-0
6 additions, 0 deletions
ccnode/libvirtwrapper.py
with
6 additions
and
0 deletions
ccnode/libvirtwrapper.py
+
6
−
0
View file @
44b2cb30
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment