summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Li <yong.b.li@linux.intel.com>2019-11-27 08:33:56 +0300
committerLi, Yong B <yong.b.li@intel.com>2019-12-03 03:01:09 +0300
commit7acf97c320e94610a75dbde5e80141ca56a22c3b (patch)
treee91f1e85e988bc81c68a3e1a3b4cc4df79406f50
parente1a147f6fddf3ef7fd35278fd187a1575c79a75f (diff)
downloadprovingground-7acf97c320e94610a75dbde5e80141ca56a22c3b.tar.xz
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 <yong.b.li@linux.intel.com>
-rw-r--r--psu-manager/src/cold_redundancy.cpp4
1 files 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)