Pass monitor_address_block to ceph-ansible for mon_host
authorGiulio Fidente <gfidente@redhat.com>
Tue, 8 Aug 2017 21:18:23 +0000 (23:18 +0200)
committerEmilien Macchi <emilien@redhat.com>
Sat, 12 Aug 2017 11:50:46 +0000 (11:50 +0000)
The ip address which clients and other nodes use to connect to the
monitors is derived from the monitor_interface parameter unless
a monitor_address or monitor_address_block is given (to set mon_host
into ceph.conf); this change adds setting for monitor_address_block to
match the public_network so that clients attempt to connect to the mons
on the appropriate network.

Change-Id: I7187e739e9f777eab724fbc09e8b2c8ddedc552d
Closes-Bug: #1709485

docker/services/ceph-ansible/ceph-base.yaml

index 1468415..85fe060 100644 (file)
@@ -142,6 +142,7 @@ outputs:
           ceph_docker_image_tag: {str_split: [':', {get_param: DockerCephDaemonImage}, 1]}
           containerized_deployment: true
           public_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
+          monitor_address_block: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
           cluster_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
           user_config: true
           ceph_stable: true