ceph-ansible/roles
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
..
ceph-agent don't use "include" to include tasks 2018-09-27 17:53:40 +02:00
ceph-client client: change default pool size 2018-11-29 01:49:05 +00:00
ceph-common common: do not override ceph_release when ceph_repository is 'rhcs' 2019-02-21 13:03:16 +00:00
ceph-common-coreos don't use "include" to include tasks 2018-09-27 17:53:40 +02:00
ceph-config Set the default crush rule in ceph.conf 2019-03-14 14:48:03 +00:00
ceph-defaults Set the default crush rule in ceph.conf 2019-03-14 14:48:03 +00:00
ceph-docker-common validate: change default value for `radosgw_address` 2018-11-28 23:54:06 +01:00
ceph-facts Set the default crush rule in ceph.conf 2019-03-14 14:48:03 +00:00
ceph-fetch-keys ceph-fetch-keys: refact 2018-10-17 11:26:11 +00:00
ceph-handler handler: show unit logs on error 2018-11-27 12:44:15 +00:00
ceph-infra setup_ntp: call handler to disable ntpd if chronyd used 2019-02-15 09:09:36 +00:00
ceph-iscsi-gw iscsi: fix permission denied error 2019-02-11 16:17:44 +00:00
ceph-mds Fix uses of default(omit) with string concatenation 2019-02-08 11:01:11 +00:00
ceph-mgr Fix uses of default(omit) with string concatenation 2019-02-08 11:01:11 +00:00
ceph-mon Change docker_container parameter network to network_mode 2019-03-18 13:23:10 +00:00
ceph-nfs The nfs_ganesha_dev_apt_repo variable was set incorrect in task 2019-01-07 08:03:19 +00:00
ceph-osd ceph-osd: Install numactl package when needed 2019-03-12 08:14:47 +00:00
ceph-rbd-mirror rbd-mirror: enable ceph-rbd-mirror.target 2018-11-09 16:48:35 +01:00
ceph-restapi Change docker_container parameter network to network_mode 2019-03-18 13:23:10 +00:00
ceph-rgw Removed not needed mountpoint and removed ubuntu section 2019-02-28 12:31:23 +00:00
ceph-validate/tasks ceph-validate: fail if there's no ipaddr available in monitor_address_block subnet 2019-03-18 18:31:18 +00:00
ceph.ceph-common rollback previous change for ceph-common change 2016-03-02 18:44:36 +01:00
ceph.ceph-docker-common ceph-docker-common: add symlink to ceph.ceph-docker-common 2017-01-16 10:42:42 -06:00