From e76ad346d8a011c63157f977a29e72aee048f092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Jeanneret?= Date: Fri, 20 Nov 2020 13:25:20 +0100 Subject: [PATCH] [Ussuri/Train] Check mode doesn't work for async tasks In order to get a successful "check" run of the ansible generated content (via config-download), we have to ignore the async tasks. Since the affected async tasks have been removed in V cycle, this patch affects only U and T. Change-Id: I0bc8c398650e5d3e3f5b244cc516fcefd0d3aa4a Closes: rhbz#1823875 Related-Bug: #1874141 (cherry picked from commit b8ec72926c381377c453ef22f048989365d759b6) --- common/deploy-steps-tasks.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/deploy-steps-tasks.yaml b/common/deploy-steps-tasks.yaml index b619ccbae5..b4b81f512a 100644 --- a/common/deploy-steps-tasks.yaml +++ b/common/deploy-steps-tasks.yaml @@ -161,6 +161,7 @@ when: enable_paunch|bool block: - name: Start containers for step {{ step }} using paunch + check_mode: false async: 3600 poll: 0 environment: @@ -179,6 +180,7 @@ - container_startup_configs - name: Wait for containers to start for step {{ step }} using paunch + check_mode: false async_status: jid: "{{ start_containers_async_result.ansible_job_id }}" register: start_containers_outputs @@ -189,6 +191,7 @@ - container_startup_configs - name: "Debug output for task: Start containers for step {{ step }}" + check_mode: false debug: var: start_containers_outputs.stdout_lines | default([]) | union(start_containers_outputs.stderr_lines | default([])) when: start_containers_outputs.rc is defined