Bug 1035774

Summary: cluster module needs to pass --from to crm_report
Product: Red Hat Enterprise Linux 6 Reporter: Bryn M. Reeves <bmr>
Component: sosAssignee: Bryn M. Reeves <bmr>
Status: CLOSED ERRATA QA Contact: David Kutálek <dkutalek>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.5CC: agk, aglotov, bmr, dkutalek, fholec, gavin, jbrassow, jruemker
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-2.2-48.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 07:22:41 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:
Bug Depends On:    
Bug Blocks: 1085731, 1085732    
Attachments:
Description Flags
Pass a --from parameter when calling crm_report none

Description Bryn M. Reeves 2013-11-28 12:58:26 UTC
Description of problem:
sosreport attempts to collect data using the pacemaker crm_report tool however this does not collect any data unless given '--from "YYYY-MM-DD HH:MM:SS" to specify a start time:

# cat rhel6-clu1-pm-2013112812091385640584/sos_commands/cluster/crm_report_-S_--dest_.tmp.rhel6-clu1-pm-2013112812091385640584.s 
rhel6-clu1-pm:  ERROR: Not sure what to do, no tests or time ranges to extract


Version-Release number of selected component (if applicable):
sos-2.2-47.el6

How reproducible:
100%

Steps to Reproduce:
1. run sosreport on a pacemaker cluster
2. inspect sos_commands/cluster/ in the generated tarball


Actual results:
No output tarball/directory

Expected results:
crm_report output present in cluster output directory

Additional info:

Comment 1 Bryn M. Reeves 2014-01-09 17:38:38 UTC
Created attachment 847744 [details]
Pass a --from parameter when calling crm_report

Comment 2 Bryn M. Reeves 2014-01-09 17:39:54 UTC
The patch in comment #1 fixes this by defaulting to NOW-72hrs. A new option, 'crm_from' is also added to allow the user to override this with a valid "YYYY-MM-DD HH:MM:SS" date string if required.

Comment 11 errata-xmlrpc 2014-10-14 07:22:41 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.

http://rhn.redhat.com/errata/RHBA-2014-1528.html