]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Peer addition won't be skipped if remote is not in peer
authorVasishtaShastry <vipin.indiasmg@gmail.com>
Wed, 24 Mar 2021 15:47:56 +0000 (21:17 +0530)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 26 Mar 2021 20:24:59 +0000 (21:24 +0100)
rbd-mirroring is not configured as adding peer is getting skipped.
Peer addition should not get skipped if its not added already

Closes - https://bugzilla.redhat.com/show_bug.cgi?id=1942444

Signed-off-by: VasishtaShastry <vipin.indiasmg@gmail.com>
(cherry picked from commit 006998e804f803f3d3a6767403803a9cad1ed9b0)

roles/ceph-rbd-mirror/tasks/configure_mirroring.yml

index 07a1384fd1bc930e4c49c2eb44a7129469cec58d..34f25ca8ad784aabb5b96c12a8de5d0a0dbd38a3 100644 (file)
@@ -11,4 +11,4 @@
 - name: add a mirroring peer
   command: "{{ container_exec_cmd | default('') }} rbd --cluster {{ cluster }} --keyring /etc/ceph/{{ cluster }}.client.rbd-mirror.{{ ansible_facts['hostname'] }}.keyring --name client.rbd-mirror.{{ ansible_facts['hostname'] }} mirror pool peer add {{ ceph_rbd_mirror_pool }} {{ ceph_rbd_mirror_remote_user }}@{{ ceph_rbd_mirror_remote_cluster }}"
   changed_when: false
-  when: ceph_rbd_mirror_remote_user in mirror_peer.stdout
+  when: ceph_rbd_mirror_remote_user not in mirror_peer.stdout