From 36814db843df9e26cc9d2bc669851beaea61bbae Mon Sep 17 00:00:00 2001 From: Teresa Ho Date: Thu, 23 Nov 2023 15:31:12 -0500 Subject: [PATCH] Increase timeout for runtime manifest In management network reconfiguration for AIO-SX, the runtime manifest executed during host unlock could take more than five minutes to complete. This commit is to extend the timeout period from five minutes to eight minutes. Test Plan: PASS: AIO-SX subcloud mgmt network reconfiguration Story: 2010722 Task: 49133 Change-Id: I6bc0bacad86e82cc1385132f9cf10b56002f385e Signed-off-by: Teresa Ho --- mtce-common/src/common/nodeTimers.h | 1 + mtce/src/maintenance/mtcNodeHdlrs.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mtce-common/src/common/nodeTimers.h b/mtce-common/src/common/nodeTimers.h index f309566f..7cafe642 100755 --- a/mtce-common/src/common/nodeTimers.h +++ b/mtce-common/src/common/nodeTimers.h @@ -43,6 +43,7 @@ #define MTC_MINS_3 (180) #define MTC_MINS_4 (240) #define MTC_MINS_5 (300) +#define MTC_MINS_8 (480) #define MTC_MINS_10 (600) #define MTC_MINS_15 (900) #define MTC_MINS_20 (1200) diff --git a/mtce/src/maintenance/mtcNodeHdlrs.cpp b/mtce/src/maintenance/mtcNodeHdlrs.cpp index bf3569f9..a7ff4c12 100755 --- a/mtce/src/maintenance/mtcNodeHdlrs.cpp +++ b/mtce/src/maintenance/mtcNodeHdlrs.cpp @@ -501,7 +501,7 @@ int nodeLinkClass::enable_handler ( struct nodeLinkClass::node * node_ptr ) { if ( daemon_is_file_present(UNLOCK_READY_FILE) == false ) { - mtcTimer_start ( node_ptr->mtcTimer, mtcTimer_handler, MTC_MINS_5 ); + mtcTimer_start ( node_ptr->mtcTimer, mtcTimer_handler, MTC_MINS_8 ); mtcInvApi_update_task_now ( node_ptr, MTC_TASK_MANIFEST_APPLY ); this->unlock_ready_wait = true ; return (PASS);