From 439f390e0a23515378cfb54dace9c3c87cf71c9e Mon Sep 17 00:00:00 2001 From: Ronald Bradford Date: Tue, 19 Jan 2016 16:51:32 -0500 Subject: [PATCH] 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 --- cinder/volume/drivers/nexenta/options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', -- 2.45.2