Enforce minimum value for volume (extend) size
volume size shouldn't be 0 or a negative value. Also, cinder does not
support shrinking volumes so extend should be apparently a positive
value.
Change-Id: I9966245063c8e3d80f50395f315c087c9c0183e6
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
diff --git a/tempest/config.py b/tempest/config.py
index fec7692..d5bb550 100644
--- a/tempest/config.py
+++ b/tempest/config.py
@@ -1054,9 +1054,11 @@
help='Disk format to use when copying a volume to image'),
cfg.IntOpt('volume_size',
default=1,
+ min=1,
help='Default size in GB for volumes created by volumes tests'),
cfg.IntOpt('volume_size_extend',
default=1,
+ min=1,
help="Size in GB a volume is extended by - if a test "
"extends a volume, the size of the new volume will be "
"volume_size + volume_size_extend."),