[stable-only] Pass timeout in mins to create_temp_url()
We seem to be deleting the container and object created for tempurl before the tempurl expiry(300mins). Also in certain deployments (possibly with high load), it has been noticed that servers respond after the 5mins timeout. Let's double the default timeout to 10mins. Closes-Bug: #1872446 Change-Id: I7d25f866461f5ba16793a1509d5093f8bf366270
This commit is contained in:
parent
d36c759e70
commit
e319325ed4
|
@ -38,7 +38,7 @@ class OrchestrationDeployAction(base.TripleOAction):
|
|||
|
||||
def __init__(self, server_id, config, name, input_values=[],
|
||||
action='CREATE', signal_transport='TEMP_URL_SIGNAL',
|
||||
timeout=300, group='script'):
|
||||
timeout=600, group='script'):
|
||||
super(OrchestrationDeployAction, self).__init__()
|
||||
self.server_id = server_id
|
||||
self.config = config
|
||||
|
@ -89,7 +89,7 @@ class OrchestrationDeployAction(base.TripleOAction):
|
|||
|
||||
swift_url = deployment_utils.create_temp_url(swift_client,
|
||||
self.name,
|
||||
self.timeout)
|
||||
self.timeout / 60)
|
||||
container_name, object_name = \
|
||||
self._extract_container_object_from_swift_url(swift_url)
|
||||
|
||||
|
|
Loading…
Reference in New Issue