From 16a6f7af8ff8033417f60bf161da8ff9ba461240 Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Thu, 4 Oct 2018 12:16:27 -0500 Subject: [PATCH] Gate: Tolerate failures in log collection tasks This PS updates the gate tasks to tollerate failures in the post run log collection tasks. Change-Id: I8b982112955f4112e8107a7eae35680aa68c87ab Signed-off-by: Pete Birley --- roles/gather-prom-metrics/tasks/main.yaml | 2 ++ roles/helm-release-status/tasks/main.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/roles/gather-prom-metrics/tasks/main.yaml b/roles/gather-prom-metrics/tasks/main.yaml index c05e4eb35..6ba724d9a 100644 --- a/roles/gather-prom-metrics/tasks/main.yaml +++ b/roles/gather-prom-metrics/tasks/main.yaml @@ -28,6 +28,7 @@ done args: executable: /bin/bash + ignore_errors: True - name: "Get prometheus metrics from tiller-deploy" shell: |- @@ -35,6 +36,7 @@ curl tiller-deploy.kube-system:44135/metrics >> "{{ logs_dir }}"/prometheus/kube-system-tiller-deploy.txt args: executable: /bin/bash + ignore_errors: True - name: "Downloads logs to executor" synchronize: diff --git a/roles/helm-release-status/tasks/main.yaml b/roles/helm-release-status/tasks/main.yaml index 8c07cdf9d..0e7a651b5 100644 --- a/roles/helm-release-status/tasks/main.yaml +++ b/roles/helm-release-status/tasks/main.yaml @@ -22,6 +22,7 @@ args: executable: /bin/bash register: helm_releases + ignore_errors: True - name: "Gather get release status for helm charts" shell: |-