From af0c87521a73972e74138c97cb919a8d30596497 Mon Sep 17 00:00:00 2001 From: John Kung Date: Mon, 30 Aug 2021 08:51:52 -0500 Subject: [PATCH] Update start_import_load RPC timeout During DC upgrades orchestration, it was observed on full load import that the start_load_import RPC operation may timeout in the subcloud. This commit updates the RPC timeout from default timeout 60 to 180 seconds ensure sufficient time for the RPC operation to complete. Test Plan: PASS: batch subcloud upgrades on simplex subclouds, meta load PASS: load import query exception handling and retry PASS: batch subcloud upgrades on duplex subclouds, full load PASS: load-import operation on SystemController to dc-vault Change-Id: I3c4edec0203d5a351436bdc312b63a337cbe6c6e Partial-Bug: 1942075 Signed-off-by: John Kung --- sysinv/sysinv/sysinv/sysinv/conductor/rpcapi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sysinv/sysinv/sysinv/sysinv/conductor/rpcapi.py b/sysinv/sysinv/sysinv/sysinv/conductor/rpcapi.py index d256a66f71..62b19cc8f3 100644 --- a/sysinv/sysinv/sysinv/sysinv/conductor/rpcapi.py +++ b/sysinv/sysinv/sysinv/sysinv/conductor/rpcapi.py @@ -1276,7 +1276,7 @@ class ConductorAPI(sysinv.openstack.common.rpc.proxy.RpcProxy): ihost_id=ihost_id)) def start_import_load(self, context, path_to_iso, path_to_sig, - import_active=False): + import_active=False, timeout=180): """Synchronously, mount the ISO and validate the load for import :param context: request context. @@ -1284,13 +1284,15 @@ class ConductorAPI(sysinv.openstack.common.rpc.proxy.RpcProxy): :param path_to_sig: the file path of the iso's detached signature on this host :param import_active: boolean allow import of active load + :param timeout: rpc call timeout in seconds :returns: the newly create load object. """ return self.call(context, self.make_msg('start_import_load', path_to_iso=path_to_iso, path_to_sig=path_to_sig, - import_active=import_active)) + import_active=import_active), + timeout=timeout) def import_load(self, context, path_to_iso, new_load): """Asynchronously, import a load and add it to the database