From 3c9e48d1119b77428346680c2a009c44ff9bf2ce Mon Sep 17 00:00:00 2001 From: Yaguang Tang Date: Tue, 13 Nov 2012 15:50:21 +0800 Subject: fix LVM backed VM logial volumes can't be deleted. bug#1078085. Change-Id: Ib899754002cea28f310b042e5d4a7f89416e031e --- nova/virt/libvirt/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()] -- cgit