diff options
author | Chalapathi Venkataramashetty <chalapathix.venkataramashetty@intel.com> | 2020-08-19 22:50:30 +0300 |
---|---|---|
committer | Chalapathi Venkataramashetty <chalapathix.venkataramashetty@intel.com> | 2020-08-24 07:38:53 +0300 |
commit | 3cb3b116bb2842cfacaef60b896ff54f440891b8 (patch) | |
tree | 71077a0c00847b03f9c116a6a6198aeb2523cf65 /redfish-core/lib/update_service.hpp | |
parent | 80789c8e769b7439d72787bd620f28ebd5b14235 (diff) | |
download | bmcweb-3cb3b116bb2842cfacaef60b896ff54f440891b8.tar.xz |
update_service: add sufficient delay for fw object to get created
Add support to increase timeoutTimeSeconds to 10 secs to allow firmware
object to create successfully to proceed for firmware update.
Tested:
Redfish validator passed.
Updated the firmware using redfish for 16 times continuously.
POST: https://<BMC_IP>/redfish/v1/UpdateService/
with <BMC_signed_cap> binary file
firmware updated.
{
"@odata.id": "/redfish/v1/TaskService/Tasks/0",
"@odata.type": "#Task.v1_4_3.Task",
"Id": "0",
"TaskState": "Running",
"TaskStatus": "OK"
}
Signed-off-by: Chalapathi Venkataramashetty <chalapathix.venkataramashetty@intel.com>
Change-Id: If86862c0c6519b3591bfa7e04cbb1ff13659b0d5
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r-- | redfish-core/lib/update_service.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index 2aedf858dc..e3e6bbb2bd 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -259,7 +259,7 @@ static void softwareInterfaceAdded(std::shared_ptr<AsyncResp> asyncResp, static void monitorForSoftwareAvailable(std::shared_ptr<AsyncResp> asyncResp, const crow::Request& req, const std::string& url, - int timeoutTimeSeconds = 5) + int timeoutTimeSeconds = 10) { // Only allow one FW update at a time if (fwUpdateInProgress != false) |