Merge "Fix the Nova SSH port prechecks missing"
This commit is contained in:
commit
9f56ce7571
@ -6,6 +6,7 @@
|
||||
- nova_novncproxy
|
||||
- nova_serialproxy
|
||||
- nova_spicehtml5proxy
|
||||
- nova_ssh
|
||||
- nova_libvirt
|
||||
- placement_api
|
||||
register: container_facts
|
||||
@ -75,6 +76,19 @@
|
||||
- nova_spicehtml5proxy.enabled | bool
|
||||
- inventory_hostname in groups[nova_spicehtml5proxy.group]
|
||||
|
||||
- name: Checking free port for Nova SSH
|
||||
vars:
|
||||
nova_ssh: "{{ nova_services['nova-ssh'] }}"
|
||||
wait_for:
|
||||
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
||||
port: "{{ nova_ssh_port }}"
|
||||
connect_timeout: 1
|
||||
state: stopped
|
||||
when:
|
||||
- container_facts['nova_ssh'] is not defined
|
||||
- nova_ssh.enabled | bool
|
||||
- inventory_hostname in groups[nova_ssh.group]
|
||||
|
||||
- name: Checking free port for Nova Placement API
|
||||
vars:
|
||||
placement_api: "{{ nova_services['placement-api'] }}"
|
||||
|
Loading…
Reference in New Issue
Block a user