Fix the Network Gateway Validation

The network gateway validation currently breaks if the undercloud.conf
file doesn't exist, due to the missing ``network_gateway`` value.

The validation uses the ignore_missing flag on the undercloud conf
reader, but fails to set its own default for the network gateway value.

This patch adds this default value.

Closes-Bug: #1732468

Change-Id: I47710721323a36616b42455206f779b6f7dda60d
This commit is contained in:
Florian Fuchs 2017-11-08 21:10:17 +00:00
parent bcbc953aa2
commit 7de584bfe5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
undercloud_conf_path={{ tripleo_undercloud_conf_file }}
ignore_missing=true
- name: "Test network_gateway if different from local_ip"
icmp_ping: host={{ undercloud_conf.DEFAULT.network_gateway }}
icmp_ping: host="{{ undercloud_conf.DEFAULT.network_gateway | default('0.0.0.0') }}"
when: >
"undercloud_conf.DEFAULT.local_ip | default('0.0.0.0') | ipaddr('address')"
!=