Skip to content

Commit

Permalink
tests: collect mons and mgrs logs
Browse files Browse the repository at this point in the history
Signed-off-by: Seena Fallah <[email protected]>
(cherry picked from commit 779a13e)
  • Loading branch information
clwluvw committed May 17, 2024
1 parent 5c0b69a commit 65a9e0f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/functional/collect-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@
changed_when: false
ignore_errors: true

- name: Get mon log
ansible.builtin.shell: journalctl -l -u ceph-mon@{{ ansible_facts['hostname'] }} > /var/log/ceph/ceph-mon.{{ ansible_facts['hostname'] }}.log
changed_when: false
when: inventory_hostname in groups.get(mon_group_name, [])

- name: Get mds log
ansible.builtin.shell: journalctl -l -u ceph-mds@{{ ansible_facts['hostname'] }} > /var/log/ceph/ceph-mon.{{ ansible_facts['hostname'] }}.log
changed_when: false
when: inventory_hostname in groups.get(mds_group_name, [])

- name: Get mgr log
ansible.builtin.shell: journalctl -l -u ceph-mgr@{{ ansible_facts['hostname'] }} > /var/log/ceph/ceph-mgr.{{ ansible_facts['hostname'] }}.log
changed_when: false
Expand Down

0 comments on commit 65a9e0f

Please sign in to comment.