Enables multiple roles for a given node

Adds a feature to support more than one role type
for a given node for node operations on controllers,
compute and storage

Change-Id: I2074ea6435c8f59a89b9439b8005896dcb1338cf
This commit is contained in:
Sharmin Choksey 2017-05-16 19:58:26 -07:00
parent 585d8ecdf9
commit 68f4a57abd
1 changed files with 3 additions and 2 deletions

View File

@ -264,7 +264,8 @@ class operator_scenario(base.Scenario):
for node in
self.os_node_info_obj
.get_host_list()
if node.role == "block_storage"]
if "block_storage" in
node.role.split()]
if storage_nodes_from_ansible_config:
cmd = (r"ceph -f json status")
@ -306,7 +307,7 @@ class operator_scenario(base.Scenario):
nodes_from_ansible_config = [node.name.lower()
for node in
self.os_node_info_obj.get_host_list()
if node.role == "compute"]
if "compute" in node.role.split()]
nova_hypervisor_list = self._get_nova_hypervior_list()
if nova_hypervisor_list[0] != 200:
return (404, ("Cannot get hypervisor list from "