From: Bartek Grzybowski Date: Thu, 11 Feb 2021 11:06:55 +0000 (+0100) Subject: Update 'helm deploy' failure criteria X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=8fdadad54aa08b6c585549b74d1a8323eb751691;p=oom%2Foffline-installer.git Update 'helm deploy' failure criteria Contrary to helm v2, helm v3 prints regular output to stderr hence stderr output presence can no longer be used as failure criteria. Since 'deploy' plugin (for any helm release) prints a list of charts that failed to deploy at the end of it's run, it's output is used to detect deployment failure. Change-Id: I340e4e1a5be0949d866ddedfb49c0d23a48e67cf Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski --- diff --git a/ansible/roles/application/tasks/install.yml b/ansible/roles/application/tasks/install.yml index 883e2aa6..2db88631 100644 --- a/ansible/roles/application/tasks/install.yml +++ b/ansible/roles/application/tasks/install.yml @@ -53,4 +53,4 @@ {{ helm_extra_install_options | map(attribute='opt') | join(' ') }} changed_when: true # when executed its a changed type of action register: helm_install - failed_when: helm_install.stderr + failed_when: "'FAILED' in (helm_install.stdout | upper()) or helm_install.rc != 0"