From: Teoman ONAY Date: Fri, 4 Aug 2023 12:37:39 +0000 (+0200) Subject: cephadm-adopt: Fixes rbd-mirror regression X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=18cd35bad53231b9afdde8aec35c2b8a46c928e4;p=ceph-ansible.git cephadm-adopt: Fixes rbd-mirror regression 779523f86f4659283441ece8af2d4a4dbe8140b4 introduced a regression related to rbdmirrors tasks. They were executed while ceph_rbd_mirror_remot_* variables were not set. Signed-off-by: Teoman ONAY --- diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index 8cfbef8c7..ba33bb8a1 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -455,7 +455,8 @@ - name: store existing rbd mirror peers in monitor config store when: - ceph_rbd_mirror_configure | default(True) | bool - - ceph_rbd_mirror_remote_user is undefined + - ceph_rbd_mirror_remote_user is defined + - ceph_rbd_mirror_remote_cluster is defined block: - name: import ceph-defaults import_role: