Merge "Don't use rescue to skip cell actions" into stable/ussuri

This commit is contained in:
Zuul 2020-09-23 01:06:29 +00:00 committed by Gerrit Code Review
commit 046f58c9af
1 changed files with 7 additions and 10 deletions

View File

@ -53,14 +53,14 @@
timeout: 1200
wait_for_bridge_mappings: true
- name: Nova cell host discovery
block:
- name: Detect nova service endpoint
command: >-
openstack --os-cloud undercloud catalog show nova
register: nova_catalog_show
failed_when: "'service nova not found' in nova_catalog_show.stderr"
- name: Detect nova service endpoint
command: >-
openstack --os-cloud undercloud catalog show nova
register: nova_catalog_show
- name: Nova cell host discovery
when: "'service nova not found' not in nova_catalog_show.stderr"
block:
# Run cellv2 discovery of hosts
- name: Run cell_v2 host discovery
command: podman exec nova_api /bin/nova-manage cell_v2 discover_hosts --verbose
@ -76,9 +76,6 @@
until: hypervisor_check is success
delay: 30
retries: 30
rescue:
- debug:
msg: 'Nova endpoint not found, skipping cell host discovery'
# Power off nodes the nodes
- name: Power off nodes