diff --git a/whitebox_neutron_tempest_plugin/tests/scenario/base.py b/whitebox_neutron_tempest_plugin/tests/scenario/base.py index df97544..f327723 100644 --- a/whitebox_neutron_tempest_plugin/tests/scenario/base.py +++ b/whitebox_neutron_tempest_plugin/tests/scenario/base.py @@ -226,6 +226,8 @@ class BaseTempestWhiteboxTestCase(base.BaseTempestTestCase): return host def append_node_data(node, is_crc): + # Here we mean ansible controller node used by the ci-framework + # This controller is not a part of OSP and should be skipped if 'controller' in node: return if 'ocp' in node and not is_crc: @@ -238,13 +240,17 @@ class BaseTempestWhiteboxTestCase(base.BaseTempestTestCase): '~', '/home/{}'.format(WB_CONF.proxy_host_user))) node_key = hosts_data[node][key].split('/')[-1] node_ip = get_ocp_main_ip(hosts_data[node]['ansible_host']) + is_controller = True else: node_key = 'id_cifw_key' node_ip = hosts_data[node]['ansible_host'] + # Here we mean a node with running OSP control plane services + is_controller = ('ocp' in node) node_data = { 'ip': node_ip, 'user': hosts_data[node]['ansible_user'], - 'key': node_key} + 'key': node_key, + 'is_controller': is_controller} nodes.append(node_data) nodes = [] @@ -325,13 +331,14 @@ class BaseTempestWhiteboxTestCase(base.BaseTempestTestCase): host['client'].exec_command('hostname').strip()) host['full_name'] = cls.get_full_name( host['client'].exec_command('hostname -f').strip()) - # Here we are checking if there are controller-specific - # processes running on the node - output = host['client'].exec_command( - r"ps ax | grep 'rabbit\|galera' | grep -v grep || true") - host['is_controller'] = (output.strip() != "") host['is_compute'] = (host['full_name'] in compute_hosts) host['is_networker'] = (host['full_name'] in l3_agent_hosts) + if WB_CONF.openstack_type == 'devstack': + # Here we are checking if there are controller-specific + # processes running on the node + output = host['client'].exec_command( + r"ps ax | grep 'rabbit\|galera' | grep -v grep || true") + host['is_controller'] = (output.strip() != "") cls.nodes.append(host) @classmethod