]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Correct opt type for nexenta_chunksize/blocksize
authorRonald Bradford <ronald.bradford@gmail.com>
Tue, 19 Jan 2016 21:51:32 +0000 (16:51 -0500)
committerRonald Bradford <ronald.bradford@gmail.com>
Tue, 26 Jan 2016 16:21:00 +0000 (11:21 -0500)
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

index eed18a00d9610cbc5ea06ea0b99a654836472af5..5441456e8392b326f29f0af33607ad5efd24c783 100644 (file)
@@ -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',