From: Sasikanth Date: Wed, 4 Mar 2015 03:34:00 +0000 (+0530) Subject: Change default value of gpfs_images_share_mode to None X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5ce01f4bf8d5efdc41a4e23c0474825d0773917c;p=openstack-build%2Fcinder-build.git Change default value of gpfs_images_share_mode to None This patch will assign default value of gpfs_images_share_mode option used in gpfs.py to None instead of 'copy_on_write'. Initializing it with 'copy_on_write' breaks the setup. It is needed only if the user configures gpfs_images_dir option. Change-Id: I73e91f7d41fa97a8b2f05dac55c665d1f6dedf07 Closes-Bug: #1427713 --- diff --git a/cinder/volume/drivers/ibm/gpfs.py b/cinder/volume/drivers/ibm/gpfs.py index f52d55b58..06062ea61 100644 --- a/cinder/volume/drivers/ibm/gpfs.py +++ b/cinder/volume/drivers/ibm/gpfs.py @@ -50,8 +50,8 @@ gpfs_opts = [ help='Specifies the path of the Image service repository in ' 'GPFS. Leave undefined if not storing images in GPFS.'), cfg.StrOpt('gpfs_images_share_mode', - default='copy_on_write', - choices=['copy', 'copy_on_write'], + default=None, + choices=['copy', 'copy_on_write', None], help='Specifies the type of image copy to be used. Set this ' 'when the Image service repository also uses GPFS so ' 'that image files can be transferred efficiently from '