From e9691ebd6775c221f14767250f5dcfc530ee14cb Mon Sep 17 00:00:00 2001 From: abikouo Date: Tue, 15 Jun 2021 14:58:00 +0200 Subject: [PATCH 1/2] add until loop --- molecule/default/tasks/gc.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/molecule/default/tasks/gc.yml b/molecule/default/tasks/gc.yml index aee5f3a865..9ba700df3f 100644 --- a/molecule/default/tasks/gc.yml +++ b/molecule/default/tasks/gc.yml @@ -46,6 +46,9 @@ wait: yes wait_timeout: 100 register: job + until: job.resources[0].status.phase == "Running" + retries: 5 + delay: 10 - name: Assert job's pod is running assert: From 441de3fe278331a386e9e0627f66abaf38fcd6c8 Mon Sep 17 00:00:00 2001 From: abikouo <79859644+abikouo@users.noreply.github.com> Date: Mon, 21 Jun 2021 17:57:26 +0200 Subject: [PATCH 2/2] Update gc.yml --- molecule/default/tasks/gc.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/molecule/default/tasks/gc.yml b/molecule/default/tasks/gc.yml index 9ba700df3f..81381f4bbc 100644 --- a/molecule/default/tasks/gc.yml +++ b/molecule/default/tasks/gc.yml @@ -90,6 +90,9 @@ wait: yes wait_timeout: 100 register: job + until: job.resources[0].status.phase == "Running" + retries: 5 + delay: 10 - name: Assert job's pod is running assert: @@ -132,6 +135,9 @@ wait: yes wait_timeout: 100 register: job + until: job.resources[0].status.phase == "Running" + retries: 5 + delay: 10 - name: Assert job's pod is running assert: