From 7acf97c320e94610a75dbde5e80141ca56a22c3b Mon Sep 17 00:00:00 2001 From: Yong Li Date: Wed, 27 Nov 2019 13:33:56 +0800 Subject: Change the LED status for redundancy loss event EPS defines the redundancy loss as degraded state: Blinking green led. The log priority should be warn, to align with redfish event log. Tested: With two PSUs, disconnected one PSU to trigger this event, the green led will blink. Change-Id: I66f654f31af8cc6749741bbad4eae6491492cf35 Signed-off-by: Yong Li --- psu-manager/src/cold_redundancy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psu-manager/src/cold_redundancy.cpp b/psu-manager/src/cold_redundancy.cpp index 9a15a7a..8998771 100644 --- a/psu-manager/src/cold_redundancy.cpp +++ b/psu-manager/src/cold_redundancy.cpp @@ -925,7 +925,7 @@ void ColdRedundancy::checkRedundancyEvent() // previously system is in redundancy mode. sd_journal_send( "MESSAGE=%s", "Power Unit Redundancy Lost", - "PRIORITY=%i", LOG_ERR, "REDFISH_MESSAGE_ID=%s", + "PRIORITY=%i", LOG_WARNING, "REDFISH_MESSAGE_ID=%s", "OpenBMC.0.1.PowerUnitRedundancyLost", NULL); if (psuWorkable > 0) { @@ -938,7 +938,7 @@ void ColdRedundancy::checkRedundancyEvent() "OpenBMC.0.1.PowerUnitNonRedundantSufficient", NULL); association->set_property("Associations", - associationsNonCrit); + associationsWarning); } } if (psuWorkable == 0) -- cgit v1.2.3