ceph-ansible/roles/ceph-validate/tasks
Dimitri Savineau 46e8898093 ceph-validate: fail if there's no ipaddr available in monitor_address_block subnet
When using monitor_address_block to determine the ip address of the
monitor node, we need an ip address available in that cidr to be
present in the ansible facts (ansible_all_ipv[46]_addresses).
Currently we don't check if there's an ip address available during
the ceph-validate role.
As a result, the ceph-config role fails due to an empty list during
ceph.conf template creation but the error isn't explicit.

TASK [ceph-config : generate ceph.conf configuration file] *****
fatal: [0]: FAILED! => {"msg": "No first item, sequence was empty."}

With this patch we will fail before the ceph deployment with an
explicit failure message.

Resolves: rhbz#1673687

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 5c39735be5)
2019-03-18 18:31:18 +00:00
..
check_devices.yml Extends check_devices tasks to non-collocated an lvm-batch scenarios 2019-03-01 04:06:57 +00:00
check_eth_mon.yml Convert interface names to underscores 2019-02-28 19:02:32 +00:00
check_eth_rgw.yml Convert interface names to underscores 2019-02-28 19:02:32 +00:00
check_ipaddr_mon.yml ceph-validate: fail if there's no ipaddr available in monitor_address_block subnet 2019-03-18 18:31:18 +00:00
check_iscsi.yml igw: valid client CHAP settings. 2018-10-01 18:23:03 +02:00
check_rgw_multisite.yml validate: remove check on rgw_multisite_endpoint_addr definition 2018-10-30 14:00:28 +01:00
check_system.yml validate: allow stable-3.2 to run with ansible 2.4 2018-11-16 08:57:00 +00:00
main.yml ceph-validate: fail if there's no ipaddr available in monitor_address_block subnet 2019-03-18 18:31:18 +00:00