Skip to content

Commit

Permalink
fix deletion of LVM backed instances
Browse files Browse the repository at this point in the history
    The enumeration of the logical volumes was incorrect,
    thus causing the deletion of instances booted from them,
    to fail.

    Fixes bug: 1078085

Change-Id: Ib899754002cea28f310b042e5d4a7f89416e031e
Cherry-picked: 3c9e48d
  • Loading branch information
yaguangtang committed Nov 13, 2012
1 parent 3d418dc commit 8e11181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/virt/libvirt/utils.py
Expand Up @@ -143,7 +143,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()]
Expand Down

0 comments on commit 8e11181

Please sign in to comment.