Skip to content

Commit

Permalink
Peer addition won't be skipped if remote is not in peer
Browse files Browse the repository at this point in the history
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 006998e)
  • Loading branch information
VasishtaShastry authored and guits committed Mar 26, 2021
1 parent f42ee9f commit af6abb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/ceph-rbd-mirror/tasks/configure_mirroring.yml
Expand Up @@ -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

0 comments on commit af6abb7

Please sign in to comment.