Merge "Don't use rescue to skip cell actions" into stable/ussuri
This commit is contained in:
commit
046f58c9af
@ -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: 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
|
||||
|
Loading…
Reference in New Issue
Block a user