Add NonRecoverable property to Hardware Monitor's Redfish

This update adds 'NonRecoverable' sensor health property
to the Hardware Monitor's Redfish platform management
protocol support.

Test Plan:

PASS: Verify handling of Redfish NonRecoverable sensor
      ... using redfish
      ... switching between ipmi and redfish and back
PASS: Verify sensor model relearn over change of bmc protocol

Regression:

PASS: Verify sensor model relearn by command
PASS: Verify sensor suppression
PASS: Verify sensor alarm and degrade management
      ... as sensor events come and go
      ... on sensor suppression and unsuppression
PASS: Verify sensor monitoring regression test
PASS: Verify update as a patch (apply/remove)

Change-Id: I2770e63f4d44e269b4410f392707f3cd01e9a2cc
Closes-Bug: 1918152
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
This commit is contained in:
Eric MacDonald 2021-03-11 11:13:59 -05:00
parent 6cf5e84825
commit 4f7d82308f
2 changed files with 5 additions and 0 deletions

View File

@ -964,6 +964,10 @@ static int _parse_redfish_sensor_data( char * json_str_ptr, thread_info_type * i
{ {
strcpy(_sample_list[samples].status, "cr"); strcpy(_sample_list[samples].status, "cr");
} }
else if (!strcmp (health.data(), REDFISH_SEVERITY__NONRECOVERABLE ))
{
strcpy(_sample_list[samples].status, "nr");
}
else else
{ {
strcpy(_sample_list[samples].status, "na"); strcpy(_sample_list[samples].status, "na");

View File

@ -33,6 +33,7 @@
#define REDFISH_SEVERITY__GOOD "OK" #define REDFISH_SEVERITY__GOOD "OK"
#define REDFISH_SEVERITY__MAJOR "Warning" #define REDFISH_SEVERITY__MAJOR "Warning"
#define REDFISH_SEVERITY__CRITICAL "Critical" #define REDFISH_SEVERITY__CRITICAL "Critical"
#define REDFISH_SEVERITY__NONRECOVERABLE "NonRecoverable"
#define BMC_SENSOR_DEFAULT_UNIT_TYPE_TEMP "degrees" #define BMC_SENSOR_DEFAULT_UNIT_TYPE_TEMP "degrees"
#define BMC_SENSOR_DEFAULT_UNIT_TYPE_VOLT "Volts" #define BMC_SENSOR_DEFAULT_UNIT_TYPE_VOLT "Volts"