Merge "Enable anti_affinity feature in scenario test"

This commit is contained in:
Jenkins 2015-10-21 13:53:51 +00:00 committed by Gerrit Code Review
commit 7f1a0df574
3 changed files with 21 additions and 14 deletions

View File

@ -275,19 +275,19 @@ Section "cluster_template"
This section is dictionary-type. This section is dictionary-type.
+----------------------+---------+----------+-----------+---------------------------------------+ +----------------------+--------+----------+-----------+---------------------------------------+
| Fields | Type | Required | Default | Value | | Fields | Type | Required | Default | Value |
+======================+=========+==========+===========+=======================================+ +======================+========+==========+===========+=======================================+
| name | string | True | | name for cluster template | | name | string | True | | name for cluster template |
+----------------------+---------+----------+-----------+---------------------------------------+ +----------------------+--------+----------+-----------+---------------------------------------+
| description | string | | Empty | description | | description | string | | Empty | description |
+----------------------+---------+----------+-----------+---------------------------------------+ +----------------------+--------+----------+-----------+---------------------------------------+
| cluster_configs | object | | | name_of_config_section: config: value | | cluster_configs | object | | | name_of_config_section: config: value |
+----------------------+---------+----------+-----------+---------------------------------------+ +----------------------+--------+----------+-----------+---------------------------------------+
| node_group_templates | object | True | | name_of_node_group: count | | node_group_templates | object | True | | name_of_node_group: count |
+----------------------+---------+----------+-----------+---------------------------------------+ +----------------------+--------+----------+-----------+---------------------------------------+
| anti_affinity | boolean | | False | | | anti_affinity | array | | Empty | array of roles |
+----------------------+---------+----------+-----------+---------------------------------------+ +----------------------+--------+----------+-----------+---------------------------------------+
Section "cluster" Section "cluster"

View File

@ -231,7 +231,11 @@ SCHEMA = {
} }
}, },
"anti_affinity": { "anti_affinity": {
"type": "boolean" "type": "array",
"items": {
"type": "string",
"minLength": 1
}
} }
}, },
"required": ["name", "node_group_templates"], "required": ["name", "node_group_templates"],

View File

@ -41,6 +41,9 @@ clusters:
node_group_templates: node_group_templates:
master: 1 master: 1
worker: 3 worker: 3
anti_affinity:
- namenode
- datanode
scenario: scenario:
- run_jobs - run_jobs
- scale - scale