Bug 1580989

Summary: [RFE] Add watchdog plugin for sosreport
Product: Red Hat Enterprise Linux 7 Reporter: Reid Wahl <nwahl>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav HradĂ­lek <mhradile>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.5CC: agk, bmr, gavin, mhradile, nwahl, plambri, salmy, sbradley
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sos-3.6-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:31:52 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:
Attachments:
Description Flags
Proposed watchdog.py plugin
none
test case with defaults
none
test case with non-default log directory
none
test case with missing watchdog.conf
none
Proposed watchdog.py plugin
none
test case with defaults
none
test case with non-default log directory
none
test case with missing watchdog.conf none

Description Reid Wahl 2018-05-21 23:09:24 UTC
1. Proposed title of this feature request

Add watchdog plugin for sosreport


--------------------

2. Who is the customer behind the request?

Red Hat internal


--------------------

3. What is the nature and description of the request?

Add a plugin to gather configurations and logs for the watchdog service.


--------------------

4. Why does the customer need this? (List the business requirements here)

This will assist support in providing RCA for why a reboot occurred or, conversely, why an expected reboot did not occur after cluster SCSI fencing.


--------------------

5. How would the customer like to achieve this? (List the functional requirements here)

Collect /etc/watchdog.conf, /etc/watchdog.d/, and the contents of the log directory configured in /etc/watchdog.conf (default: /var/log/watchdog).


--------------------

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

Run a sosreport on a node with watchdog installed and some contents in /var/log/watchdog. Confirm that all the required files are in the resulting sosreport.

Configure log-dir to something other than /var/log/watchdog and repeat.


--------------------

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?

No

--------------------

8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?

No

--------------------

9. Is the sales team involved in this request and do they have any additional input?

No

--------------------

10. List any affected packages or components.

sos

--------------------

11. Would the customer be able to assist in testing this functionality if implemented?

Yes

Comment 4 Reid Wahl 2018-05-22 05:17:11 UTC
Created attachment 1439844 [details]
Proposed watchdog.py plugin

Comment 5 Reid Wahl 2018-05-22 05:20:58 UTC
Created attachment 1439845 [details]
test case with defaults

Comment 6 Reid Wahl 2018-05-22 05:21:35 UTC
Created attachment 1439846 [details]
test case with non-default log directory

Comment 7 Reid Wahl 2018-05-22 05:22:03 UTC
Created attachment 1439847 [details]
test case with missing watchdog.conf

Comment 8 Reid Wahl 2018-05-22 07:13:26 UTC
Created attachment 1439875 [details]
Proposed watchdog.py plugin

Comment 9 Reid Wahl 2018-05-22 07:14:10 UTC
Created attachment 1439877 [details]
test case with defaults

Comment 10 Reid Wahl 2018-05-22 07:14:40 UTC
Created attachment 1439878 [details]
test case with non-default log directory

Comment 11 Reid Wahl 2018-05-22 07:15:09 UTC
Created attachment 1439879 [details]
test case with missing watchdog.conf

Comment 12 Reid Wahl 2018-05-22 07:16:20 UTC
Created upstream PR:
https://github.com/sosreport/sos/pull/1305

Comment 13 Pavel Moravec 2018-05-22 07:49:16 UTC
Thanks for the PR and/or patch that speeds up a lot of things.

Comment 18 errata-xmlrpc 2018-10-30 10:31:52 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://access.redhat.com/errata/RHEA-2018:3144