[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
(cherry picked from commit e319325ed4)
This commit is contained in:
Rabi Mishra 2020-04-13 17:15:27 +05:30
parent a3f3367dce
commit 471bbf7554
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,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)