summaryrefslogtreecommitdiffstats
path: root/etc/nova/rootwrap.d
diff options
context:
space:
mode:
authorRafi Khardalian <rafi@metacloud.com>2012-09-05 16:09:45 +0000
committerRafi Khardalian <rafi@metacloud.com>2012-09-17 20:36:09 +0000
commitd05637f99271e081f9579b69cf77de1969839561 (patch)
treecc5b250a7c8a528a7b3e84659674af85d033313d /etc/nova/rootwrap.d
parent725c99b2a9a05c905b6ff9455d47917c39be9f57 (diff)
downloadnova-d05637f99271e081f9579b69cf77de1969839561.tar.gz
nova-d05637f99271e081f9579b69cf77de1969839561.tar.xz
nova-d05637f99271e081f9579b69cf77de1969839561.zip
Fix volume deletion when device mapper is used
Call dmsetup remove if there is a /dev/mapper/nova--volumes- element present. Resolves bug 979020 Change-Id: Iddaaed411a77dda4bd32f9a97687ff17744119eb
Diffstat (limited to 'etc/nova/rootwrap.d')
-rw-r--r--etc/nova/rootwrap.d/volume.filters4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/nova/rootwrap.d/volume.filters b/etc/nova/rootwrap.d/volume.filters
index 9451e5115..e2b0f6203 100644
--- a/etc/nova/rootwrap.d/volume.filters
+++ b/etc/nova/rootwrap.d/volume.filters
@@ -27,3 +27,7 @@ lvdisplay: CommandFilter, /sbin/lvdisplay, root
# nova/volume/driver.py: 'iscsiadm', '-m', 'node', '-T', ...
iscsiadm: CommandFilter, /sbin/iscsiadm, root
iscsiadm_usr: CommandFilter, /usr/bin/iscsiadm, root
+
+# nova/volume/driver.py
+dmsetup: CommandFilter, /sbin/dmsetup, root
+dmsetup_usr: CommandFilter, /usr/sbin/dmsetup, root