]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-facts: use last ipv6 address for mon/rgw
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 5 Apr 2019 19:04:45 +0000 (15:04 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 9 Apr 2019 04:17:05 +0000 (06:17 +0200)
commitfd4b0ec7eb4502eb246b84c1fefa213ae04df151
treee53d692af47d60d2dc4a3ceecc03cfaed6bf388f
parent4c3e77d8690a7be4fb89f7292c51f8644faaeafa
ceph-facts: use last ipv6 address for mon/rgw

When using monitor_address_block or radosgw_address_block variables
to configure the mon/rgw address we're getting the first ip address
from the ansible facts present in that cidr.
When there's VIP on that network the first filter could return the
wrong value.
This seems to affect only IPv6 setup because the VIP addresses are
added to the ansible facts at the beginning of the list. This is the
opposite (at the end) when using IPv4.
This causes the mon/rgw processes to bind on the VIP address.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1680155
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-facts/tasks/set_monitor_address.yml
roles/ceph-facts/tasks/set_radosgw_address.yml