From 15a196e79f7cff7fb219c7bb9e26c790e1e8717b Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Tue, 3 Nov 2020 19:09:14 +0530 Subject: [PATCH] Filter computes with nova_host defined When adding hosts to aggregates/availability zones, use the nodes that have nova_host defined. This would exclude blacklisted nodes. Change-Id: I85599dbb985a9d45e2e7587170c39aa2940ca939 (cherry picked from commit 00a22232fc3fc4c16f4c4cea820f76b47ad744a4) --- deployment/nova/nova-az-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/nova/nova-az-config.yaml b/deployment/nova/nova-az-config.yaml index c4ff907502..b923c484f9 100644 --- a/deployment/nova/nova-az-config.yaml +++ b/deployment/nova/nova-az-config.yaml @@ -82,7 +82,7 @@ outputs: os_nova_host_aggregate: name: {get_attr: [NovaComputeAvailabilityZoneValue, value]} availability_zone: {get_attr: [NovaComputeAvailabilityZoneValue, value]} - hosts: "{{ groups['nova_compute'] | default([]) | map('extract', hostvars, 'nova_host') | list }}" + hosts: "{{ groups['nova_compute'] | default([]) | map('extract', hostvars, 'nova_host') | select('defined') | list }}" auth: username: admin password: {get_param: AdminPassword}