Merge "Update start_import_load RPC timeout"

This commit is contained in:
Zuul 2021-09-03 17:14:44 +00:00 committed by Gerrit Code Review
commit 623ae40a31

View File

@ -1276,7 +1276,7 @@ class ConductorAPI(sysinv.openstack.common.rpc.proxy.RpcProxy):
ihost_id=ihost_id)) ihost_id=ihost_id))
def start_import_load(self, context, path_to_iso, path_to_sig, 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 """Synchronously, mount the ISO and validate the load for import
:param context: request context. :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 :param path_to_sig: the file path of the iso's detached signature on
this host this host
:param import_active: boolean allow import of active load :param import_active: boolean allow import of active load
:param timeout: rpc call timeout in seconds
:returns: the newly create load object. :returns: the newly create load object.
""" """
return self.call(context, return self.call(context,
self.make_msg('start_import_load', self.make_msg('start_import_load',
path_to_iso=path_to_iso, path_to_iso=path_to_iso,
path_to_sig=path_to_sig, 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): def import_load(self, context, path_to_iso, new_load):
"""Asynchronously, import a load and add it to the database """Asynchronously, import a load and add it to the database