Merge "Don't use identity api to check nova availability"

This commit is contained in:
Zuul 2021-07-01 19:25:20 +00:00 committed by Gerrit Code Review
commit 9ae1818497
1 changed files with 8 additions and 6 deletions

View File

@ -48,18 +48,20 @@
# Set nodes to available # Set nodes to available
- name: Make nodes available - name: Make nodes available
os_baremetal_provide_node: os_baremetal_provide_node:
cloud: undercloud
node_uuid: "{{ node_uuids_provide }}" node_uuid: "{{ node_uuids_provide }}"
timeout: 1200 timeout: 1200
wait_for_bridge_mappings: true wait_for_bridge_mappings: true
- name: Detect nova service endpoint - name: Detect nova service endpoint
command: >- command: >-
openstack --os-cloud undercloud catalog show nova openstack compute service list
register: nova_catalog_show register: compute_service_list
failed_when: false
- name: Nova cell host discovery - name: Nova cell host discovery
when: "'service nova not found' not in nova_catalog_show.stderr" when:
- "'Could not find requested endpoint' not in compute_service_list.stderr"
- "'not found' not in compute_service_list.stderr"
block: block:
# Run cellv2 discovery of hosts # Run cellv2 discovery of hosts
- name: Run cell_v2 host discovery - name: Run cell_v2 host discovery
@ -69,7 +71,7 @@
- name: Wait for nova resources - name: Wait for nova resources
command: >- command: >-
openstack --os-cloud undercloud hypervisor show {{ item }} openstack hypervisor show {{ item }}
loop: "{{ node_uuids_provide }}" loop: "{{ node_uuids_provide }}"
changed_when: false changed_when: false
register: hypervisor_check register: hypervisor_check
@ -80,7 +82,7 @@
# Power off nodes the nodes # Power off nodes the nodes
- name: Power off nodes - name: Power off nodes
command: >- command: >-
openstack --os-cloud undercloud baremetal node power off {{ item }} openstack baremetal node power off {{ item }}
loop: "{{ node_uuids_provide }}" loop: "{{ node_uuids_provide }}"
async: 2400 async: 2400
poll: 0 poll: 0