Merge "Fix prechecks of a vip address"

This commit is contained in:
Jenkins 2016-08-08 16:16:42 +00:00 committed by Gerrit Code Review
commit aa5864fc40

View File

@ -439,6 +439,7 @@
- "{{ kolla_internal_vip_address }}" - "{{ kolla_internal_vip_address }}"
- "{{ kolla_external_vip_address }}" - "{{ kolla_external_vip_address }}"
failed_when: ping_output.rc != 1 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 - 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 }} command: ip -4 -o addr show dev {{ network_interface }}
@ -446,3 +447,4 @@
changed_when: false changed_when: false
failed_when: "'169.254.' not in kolla_internal_vip_address and \ failed_when: "'169.254.' not in kolla_internal_vip_address and \
kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none" kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none"
when: enable_haproxy | bool