crmsh icon indicating copy to clipboard operation
crmsh copied to clipboard

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

Open zzhou1 opened this issue 5 months ago • 1 comments

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

zzhou1 avatar Aug 26 '24 08:08 zzhou1