From 5ce01f4bf8d5efdc41a4e23c0474825d0773917c Mon Sep 17 00:00:00 2001 From: Sasikanth Date: Wed, 4 Mar 2015 09:04:00 +0530 Subject: [PATCH] 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 --- cinder/volume/drivers/ibm/gpfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ' -- 2.45.2