[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:
parent
80fb3ccab7
commit
c782d68884
|
@ -36,7 +36,7 @@ class OrchestrationDeployAction(base.TripleOAction):
|
||||||
|
|
||||||
def __init__(self, server_id, config, name, input_values=[],
|
def __init__(self, server_id, config, name, input_values=[],
|
||||||
action='CREATE', signal_transport='TEMP_URL_SIGNAL',
|
action='CREATE', signal_transport='TEMP_URL_SIGNAL',
|
||||||
timeout=300, group='script'):
|
timeout=600, group='script'):
|
||||||
super(OrchestrationDeployAction, self).__init__()
|
super(OrchestrationDeployAction, self).__init__()
|
||||||
self.server_id = server_id
|
self.server_id = server_id
|
||||||
self.config = config
|
self.config = config
|
||||||
|
@ -89,7 +89,7 @@ class OrchestrationDeployAction(base.TripleOAction):
|
||||||
|
|
||||||
swift_url = deployment_utils.create_temp_url(swift_client,
|
swift_url = deployment_utils.create_temp_url(swift_client,
|
||||||
self.name,
|
self.name,
|
||||||
self.timeout)
|
self.timeout / 60)
|
||||||
container_name, object_name = \
|
container_name, object_name = \
|
||||||
self._extract_container_object_from_swift_url(swift_url)
|
self._extract_container_object_from_swift_url(swift_url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue