Closed SaravanaStorageNetwork closed 6 years ago
Error attempting to update pod with last operation annotation. Missing key from environment: 'POD_NAME'
complete logs:
# apb version Version: apb-1.1.15
# docker run --rm --net=host -v $HOME/.kube:/opt/apb/.kube:z -u $UID docker.io/ansibleplaybookbundle/hello-world-apb provision --extra-vars 'namespace=hello-world' Status: Downloaded newer image for docker.io/ansibleplaybookbundle/hello-world-apb:latest + [[ provision --extra-vars namespace=hello-world == *\s\2\i\/\a\s\s\e\m\b\l\e* ]] + ACTION=provision + shift + playbooks=/opt/apb/actions + CREDS=/var/tmp/bind-creds + TEST_RESULT=/var/tmp/test-result + whoami + set +x + [[ -e /opt/apb/actions/provision.yaml ]] + [[ -e /opt/apb/actions/provision.yml ]] + ANSIBLE_ROLES_PATH=/etc/ansible/roles:/opt/ansible/roles + ansible-playbook /opt/apb/actions/provision.yml --extra-vars namespace=hello-world [WARNING]: Found variable using reserved name: name PLAY [hello-world-apb provision] *********************************************** TASK [ansibleplaybookbundle.asb-modules : debug] ******************************* skipping: [localhost] TASK [hello-world-apb : Update last operation] ********************************* fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error attempting to update pod with last operation annotation. Missing key from environment: 'POD_NAME'"} to retry, use: --limit @/opt/apb/actions/provision.retry PLAY RECAP ********************************************************************* localhost : ok=0 changed=0 unreachable=0 failed=1 + EXIT_CODE=2 + set +ex + '[' -f /var/tmp/test-result ']' + exit 2
Good catch. I had in mind to handle docker run when I updated this APB. What needs to happen, skip calls to last operation when the environment variables aren't present.
Error attempting to update pod with last operation annotation. Missing key from environment: 'POD_NAME'
complete logs: