]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fixes failure of cephfs configuration using --limit
authorVasishtaShastry <vipin.indiasmg@gmail.com>
Mon, 18 Nov 2019 09:49:17 +0000 (15:19 +0530)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 20 Nov 2019 14:41:38 +0000 (09:41 -0500)
Configuration of cephfs with an existing cluster using --limit used to fail
at different tasks while running with site-docker.yml
This commit addresses both of those tasks

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1773489
Signed-off-by: VasishtaShastry <vipin.indiasmg@gmail.com>
(cherry picked from commit 72c43cc5d9052455f37414f7cd4fba1e37f99ef0)

roles/ceph-mds/tasks/common.yml
roles/ceph-mds/tasks/create_mds_filesystems.yml

index c81988b04e2ec480d5f72f4c77db69eee2a3f848..ddfc78f39b59bac621a517d5a0aed449e4293912 100644 (file)
@@ -11,7 +11,7 @@
     - /var/lib/ceph/mds/{{ cluster }}-{{ mds_name }}
 
 - name: get keys from monitors
-  command: "{{ hostvars[groups.get(mon_group_name)[0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} auth get {{ item.name }}"
+  command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} auth get {{ item.name }}"
   register: _mds_keys
   with_items:
     - { name: "client.bootstrap-mds", path: "/var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring", copy_key: true }
@@ -32,4 +32,4 @@
   with_items: "{{ _mds_keys.results }}"
   when:
     - cephx | bool
-    - item.item.copy_key | bool
\ No newline at end of file
+    - item.item.copy_key | bool
index 1bfb4d81e86d79ebb76ab64f90ba6bb778aaffd2..3e22a047e82f6a232e704ec79c82ef0d0afc4055 100644 (file)
@@ -23,7 +23,7 @@
       block:
         - name: create filesystem pools
           command: >
-            {{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }}
+            {{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }}
             osd pool create {{ item.name }}
             {{ item.pg_num | default(osd_pool_default_pg_num) }}
             {{ item.pgp_num | default(item.pg_num) | default(osd_pool_default_pg_num) }}