From 25744be5ea28a6dbcccf906ec4441b1da835edbf Mon Sep 17 00:00:00 2001 From: Sawan Choudhary Date: Wed, 17 Apr 2019 05:19:44 -0700 Subject: [PATCH] Exclude ironic computes from node_check test Change-Id: I0bc232ed96f54ec8f192d3ff8b38c435a7ad9721 --- cloudpulse/openstack/api/nova_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloudpulse/openstack/api/nova_api.py b/cloudpulse/openstack/api/nova_api.py index e0359c6..1ded0af 100644 --- a/cloudpulse/openstack/api/nova_api.py +++ b/cloudpulse/openstack/api/nova_api.py @@ -24,8 +24,9 @@ class NovaHealth(object): hypervisors = self.novaclient.hypervisors.list() except (ClientException, Exception) as e: return (400, e.message, []) - hypervisor_names = [node.hypervisor_hostname for node in hypervisors - if node.state == "up"] + hypervisor_names = [str(node.hypervisor_hostname) for node in + hypervisors if node.state == "up" and + node.hypervisor_type.lower() == 'qemu'] return (200, "success", hypervisor_names) def nova_service_list(self):