]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
shrink-mds: use mds_to_kill_hostname instead
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 18 Aug 2020 18:35:17 +0000 (20:35 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 18 Aug 2020 19:09:57 +0000 (15:09 -0400)
When using fqdn in inventory host file, this task will fail because the
mds is registered with its shortname.

It means we must use `mds_to_kill_hostname` in this task.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1869837
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 51c382677dfa5db8fc39ca9c3c4898e017f3c189)

infrastructure-playbooks/shrink-mds.yml

index 8190aa9d683363ebc725dd1414b1e0d32ddabaaa..6f5cdc733085dd3ad3acc68c7a86b663aee3b747 100644 (file)
@@ -78,9 +78,9 @@
   tasks:
     # get rid of this as soon as "systemctl stop ceph-msd@$HOSTNAME" also
     # removes the MDS from the FS map.
-    - name: exit mds if it the deployment is containerized
+    - name: exit mds when containerized deployment
+      command: "{{ container_exec_cmd | default('') }} ceph tell mds.{{ mds_to_kill_hostname }} exit"
       when: containerized_deployment | bool
-      command: "{{ container_exec_cmd | default('') }} ceph tell mds.{{ mds_to_kill }} exit"
 
     - name: get ceph status
       command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} -s -f json"