Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Filter computes with nova_host defined
Browse files Browse the repository at this point in the history
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 00a2223)
  • Loading branch information
rabi committed Nov 11, 2020
1 parent 55eafcb commit 15a196e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/nova/nova-az-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 15a196e

Please sign in to comment.