Openstack-Ansible Version pre-Upgrade: 14.1.0
Openstack-Ansible Version target: 14.2.8
Ubuntu 16.0.4
TASK [repo_build : Initialize local facts] *************************************
fatal: [ctr0002_repo_container-e20c637c]: FAILED! => {"failed": true, "msg": "The conditional check '('ansible_local' is not defined) or ('openstack_ansible' not in ansible_local) or ('repo_build' not in ansible_local['openstack_ansible']) or ('need_wheel_build' not in ansible_local['openstack_ansible']['repo_build'])' failed. The error was: error while evaluating conditional (('ansible_local' is not defined) or ('openstack_ansible' not in ansible_local) or ('repo_build' not in ansible_local['openstack_ansible']) or ('need_wheel_build' not in ansible_local['openstack_ansible']['repo_build'])): Unable to look up a name or access an attribute in template string ({% if ('ansible_local' is not defined) or ('openstack_ansible' not in ansible_local) or ('repo_build' not in ansible_local['openstack_ansible']) or ('need_wheel_build' not in ansible_local['openstack_ansible']['repo_build']) %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/etc/ansible/roles/repo_build/tasks/repo_build_prepare.yml': line 16, 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: Initialize local facts\n ^ here\n"}
In the file openstack-ansible-repo_build/tasks/repo_build_prepare.yml
It looks like the conditional has a minor problem, as it should check for ansible_local being not defined.
Instead, it checks if 'ansible_local' is not defined, which I think never is the case.
I removed the quotation marks around the variable name and the playbook successfully runs
Got the same issue to a different branch:
TASK [repo_build : Initialize local facts] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ***** roles/repo_ build/tasks/ repo_build_ prepare. yml:16 ansible' not in ansible_local) or ('repo_build' not in ansible_ local[' openstack_ ansible' ]) or ('need_wheel_build' not in ansible_ local[' openstack_ ansible' ]['repo_ build'] )' failed. The error was: error while evaluating conditional (('ansible_local' is not defined) or ('openstack_ ansible' not in ansible_local) or ('repo_build' not in ansible_ local[' openstack_ ansible' ]) or ('need_wheel_build' not in ansible_ local[' openstack_ ansible' ]['repo_ build'] )): Unable to look up a name or access an attribute in template string ({% if ('ansible_local' is not defined) or ('openstack_ ansible' not in ansible_local) or ('repo_build' not in ansible_ local[' openstack_ ansible' ]) or ('need_wheel_build' not in ansible_ local[' openstack_ ansible' ]['repo_ build'] ) %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/etc/ansible/ roles/repo_ build/tasks/ repo_build_ prepare. yml': line 16, 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: Initialize local facts\n ^ here\n"
task path: /etc/ansible/
Monday 02 October 2017 14:12:05 +0000 (0:00:00.904) 0:00:32.833 ********
fatal: [aio1]: FAILED! => {
"failed": true,
"msg": "The conditional check '('ansible_local' is not defined) or ('openstack_
}
NO MORE HOSTS LEFT ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* *
PLAY RECAP ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* **
aio1 : ok=34 changed=0 unreachable=0 failed=1
localhost : ok=1 changed=1 unreachable=0 failed=0