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 <john.kung@windriver.com>
This commit is contained in:
John Kung 2021-08-30 08:51:52 -05:00
parent d9e41cddb2
commit af0c87521a

View File

@ -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