aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhubingbing <1392607554@qq.com>2016-09-28 03:29:55 +0000
committerzhubingbing <1392607554@qq.com>2016-09-28 03:29:55 +0000
commit300c2bd3cd513cdf5c42e9c023b9605892d3d219 (patch)
tree7f211bc2420d609795b426ba58f37a986080f9d2
parent622c88ec99c537fec3bd66d913b82ce3462e8a3a (diff)
downloadkolla-300c2bd3cd513cdf5c42e9c023b9605892d3d219.tar.gz
kolla-300c2bd3cd513cdf5c42e9c023b9605892d3d219.zip
add etcd to precheck
add etcd client port and etcd peer port to precheck TrivialFix Change-Id: Iac10d82b77c7b38a472e0bea9f1e73c36db775b9
-rw-r--r--ansible/roles/prechecks/tasks/port_checks.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/prechecks/tasks/port_checks.yml b/ansible/roles/prechecks/tasks/port_checks.yml
index 6c741cd8a..a7fd11b9e 100644
--- a/ansible/roles/prechecks/tasks/port_checks.yml
+++ b/ansible/roles/prechecks/tasks/port_checks.yml
@@ -63,6 +63,22 @@
state: stopped
when: inventory_hostname in groups['haproxy']
+- 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']
+
+- 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']
+
- name: Checking free port for Glance API
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"