]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Change default value of gpfs_images_share_mode to None
authorSasikanth <sasikanth.eda@in.ibm.com>
Wed, 4 Mar 2015 03:34:00 +0000 (09:04 +0530)
committerSasikanth <sasikanth.eda@in.ibm.com>
Wed, 4 Mar 2015 03:45:32 +0000 (09:15 +0530)
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

index f52d55b58f01cde6a0e3b5b6870ccd142ef7725f..06062ea619cc837cd81568837d4502a63c3433ee 100644 (file)
@@ -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 '