Merge "[Sahara] Remove volumes from non-workers"
This commit is contained in:
@@ -198,8 +198,13 @@ class SaharaScenario(scenario.OpenStackScenario):
|
||||
if volumes_per_node:
|
||||
LOG.debug("Adding volumes config to Node Groups")
|
||||
for ng in node_groups:
|
||||
ng["volumes_per_node"] = volumes_per_node
|
||||
ng["volumes_size"] = volumes_size
|
||||
ng_name = ng["name"]
|
||||
if "worker" in ng_name or "proxy" in ng_name:
|
||||
# NOTE: Volume storage is used only by HDFS Datanode
|
||||
# process which runs on workers and proxies.
|
||||
|
||||
ng["volumes_per_node"] = volumes_per_node
|
||||
ng["volumes_size"] = volumes_size
|
||||
|
||||
return node_groups
|
||||
|
||||
|
||||
@@ -169,8 +169,6 @@ class SaharaScenarioTestCase(test.ScenarioTestCase):
|
||||
"flavor_id": "test_flavor",
|
||||
"node_processes": ["p1"],
|
||||
"floating_ip_pool": floating_ip_pool_uuid,
|
||||
"volumes_per_node": 5,
|
||||
"volumes_size": 10,
|
||||
"count": 1,
|
||||
"auto_security_group": True,
|
||||
"security_groups": ["g1", "g2"],
|
||||
@@ -274,8 +272,6 @@ class SaharaScenarioTestCase(test.ScenarioTestCase):
|
||||
"flavor_id": "test_flavor",
|
||||
"node_processes": ["p1"],
|
||||
"floating_ip_pool": floating_ip_pool_uuid,
|
||||
"volumes_per_node": 5,
|
||||
"volumes_size": 10,
|
||||
"count": 1,
|
||||
"auto_security_group": True,
|
||||
"security_groups": ["g1", "g2"],
|
||||
|
||||
Reference in New Issue
Block a user