4255c3b644
TrivialFix Change-Id: Ia7bfa714521366818d848d924aa728819c97982a
932 lines
28 KiB
YAML
932 lines
28 KiB
YAML
---
|
|
- name: Checking free port for Aodh API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ aodh_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['aodh-api']
|
|
- enable_aodh | bool
|
|
|
|
- name: Checking free port for Aodh API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ aodh_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_aodh | bool
|
|
|
|
- name: Checking free port for Barbican API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ barbican_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['barbican-api']
|
|
- enable_barbican | bool
|
|
|
|
- name: Checking free port for Barbican API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ barbican_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_barbican | bool
|
|
|
|
- name: Checking free port for Ceilometer API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ ceilometer_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['ceilometer-api']
|
|
- enable_ceilometer | bool
|
|
|
|
- name: Checking free port for Ceilometer API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ ceilometer_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_ceilometer | bool
|
|
|
|
- name: Checking free port for Congress API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ congress_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['congress-api']
|
|
- enable_congress | bool
|
|
|
|
- name: Checking free port for Congress API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ congress_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_congress | bool
|
|
|
|
- name: Checking free port for Cinder API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ cinder_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['cinder-api']
|
|
- enable_cinder | bool
|
|
|
|
- name: Checking free port for Cinder API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ cinder_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_cinder | bool
|
|
|
|
- name: Checking free port for Cloudkitty API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ cloudkitty_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['cloudkitty-api']
|
|
- enable_cloudkitty | bool
|
|
|
|
- name: Checking free port for Cloudkitty API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ cloudkitty_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_cloudkitty | bool
|
|
|
|
- name: Checking free port for Etcd Peer
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ etcd_peer_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['etcd']
|
|
- enable_etcd | bool
|
|
|
|
- name: Checking free port for Etcd Client
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ etcd_client_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['etcd']
|
|
- enable_etcd | bool
|
|
|
|
- name: Checking free port for Glance API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ glance_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['glance-api']
|
|
- enable_glance | bool
|
|
|
|
- name: Checking free port for Glance API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ glance_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_glance | bool
|
|
|
|
- name: Checking free port for Glance Registry
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ glance_registry_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['glance-registry']
|
|
- enable_glance | bool
|
|
|
|
- name: Checking free port for Glance Registry HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ glance_registry_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_glance | bool
|
|
|
|
- name: Checking free port for Gnocchi API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ gnocchi_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['gnocchi-api']
|
|
- enable_gnocchi | bool
|
|
|
|
- name: Checking free port for Gnocchi API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ gnocchi_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_gnocchi | bool
|
|
|
|
- name: Checking free port for Kuryr
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ kuryr_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['compute']
|
|
- enable_kuryr | bool
|
|
|
|
- name: Checking free port for Sahara API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ sahara_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['sahara-api']
|
|
- enable_sahara | bool
|
|
|
|
- name: Checking free port for Sahara API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ sahara_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_sahara | bool
|
|
|
|
- name: Checking free port for HAProxy stats
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ haproxy_stats_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_haproxy | bool
|
|
|
|
- name: Checking free port for Heat API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ heat_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['heat-api']
|
|
- enable_heat | bool
|
|
|
|
- name: Checking free port for Heat API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ heat_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_heat | bool
|
|
|
|
- name: Checking free port for Heat API CFN
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ heat_api_cfn_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['heat-api-cfn']
|
|
- enable_heat | bool
|
|
|
|
- name: Checking free port for Heat API CFN HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ heat_api_cfn_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_heat | bool
|
|
|
|
- name: Checking free port for Horizon
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "80"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['horizon']
|
|
- enable_horizon | bool
|
|
|
|
- name: Checking free port for Horizon HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "80"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_horizon | bool
|
|
|
|
- name: Checking free port for Ironic
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ ironic_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['ironic-api']
|
|
- enable_ironic | bool
|
|
|
|
- name: Checking free port for Ironic HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ ironic_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_ironic | bool
|
|
|
|
- name: Checking free port for Influxdb Admin
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ influxdb_admin_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['influxdb']
|
|
- enable_influxdb | bool
|
|
|
|
- name: Checking free port for Influxdb Http
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ influxdb_http_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['influxdb']
|
|
- enable_influxdb | bool
|
|
|
|
- name: Checking free port for Keystone Admin
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ keystone_admin_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['keystone']
|
|
- enable_keystone | bool
|
|
|
|
- name: Checking free port for Keystone Admin HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ keystone_admin_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_keystone | bool
|
|
|
|
- name: Checking free port for Keystone Public
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ keystone_public_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['keystone']
|
|
- enable_keystone | bool
|
|
|
|
- name: Checking free port for Keystone Public HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ keystone_public_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_keystone | bool
|
|
|
|
- name: Checking free port for iscsi
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ iscsi_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['tgtd']
|
|
- enable_iscsid | bool
|
|
|
|
- name: Checking free port for Magnum API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ magnum_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['magnum-api']
|
|
- enable_magnum | bool
|
|
|
|
- name: Checking free port for Magnum API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ magnum_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_magnum | bool
|
|
|
|
- name: Checking free port for MariaDB
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ database_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['mariadb']
|
|
- enable_mariadb | bool
|
|
|
|
- name: Checking free port for MariaDB HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ database_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_mariadb | bool
|
|
|
|
- name: Checking free port for MariaDB WSREP
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ mariadb_wsrep_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['mariadb']
|
|
- enable_mariadb | bool
|
|
|
|
- name: Checking free port for MariaDB IST
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ mariadb_ist_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['mariadb']
|
|
- enable_mariadb | bool
|
|
|
|
- name: Checking free port for MariaDB SST
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ mariadb_sst_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['mariadb']
|
|
- enable_mariadb | bool
|
|
|
|
- name: Checking free port for Manila API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ manila_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['manila-api']
|
|
- enable_manila | bool
|
|
|
|
- name: Checking free port for Manila API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ manila_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_manila | bool
|
|
|
|
- name: Checking free port for Memcached
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ memcached_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['memcached']
|
|
- enable_memcached | bool
|
|
|
|
- name: Checking free port for Murano API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ murano_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['murano-api']
|
|
- enable_murano | bool
|
|
|
|
- name: Checking free port for Murano API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ murano_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_murano | bool
|
|
|
|
- name: Checking free port for Neutron Server
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ neutron_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['neutron-server']
|
|
- enable_neutron | bool
|
|
|
|
- name: Checking free port for Neutron Server HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ neutron_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_neutron | bool
|
|
|
|
- name: Checking free port for Nova API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ nova_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['nova-api']
|
|
- enable_nova | bool
|
|
|
|
- name: Checking free port for Nova API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ nova_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_nova | bool
|
|
|
|
- name: Checking free port for Nova Metadata
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ nova_metadata_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['nova-api']
|
|
- enable_nova | bool
|
|
|
|
- name: Checking free port for Nova Metadata HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ nova_metadata_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_nova | bool
|
|
|
|
- name: Checking free port for Nova NoVNC Proxy
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ nova_novncproxy_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['nova-novncproxy']
|
|
- enable_nova | bool
|
|
- nova_console == 'novnc'
|
|
|
|
- name: Checking free port for Nova NoVNC HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ nova_novncproxy_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_nova | bool
|
|
- nova_console == 'novnc'
|
|
|
|
- name: Checking free port for Nova Spice HTML5 Proxy
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ nova_spicehtml5proxy_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['nova-spicehtml5proxy']
|
|
- enable_nova | bool
|
|
- nova_console == 'spice'
|
|
|
|
- name: Checking free port for Nova Spice HTML5 HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ nova_spicehtml5proxy_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_nova | bool
|
|
- nova_console == 'spice'
|
|
|
|
- name: Checking free port for RabbitMQ
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ rabbitmq_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['rabbitmq']
|
|
- enable_rabbitmq | bool
|
|
|
|
- name: Checking free port for RabbitMQ Management
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ rabbitmq_management_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['rabbitmq']
|
|
- enable_rabbitmq | bool
|
|
|
|
- name: Checking free port for RabbitMQ Management HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ rabbitmq_management_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_rabbitmq | bool
|
|
|
|
- name: Checking free port for RabbitMQ Cluster
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ rabbitmq_cluster_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['rabbitmq']
|
|
- enable_rabbitmq | bool
|
|
|
|
- name: Checking free port for RabbitMQ EPMD
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ rabbitmq_epmd_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['rabbitmq']
|
|
- enable_rabbitmq | bool
|
|
|
|
- name: Check if all rabbit hostnames are resolvable
|
|
command: "getent ahostsv4 {{ hostvars[item]['ansible_hostname'] }}"
|
|
changed_when: false
|
|
register: rabbitmq_hostnames
|
|
with_items: "{{ groups['rabbitmq'] }}"
|
|
when: enable_rabbitmq | bool
|
|
|
|
- fail: msg="Hostname has to resolve to IP address of api_interface"
|
|
with_items: "{{ rabbitmq_hostnames.results }}"
|
|
when:
|
|
- "'{{ hostvars[item['item']]['ansible_' + hostvars[item['item']]['api_interface']]['ipv4']['address'] }}' not in '{{ item.stdout }}'"
|
|
- enable_rabbitmq | bool
|
|
|
|
- name: Checking free port for Mongodb
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ mongodb_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['mongodb']
|
|
- enable_mongodb | bool
|
|
|
|
- name: Checking free port for Mongodb Web
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ mongodb_web_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['mongodb']
|
|
- enable_mongodb | bool
|
|
|
|
- name: Checking free port for Mongodb HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ mongodb_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_mongodb | bool
|
|
|
|
- name: Checking free port for Kibana Server
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}"
|
|
port: "{{ kibana_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['kibana']
|
|
- enable_kibana | bool
|
|
|
|
- name: Checking free port for Rsync
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}"
|
|
port: "873"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['swift-object-server']
|
|
- enable_swift | bool
|
|
|
|
- name: Checking free port for Swift Object Server
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ swift_object_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['swift-object-server']
|
|
- enable_swift | bool
|
|
|
|
- name: Checking free port for Swift Account Server
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ swift_account_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['swift-account-server']
|
|
- enable_swift | bool
|
|
|
|
- name: Checking free port for Swift Container Server
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ swift_container_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['swift-container-server']
|
|
- enable_swift | bool
|
|
|
|
- name: Checking free port for Swift Proxy Server
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ swift_proxy_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['swift-proxy-server']
|
|
- enable_swift | bool
|
|
|
|
- name: Checking free port for Swift Proxy Server HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ swift_proxy_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_swift | bool
|
|
|
|
- name: Checking free port for RadosGW
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ rgw_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['ceph-rgw']
|
|
- enable_ceph_rgw | bool
|
|
|
|
- name: Checking free port for RadosGW HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ rgw_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_ceph_rgw | bool
|
|
|
|
- name: Checking free port for Grafana server
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ grafana_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['grafana']
|
|
- enable_grafana | bool
|
|
|
|
- name: Checking free port for Grafana server HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ grafana_server_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_grafana | bool
|
|
|
|
- name: Checking free port for Senlin API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ senlin_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['senlin-api']
|
|
- enable_senlin | bool
|
|
|
|
- name: Checking free port for Senlin API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ senlin_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_senlin | bool
|
|
|
|
- name: Checking free port for Mistral API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ mistral_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['mistral-api']
|
|
- enable_mistral | bool
|
|
|
|
- name: Checking free port for Mistral API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ mistral_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_mistral | bool
|
|
|
|
- name: Checking free port for Watcher API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ watcher_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['watcher-api']
|
|
- enable_watcher | bool
|
|
|
|
- name: Checking free port for Watcher API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ watcher_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_watcher | bool
|
|
|
|
- name: Checking free port for Searchlight API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ searchlight_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['searchlight-api']
|
|
- enable_searchlight | bool
|
|
|
|
- name: Checking free port for Searchlight API HAProxy
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ searchlight_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['haproxy']
|
|
- enable_searchlight | bool
|
|
|
|
- name: Checking the network_interface is present
|
|
fail: "msg='Please check the network_interface property - interface {{ network_interface }} not found'"
|
|
when: network_interface not in ansible_interfaces
|
|
|
|
- name: Checking the network_interface is active
|
|
fail: "msg='Please check the network_interface settings - interface {{ network_interface }} is not active'"
|
|
when: hostvars[inventory_hostname]['ansible_' + network_interface]['active'] != True
|
|
|
|
- name: Checking the network_interface configuration
|
|
fail: "msg='Please check the network_interface settings - interface {{ network_interface }} configuration missing'"
|
|
when: hostvars[inventory_hostname]['ansible_' + network_interface]['ipv4'] is not defined
|
|
|
|
- name: Checking the network_interface ip address configuration
|
|
fail: "msg='Please check the network_interface settings - interface {{ network_interface }} ip address problem'"
|
|
when: hostvars[inventory_hostname]['ansible_' + network_interface]['ipv4']['address'] is not defined
|
|
|
|
- name: Checking if kolla_internal_vip_address and kolla_external_vip_address are not pingable from any node
|
|
command: ping -c 3 {{ item }}
|
|
register: ping_output
|
|
changed_when: false
|
|
with_items:
|
|
- "{{ kolla_internal_vip_address }}"
|
|
- "{{ kolla_external_vip_address }}"
|
|
failed_when: ping_output.rc != 1
|
|
when: enable_haproxy | bool
|
|
|
|
- name: Checking if kolla_internal_vip_address is in the same network as network_interface on all nodes
|
|
command: ip -4 -o addr show dev {{ network_interface }}
|
|
register: ip_addr_output
|
|
changed_when: false
|
|
failed_when: "'169.254.' not in kolla_internal_vip_address and \
|
|
kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none"
|
|
when: enable_haproxy | bool
|