Here's the tail of the ansible log:
{code} PLAY [metrics-apb playbook to unbind the application] **************************
TASK [ansible.kubernetes-modules : Install latest openshift client] ************ skipping: [localhost]
TASK [ansibleplaybookbundle.asb-modules : debug] ******************************* skipping: [localhost]
TASK [unbind-metrics-apb : Delete metrics-grdryn-test secret] ****************** changed: [localhost]
TASK [unbind-metrics-apb : set_fact] ******************************************* fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'metricsInstanceName'\n\nThe error appears to have been in '/opt/ansible/roles/unbind-metrics-apb/tasks/main.yml': line 8, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# Remove annotation from mobile client\n- set_fact:\n ^ here\n"}
PLAY RECAP ********************************************************************* localhost : ok=1 changed=1 unreachable=0 failed=1 {code}
I've just seen a _different_ unbind failure today:
{code} PLAY [metrics-apb playbook to unbind the application] **************************
TASK [ansible.kubernetes-modules : Install latest openshift client] ************ skipping: [localhost]
TASK [ansibleplaybookbundle.asb-modules : debug] ******************************* skipping: [localhost]
TASK [unbind-metrics-apb : Delete {{ prometheus_secret_name }}-{{ _apb_bind_creds.clientId }} secret] *** fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: '_apb_bind_creds' is undefined\n\nThe error appears to have been in '/opt/ansible/roles/unbind-metrics-apb/tasks/main.yml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Delete {{ prometheus_secret_name }}-{{ _apb_bind_creds.clientId }} secret\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
PLAY RECAP ********************************************************************* localhost : ok=0 changed=0 unreachable=0 failed=1 {code}
When there's any failure, it looks like it just retries indefinitely, until you delete the project (or fix the issue, if that's possible), so maybe one of these fails first, then leads to another issue in subsequent attempts? |
|