summaryrefslogtreecommitdiffstats
path: root/deploy/config/schemas.py
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-05-12 00:08:01 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-05-15 22:44:38 +0800
commitbfacd100e576a50be19447f7c1b6cea2ac55ebd0 (patch)
treed9bc28d621e1a327ce7758845d4310cd5eff4a2f /deploy/config/schemas.py
parentcbdb2b6ab819f1cad4cfcdc47c53d76030305633 (diff)
add separated disk for ceph in multi-nodes virtual deploy
Change-Id: Ic3f67bb889c20e95916a1052f0cfa1e238f133a8 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'deploy/config/schemas.py')
-rw-r--r--deploy/config/schemas.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/deploy/config/schemas.py b/deploy/config/schemas.py
index 52ded2b4..7cc2c80e 100644
--- a/deploy/config/schemas.py
+++ b/deploy/config/schemas.py
@@ -13,6 +13,7 @@ from jsonschema import Draft4Validator, FormatChecker
MIN_DAISY_DISK_SIZE = 50
# minimal size of root_lv_size is 102400 mega-bytes
MIN_NODE_DISK_SIZE = 110
+MIN_CEPH_DISK_SIZE = 110
hosts_schema = {
'type': 'array',
@@ -36,7 +37,8 @@ disks_schema = {
'properties': {
'daisy': {'type': 'integer', 'minimum': MIN_DAISY_DISK_SIZE},
'controller': {'type': 'integer', 'minimum': MIN_NODE_DISK_SIZE},
- 'compute': {'type': 'integer', 'minimum': MIN_NODE_DISK_SIZE}
+ 'compute': {'type': 'integer', 'minimum': MIN_NODE_DISK_SIZE},
+ 'ceph': {'type': 'integer', 'minimum': MIN_CEPH_DISK_SIZE}
}
}