From: Ronald Bradford Date: Tue, 19 Jan 2016 21:51:32 +0000 (-0500) Subject: Correct opt type for nexenta_chunksize/blocksize X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=439f390e0a23515378cfb54dace9c3c87cf71c9e;p=openstack-build%2Fcinder-build.git Correct opt type for nexenta_chunksize/blocksize When defined as a string with an integer default value, configuration generation fails. Set to IntOpt based on help description and 4K/16K values. Change-Id: Ifaa92e15e3af837d87f71190702e66245c0fe7df --- diff --git a/cinder/volume/drivers/nexenta/options.py b/cinder/volume/drivers/nexenta/options.py index eed18a00d..5441456e8 100644 --- a/cinder/volume/drivers/nexenta/options.py +++ b/cinder/volume/drivers/nexenta/options.py @@ -43,7 +43,7 @@ NEXENTA_EDGE_OPTS = [ default='', help='NexentaEdge iSCSI Gateway client ' 'address for non-VIP service'), - cfg.StrOpt('nexenta_chunksize', + cfg.IntOpt('nexenta_chunksize', default=16384, help='NexentaEdge iSCSI LUN object chunk size') ] @@ -119,7 +119,7 @@ NEXENTA_DATASET_OPTS = [ cfg.StrOpt('nexenta_dataset_description', default='', help='Human-readable description for the folder.'), - cfg.StrOpt('nexenta_blocksize', + cfg.IntOpt('nexenta_blocksize', default=4096, help='Block size for datasets'), cfg.IntOpt('nexenta_ns5_blocksize',