]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
lvconvert missing from cinder volume.filters
authorFergal Mc Carthy <fergal.mccarthy@hpe.com>
Tue, 27 Oct 2015 18:25:45 +0000 (14:25 -0400)
committerFergal Mc Carthy <fergal.mccarthy@hpe.com>
Tue, 27 Oct 2015 18:25:45 +0000 (14:25 -0400)
The LVM lvconvert command is invoked by the revert method of the
cinder.brick.local_dev.lvm.LVM class but was missing a matching
volume.filters CommandFilter entry which has now been added.

Change-Id: Ib436f562a6dd7b8828e34051b5d73273c1f52b50
Closes-Bug: 1510654

etc/cinder/rootwrap.d/volume.filters

index 9e7ab384c4f765a45df745cb54b08c797645b9a9..c4187eaec4e922c08d8782c6c3cc0dfbb8f3ccaf 100644 (file)
@@ -61,6 +61,9 @@ lvextend: CommandFilter, lvextend, root
 # cinder/brick/local_dev/lvm.py: 'lvchange -a y -K <lv>'
 lvchange: CommandFilter, lvchange, root
 
+# cinder/brick/local_dev/lvm.py: 'lvconvert', '--merge', snapshot_name
+lvconvert: CommandFilter, lvconvert, root
+
 # cinder/volume/driver.py: 'iscsiadm', '-m', 'discovery', '-t',...
 # cinder/volume/driver.py: 'iscsiadm', '-m', 'node', '-T', ...
 iscsiadm: CommandFilter, iscsiadm, root