projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fa9f1d
)
Give more details on errors when trying to run “lvdisplay”.
author
Michael Hanselmann
<hansmi@google.com>
Wed, 14 Nov 2007 14:05:26 +0000
(14:05 +0000)
committer
Michael Hanselmann
<hansmi@google.com>
Wed, 14 Nov 2007 14:05:26 +0000
(14:05 +0000)
Reviewed-by: schreiberal
lib/bdev.py
patch
|
blob
|
history
diff --git
a/lib/bdev.py
b/lib/bdev.py
index
38c327a
..
b18aa76
100644
(file)
--- a/
lib/bdev.py
+++ b/
lib/bdev.py
@@
-400,8
+400,8
@@
class LogicalVolume(BlockDev):
"""
result = utils.RunCmd(["lvdisplay", self.dev_path])
if result.failed:
- logger.Error("Can't find LV %s: %s" %
- (self.dev_path, result.fail_reason))
+ logger.Error("Can't find LV %s: %s, %s" %
+ (self.dev_path, result.fail_reason, result.output))
return False
match = re.compile("^ *Block device *([0-9]+):([0-9]+).*$")
for line in result.stdout.splitlines():