Currently if a user configures
volume_clear='non_existent_volume_clearer' in cinder.conf,
the LVM driver will silently delete a volume and not wipe it.
Instead, the delete operation should fail, leaving the volume
in the 'error_deleting' state.
Also fail if the volume reference does not contain either a
'size' or 'volume_size' field.
Reviewed: https:/ /review. openstack. org/46572 github. com/openstack/ cinder/ commit/ 863ae9f484089aa 5d9e576255b3928 8da82c1100
Committed: http://
Submitter: Jenkins
Branch: master
commit 863ae9f484089aa 5d9e576255b3928 8da82c1100
Author: Eric Harney <email address hidden>
Date: Fri Sep 13 16:56:44 2013 -0400
LVM volume_clear: error on unexpected inputs
Currently if a user configures clear=' non_existent_ volume_ clearer' in cinder.conf,
volume_
the LVM driver will silently delete a volume and not wipe it.
Instead, the delete operation should fail, leaving the volume
in the 'error_deleting' state.
Also fail if the volume reference does not contain either a
'size' or 'volume_size' field.
Closes-Bug: #1225194 a8e2deeac43066c a5e2e26d9ca
Change-Id: I78fec32d7d5aea