Incorrect information in 'crash.info' of collected logs

Bug #2038608 reported by Poornima Y N
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Poornima Y N

Bug Description

  In 'crash.info' of collected logs of 22.12, it shows the contents of '/var/lib/kdump' rather than '/var/crash'. And there is not 'var/crash/' directory in collected logs.

--------------------------------------------------------------------
Tue 19 Sep 2023 03:45:03 PM UTC : : find /var/lib/kdump
--------------------------------------------------------------------
/var/lib/kdump
/var/lib/kdump/latest_sysctls-5.10.0-6-rt-amd64
/var/lib/kdump/initrd.img-5.10.0-6-rt-amd64
/var/lib/kdump/initrd.img
/var/lib/kdump/vmlinuz
--------------------------------------------------------------------
Tue 19 Sep 2023 03:45:03 PM UTC : : rsync -a --include=*.txt --include=*/ --exclude=* /var/lib/kdump /scratch/controller-0_20230919.154313/var/
--------------------------------------------------------------------
--------------------------------------------------------------------
Tue 19 Sep 2023 03:45:03 PM UTC : : ls -lrtd /var/lib/kdump/*
--------------------------------------------------------------------
lrwxrwxrwx 1 root root 17 Sep 11 12:16 /var/lib/kdump/initrd.img-5.10.0-6-rt-amd64 -> /boot/1/initramfs
-rw-r--r-- 1 root root 234 Sep 19 15:01 /var/lib/kdump/latest_sysctls-5.10.0-6-rt-amd64
lrwxrwxrwx 1 root root 31 Sep 19 15:01 /var/lib/kdump/vmlinuz -> /boot/vmlinuz-5.10.0-6-rt-amd64
lrwxrwxrwx 1 root root 43 Sep 19 15:01 /var/lib/kdump/initrd.img -> /var/lib/kdump/initrd.img-5.10.0-6-rt-amd64
--------------------------------------------------------------------
Tue 19 Sep 2023 03:45:03 PM UTC : : md5sum /var/lib/kdump/*
--------------------------------------------------------------------
6874f993f68ae017ac8136f02d35e523 /var/lib/kdump/initrd.img

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to utilities (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/utilities/+/897516

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to utilities (master)

Reviewed: https://review.opendev.org/c/starlingx/utilities/+/897516
Committed: https://opendev.org/starlingx/utilities/commit/942d1d032f6e3372df0536748b25de2379eee28a
Submitter: "Zuul (22348)"
Branch: master

commit 942d1d032f6e3372df0536748b25de2379eee28a
Author: Poornima Y N <email address hidden>
Date: Fri Oct 6 02:46:11 2023 -0400

    Correct folder path for kernel crash dir

    The debian collect crash plugin points to the wrong
    folder path /var/lib/kdump.This update corrects that
    by pointing to /var/crash.

    Test Plan:
    pass: Latest master build pass
    pass: Contents of crash.info are collected from
          /var/crash
    Pass: Execute below commands to generate kernel panic
          sudo -i
          # enable all sysrq features
          echo 1 >/proc/sysrq-trigger
          # Crash Dump by NULL pointer dereference
          echo c >/proc/sysrq-trigger
          Above command will generate a kernel panic,
          the system will reboot, the crashdump file will
          be generated under /var/log/crash
          Verify same using collectd logs after the system
          comes up.
          *.tar.gz file under /var/log/crash should have
          dmesg file.

    Closes-Bug: 2038608

    Change-Id: I68896455639eaf372672d0cc3030b4fbb4c7f503
    Signed-off-by: Poornima Y N <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.9.0 stx.tools
Changed in starlingx:
importance: Undecided → Medium
assignee: nobody → Poornima Y N (pyn1)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.