Browse code

Add CINDER_SECURE_DELETE flag.

Defaults to true which means no change in behavoir. Adds option
to disable secure delete as in https://review.openstack.org/15477.

Change-Id: I2b19ed4223460b550026ad4975080c0079c8b433

James E. Blair authored on 2012/11/06 17:38:36
Showing 2 changed files
... ...
@@ -134,6 +134,10 @@ function configure_cinder() {
134 134
         iniset $CINDER_CONF DEFAULT rabbit_password $RABBIT_PASSWORD
135 135
     fi
136 136
 
137
+    if [[ "$CINDER_SECURE_DELETE" == "False" ]]; then
138
+        iniset $CINDER_CONF DEFAULT secure_delete False
139
+    fi
140
+
137 141
     if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
138 142
         # Add color to logging output
139 143
         iniset $CINDER_CONF DEFAULT logging_context_format_string "%(asctime)s %(color)s%(levelname)s %(name)s [%(request_id)s %(user_id)s %(project_id)s%(color)s] %(instance)s%(color)s%(message)s"
... ...
@@ -356,6 +356,11 @@ RYU_OFP_PORT=${RYU_OFP_PORT:-6633}
356 356
 # Ryu Applications
357 357
 RYU_APPS=${RYU_APPS:-ryu.app.simple_isolation,ryu.app.rest}
358 358
 
359
+# Should cinder perform secure deletion of volumes?
360
+# Defaults to true, can be set to False to avoid this bug when testing:
361
+# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1023755
362
+CINDER_SECURE_DELETE=`trueorfalse True $CINDER_SECURE_DELETE`
363
+
359 364
 # Name of the LVM volume group to use/create for iscsi volumes
360 365
 VOLUME_GROUP=${VOLUME_GROUP:-stack-volumes}
361 366
 VOLUME_NAME_PREFIX=${VOLUME_NAME_PREFIX:-volume-}