Browse Source

[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)
changes/13/723313/1
Rabi Mishra 2 months ago
parent
commit
c782d68884
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tripleo_common/actions/deployment.py

+ 2
- 2
tripleo_common/actions/deployment.py 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)



Loading…
Cancel
Save