From e319325ed4360bf776e54cf15351dcb3b8043676 Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Mon, 13 Apr 2020 17:15:27 +0530 Subject: [PATCH] [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 --- tripleo_common/actions/deployment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tripleo_common/actions/deployment.py b/tripleo_common/actions/deployment.py index 4f740905d..331c9b146 100644 --- a/tripleo_common/actions/deployment.py +++ b/tripleo_common/actions/deployment.py @@ -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)