-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ceph]Collection of logs present in /var/log/ceph folder #3809
Comments
Most of the ceph_ plugins, if not all, attempt to capture files in /var/log/ceph. It looks like you are checking in the plugin captures inside sos_commands, but the /var/log/ceph dir should be in the parent directory. Can you check if it was written there in your case? |
Thanks Jose Castillo
|
I have used this command and it is saying the ceph plugin is not supported without that it is not collecting /var/log/ceph logs
I removed and collected all-logs. In Previous comment I checked in /var/log instead of checking inside the sosreport
|
@AmarnatReddy you are trying to activate the
Can you try any of these directly, or just run 'sos report' without explicitly mentioning the plugin and see if you get the files? |
@jcastill
on the server /var/log/ceph contents
In sosreport /var/log contents
|
That's really strange. What do you get if you run:
|
It's big output. I trimmed for quick reference. Attaching complete log Log Reference:
|
Hi @jcastill Is there anything I am missing Regards, |
@AmarnatReddy I'm checking the logs now, and I'll let you know what I find soon. |
If I recall correctly my Ceph knowledge, you have one fsid,
Because the plugins ceph_mon, ceph_mgr, ceph_mds, and ceph_common were ran. So it's really interesting that it didn't capture that specific folder at all. Other plugins did manage to capture things from /var/log, i.e.:
I can see that the 'logs' plugin ran and captured the following:
Could you attach that file to this issue? |
Hi @jcastill
|
@AmarnatReddy I think I can see now what the problem is. See the file that we have inside the fsid's /var/log/ dir:
That specific log file is only gathered in the
But the ceph_osd plugin didn't run. These are the conditions that should activate the plugin:
Are there any of these files present, or are there any container running with the format described in the line |
Hi @jcastill , You are correct. I executed the However, we are still facing an issue where the cephadm.log from the /var/log/ceph folder is not being included in the collected logs. on the node
In Sos report :
We are properly see other logs
|
@AmarnatReddy you are right about /var/log/ceph/cephadm.log . I have to check with the ceph engineering team for another issue, so I'll bring this up, and I'll prepare a PR to collect this file with their feedback. |
Thanks @jcastill for looking into the issue |
Capture log files /var/log/ceph/cephadm.log via the ceph_common plugin. Related: sosreport#3809 Signed-off-by: Jose Castillo <[email protected]>
@AmarnatReddy thank you for reporting the issue and being so patient while we investigated! |
Hi @jcastill, Thank you for your support. Best regards, |
@AmarnatReddy the plugin ceph_common should run in all ceph nodes, as far as I know, so the case of no OSD daemons should be covered. |
Collection of logs present in /var/log/ceph folder
I see below commands getting executed and outputs getting collected with respect to ceph.
Is there a option to collect ceph logs present in /var/log/ceph folder
The text was updated successfully, but these errors were encountered: