Merge "Ignore ironic nodes when registering compute nodes"

This commit is contained in:
Zuul 2018-03-05 18:26:46 +00:00 committed by Gerrit Code Review
commit 8f5eae25f3
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
- name: list hypervisors in overcloud
shell: |
source {{ overcloud_rc }}
openstack hypervisor list -f json | jq -r -c '.[] | .["Hypervisor Hostname"]'
openstack hypervisor list -f json | jq -r -c '.[] | select(.["Hypervisor Type"] | contains("ironic") | not) | .["Hypervisor Hostname"]'
register: hypervisors
- name: hosts running nova-compute