Bug 1251709

Summary: Update crash core file selection and error/warnings for kdump
Product: Red Hat Certification Program Reporter: brose
Component: redhat-certification-hardwareAssignee: brose
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: gnichols
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.7.1-20150809.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-03 13:16:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description brose 2015-08-09 01:56:09 UTC
Currently, all directories in the /var/crash directory are checked for their times, comparing them to that of the time recorded by the kdump test when it ran the first portion, prior to rebooting/panic.  The latest directory matching the naming convention to be created (taken from name that's generated when it's saved) is selected.  If that is outside of the maximum allowed time, it will error.

We are changing this in the following ways:

- When saving the crash core file, a UUID is generated and used to create the directory to look in when the second portion of the kdump test runs (upon restarting the panicked machine).  This will be unique per test run.
- We know that there should only be one directory one level down from the new UUID directory.  We will raise an error if more than one is detected.
- We no longer raise an error if the directory's created time (taken from directory name) is outside of the range previously permitted.  Instead, now, we will raise a warning and select the closest one (the only one in the directory, else it would error).

Comment 4 Brian Brock 2015-08-28 22:10:08 UTC
verified in redhat-certification-hardware-1.7.1-20150828.el7
Changed vmcore & crash directory's timestamp.  kdump test completed successfully.

Comment 6 errata-xmlrpc 2015-09-03 13:16:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1709.html