Increase timeout before logging PEL when OCC sensors unavailable
Existing code waits up to 5 minutes for the OCC active sensors PDRs to
be available. If not available after 5 minutes, a BD8D2685 PEL will get
logged and occ-control will continue to wait for the PDRs.
This change will increase that timeout to 40 minutes.
Change-Id: Idfffd03d731bd35a0f5d1ba7fe04e2f635444d74
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/occ_manager.cpp b/occ_manager.cpp
index 7905600..5007682 100644
--- a/occ_manager.cpp
+++ b/occ_manager.cpp
@@ -218,12 +218,12 @@
instance)
.c_str());
tracedSensorWait = true;
- // Make sure traces are not throttled
#ifdef PLDM
+ // Make sure traces are not throttled
pldmHandle->setTraceThrottle(false);
// Start timer to throttle pldm traces when timer
// expires
- throttleTraceTimer->restartOnce(5min);
+ throttleTraceTimer->restartOnce(40min);
#endif
}
#ifdef PLDM
@@ -1368,8 +1368,8 @@
#ifdef PLDM
// Called when throttleTraceTimer expires.
-// If this timer expires, that indicates there is still no confirmed OCC status
-// which will trigger pldm traces to be throttled.
+// If this timer expires, that indicates there are no OCC active sensor PDRs
+// found which will trigger pldm traces to be throttled and PEL to be created
void Manager::throttleTraceExpired()
{
if (utils::isHostRunning())