Bug 1920947

Summary: [RFE] fence_redfish: Add diag action
Product: Red Hat Enterprise Linux 8 Reporter: Reid Wahl <nwahl>
Component: fence-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: cluster-maint, mjuricek, sbradley
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.5   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: fence-agents-4.2.1-71.el8 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 17:35:30 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Reid Wahl 2021-01-27 09:43:23 UTC
Description of problem:

Add a diag action similar to the one used with fence_ipmilan. This action should send an NMI, which can cause the system to panic and dump a vmcore if the kernel tunables are set appropriately.

Hopefully, this will only require adding `'diag': "Nmi"` to the action dict and adding "diag" to the device_opt list.

Reference:
  - http://redfish.dmtf.org/schemas/DSP2046_2020.3.html#redfish.dmtf.org/schemas/v1/ComputerSystem.json|details|ResetType

I do not have an environment with which to test fence_redfish.

-----

Version-Release number of selected component (if applicable):

fence-agents-redfish-4.2.1-53.el8_3.1

-----

How reproducible:

Always

-----

Steps to Reproduce:
1. Run `fence_redfish` with valid credentials and the `-o diag` option.

-----

Actual results:

2021-01-27 01:41:38,956 ERROR: Failed: Unrecognised action 'diag'

2021-01-27 01:41:38,957 ERROR: Please use '-h' for usage

-----

Expected results:

fence_redfish successfully sends an NMI to the target system.

Comment 6 Dean Jansa 2021-04-08 17:06:14 UTC
ON_QA bug without Verified:Tested should be in the MODIFIED state.

Comment 11 Oyvind Albrigtsen 2021-05-07 08:36:24 UTC
Patch to add missing diag logic: https://github.com/ClusterLabs/fence-agents/pull/407

Comment 15 errata-xmlrpc 2021-11-09 17:35:30 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 (fence-agents bug fix and enhancement update), 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/RHBA-2021:4148