Skip to content
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

crm report: improve error handling on the faulty pacemaker.log #1523

Open
zzhou1 opened this issue Aug 26, 2024 · 1 comment
Open

crm report: improve error handling on the faulty pacemaker.log #1523

zzhou1 opened this issue Aug 26, 2024 · 1 comment

Comments

@zzhou1
Copy link
Contributor

zzhou1 commented Aug 26, 2024

Came across a surprising error message down below [1].

  1. Probably to ignore ZERO or corrupted .xz file?
  2. Probably to include uncompressed files too?
  3. Let the error message better to add the faulty node name

[1]

15sp6-3:~ # crm report -f 5M
ERROR: When reading file "/var/log/pacemaker/pacemaker.log-20240415.xz": Compressed file ended before the end-of-stream marker was reached

15sp6-4:~ # l /var/log/pacemaker/pacemaker.log*

-rw-rw---- 1 hacluster haclient 36584 Apr 6 22:57 /var/log/pacemaker/pacemaker.log-20240407.xz
-rw-rw---- 1 hacluster haclient 6556780 Apr 15 10:17 /var/log/pacemaker/pacemaker.log-20240415
-rw-rw---- 1 hacluster haclient 0 Apr 15 10:17 /var/log/pacemaker/pacemaker.log-20240415.xz
-rw-rw---- 1 hacluster haclient 17064 Apr 15 18:29 /var/log/pacemaker/pacemaker.log-20240416.xz

@liangxin1300
Copy link
Collaborator

Came across a surprising error message down below [1].

  1. Probably to ignore ZERO or corrupted .xz file?
  2. Probably to include uncompressed files too?

Both 1 and 2 are exactly what the current code does

  1. Let the error message better to add the faulty node name

-rw-rw---- 1 hacluster haclient 36584 Apr 6 22:57 /var/log/pacemaker/pacemaker.log-20240407.xz
-rw-rw---- 1 hacluster haclient 6556780 Apr 15 10:17 /var/log/pacemaker/pacemaker.log-20240415
-rw-rw---- 1 hacluster haclient 0 Apr 15 10:17 /var/log/pacemaker/pacemaker.log-20240415.xz
-rw-rw---- 1 hacluster haclient 17064 Apr 15 18:29 /var/log/pacemaker/pacemaker.log-20240416.xz

How does your pacemaker.log have a date suffix? Not sure this format pacemaker.log can be collected by crm report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants