Skip to content

Enable the etcd script to work with sosreport #3

@oarribas

Description

@oarribas

This issue is to enable the etcd scripts that currently work with must-gather to work also with a sosreport.

Currently, the scripts for finding information about etcd in the logs uses the path to the files in a must-gather structure [1] [2] [3] (and maybe also in other places).

In a sosreport, the etcd logs are in the directory sos_commands/crio/containers/. To check the exact etcd container log there, it's needed to search for "etcd" in the sos_commands/crio/crictl_ps file, get the ID from the first column, and find the file with that ID:

 $ find sos_commands/crio/containers/ -name "*xxxxxxxx*"
 sos_commands/crio/containers/crictl_logs_-t_xxxxxxxxbcdefghijklmn0123456789

That file contains the etcd logs.

[1] https://github.com/peterducai/etcd-tools/blob/main/must-gather-analyzer.sh#L203-L210
[2] https://github.com/peterducai/etcd-tools/blob/main/must-gather-analyzer.sh#L332-L344
[3] https://github.com/peterducai/etcd-tools/blob/main/etcd-mg.sh#L229-L233

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions