]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
rbd-mirror: configure pool and peer
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 4 Sep 2019 18:35:20 +0000 (14:35 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 9 Sep 2019 16:05:56 +0000 (16:05 +0000)
commit3fded4b8ecfc175973be77096d271f8382048194
treec2bae9f3ba73e3c9eead756553bfd0efc7979bab
parent51f18f9076f208aa5e39cd20af661a54ddd623e7
rbd-mirror: configure pool and peer

The rbd mirror configuration was only available for non containerized
deployment and was also imcomplete.
We now enable the mirroring on the pool and add the remote peer in both
scenarios.

The default mirroring mode is set to 'pool' but can be configured via
the ceph_rbd_mirror_mode variable.

This commit also fixes an issue on the rbd mirror command if the ceph
cluster name isn't using the default value (ceph) due to a missing
--cluster parameter to the command.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1665877
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 7e5e21741eb0143e3d981dc1891253ad331d9753)
group_vars/rbdmirrors.yml.sample
roles/ceph-rbd-mirror/defaults/main.yml
roles/ceph-rbd-mirror/tasks/configure_mirroring.yml
roles/ceph-rbd-mirror/tasks/main.yml