summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaguang Tang <heut2008@gmail.com>2012-11-13 15:50:21 +0800
committerYaguang Tang <heut2008@gmail.com>2012-11-13 16:00:22 +0800
commit3c9e48d1119b77428346680c2a009c44ff9bf2ce (patch)
treee25157296672057ef3c2059eb83a8789302657c0
parentf282a2c31f50b24d628b44cbd97f35429ad2798b (diff)
downloadnova-3c9e48d1119b77428346680c2a009c44ff9bf2ce.tar.gz
nova-3c9e48d1119b77428346680c2a009c44ff9bf2ce.tar.xz
nova-3c9e48d1119b77428346680c2a009c44ff9bf2ce.zip
fix LVM backed VM logial volumes can't be deleted.
bug#1078085. Change-Id: Ib899754002cea28f310b042e5d4a7f89416e031e
-rw-r--r--nova/virt/libvirt/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/utils.py b/nova/virt/libvirt/utils.py
index 6f163e8d0..3a307c8e4 100644
--- a/nova/virt/libvirt/utils.py
+++ b/nova/virt/libvirt/utils.py
@@ -169,7 +169,7 @@ def list_logical_volumes(vg):
:param vg: volume group name
"""
- out, err = execute('lvs', '--noheadings', '-o', 'lv_path', vg,
+ out, err = execute('lvs', '--noheadings', '-o', 'lv_name', vg,
run_as_root=True)
return [line.strip() for line in out.splitlines()]