]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: Fixes rbd-mirror regression
authorTeoman ONAY <tonay@ibm.com>
Fri, 4 Aug 2023 12:37:39 +0000 (14:37 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 7 Aug 2023 15:21:37 +0000 (17:21 +0200)
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 <tonay@ibm.com>
infrastructure-playbooks/cephadm-adopt.yml

index 8cfbef8c76baa87fe4048a67b0e4cae723bfb50a..ba33bb8a1d41b87b34a11f8afc6dbad5bebfceda 100644 (file)
     - 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: