Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1938065

Summary: [GSS][DOC]Document the steps to collect ceph logs from multiple hosts via ceph-anisble.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Lijo Stephen Thomas <lithomas>
Component: DocumentationAssignee: Ranjini M N <rmandyam>
Status: CLOSED CURRENTRELEASE QA Contact: Ameena Suhani S H <amsyedha>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.2CC: asriram, kdreyer, rmandyam, vereddy
Target Milestone: ---   
Target Release: 4.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-16 13:40:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1966534    

Comment 3 Veera Raghava Reddy 2021-08-09 17:21:24 UTC
1.5. GATHERING LOGS FROM MULTIPLE HOSTS IN A CEPH CLUSTER USING ANSIBLE
Starting with Red Hat Ceph Storage 4.2, you can use ceph-ansible to gather logs from multiple hosts in a Ceph cluster. It captures etc/ceph and /var/log/ceph directories from the Ceph nodes. This playbook can be used to collect logs for a bare-metal and containerized storage cluster.

Prerequisites

A running Red Hat Ceph Storage cluster.
Root-level access to the nodes.
The ceph-ansible package is installed on the node.
Procedure

Log into the Ansible administration node as an ansible user.

Note
Ensure the node has adequate space to collect the logs from the hosts.

Navigate to /usr/share/ceph-ansible directory:

Example

[ansible@admin ~]# cd /usr/share/ceph-ansible
Run the Ansible playbook to gather the logs:

Example

ansible@admin ceph-ansible]$ ansible-playbook infrastructure-playbooks/gather-ceph-logs.yml -i hosts
The logs are stored in the /tmp directory of the Ansible node.