From 7be36f305107c0bfb4e403f5df4226635e34dffa Mon Sep 17 00:00:00 2001 From: Luke Short Date: Wed, 18 Mar 2020 14:03:34 -0400 Subject: [PATCH] config-download timeout should KILL the process. The timeout command defaults to using TERM which does not always ensure that it will end soon enough. The ansible-playbook command should end as soon as possible. Change-Id: I0f97772434040f04f9495239b9a432c1ac062555 Closes-Bug: #1867968 Signed-off-by: Luke Short --- tripleo_common/actions/ansible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tripleo_common/actions/ansible.py b/tripleo_common/actions/ansible.py index 0d0a09e69..ced195c01 100644 --- a/tripleo_common/actions/ansible.py +++ b/tripleo_common/actions/ansible.py @@ -450,7 +450,8 @@ class AnsiblePlaybookAction(base.TripleOAction): os.chmod(command_path, 0o750) if self.command_timeout: - command = ['timeout', str(self.command_timeout)] + command + command = ['timeout', '-s', 'KILL', + str(self.command_timeout)] + command if self.queue_name: zaqar = self.get_messaging_client(context)