Skip to content

Commit

Permalink
tests: update collect-logs.yml playbook
Browse files Browse the repository at this point in the history
- change `ceph -s` output to json-pretty.
- gather rgw logs
- add `health detail` command

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit b2ccc72)
  • Loading branch information
guits committed Sep 30, 2021
1 parent 4682334 commit 77f8d7d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/functional/collect-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
failed_when: false
changed_when: false
with_items:
- "-s -f json"
- "-s -f json-pretty"
- "osd tree"
- "osd dump"
- "pg dump"
- "versions"
- "health detail -f json-pretty"

- name: save ceph status to file
copy:
Expand All @@ -45,6 +46,12 @@
or
(groups.get(mgr_group_name, []) | length == 0 and inventory_hostname in groups.get(mon_group_name, []))

- name: get rgw log
shell: journalctl -l -u ceph-radosgw@rgw.{{ ansible_facts['hostname'] }}.{{ item.instance_name }} > /var/log/ceph/ceph-radosgw.{{ ansible_facts['hostname'] }}.{{ item.instance_name }}.log
changed_when: false
with_items: "{{ rgw_instances | default([]) }}"
when: inventory_hostname in groups.get(rgw_group_name, [])

- name: find ceph config file and logs
find:
paths:
Expand Down

0 comments on commit 77f8d7d

Please sign in to comment.