mirror of https://github.com/ceph/ceph-ansible.git
shrink-mds: use mds_to_kill_hostname instead
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>pull/5692/head
parent
8ed11ea3ee
commit
51c382677d
|
@ -78,9 +78,9 @@
|
||||||
tasks:
|
tasks:
|
||||||
# get rid of this as soon as "systemctl stop ceph-msd@$HOSTNAME" also
|
# get rid of this as soon as "systemctl stop ceph-msd@$HOSTNAME" also
|
||||||
# removes the MDS from the FS map.
|
# 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
|
when: containerized_deployment | bool
|
||||||
command: "{{ container_exec_cmd | default('') }} ceph tell mds.{{ mds_to_kill }} exit"
|
|
||||||
|
|
||||||
- name: get ceph status
|
- name: get ceph status
|
||||||
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} -s -f json"
|
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} -s -f json"
|
||||||
|
|
Loading…
Reference in New Issue