Description of problem: I tried to deploy OCP on RHV/oVirt, it works but the playbook itself fails with, this is to track this issue for OCP on RHV/oVirt itself: ---%>--- TASK [oVirt.vm-infra : Wait for VMs IP] **************************************************************************************************************************************************************************************************************************************** task path: /usr/share/ansible/roles/oVirt.vm-infra/tasks/vm_state_present.yml:107 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1539350992.74-143349631837496 `" && echo ansible-tmp-1539350992.74-143349631837496="` echo /root/.ansible/tmp/ansible-tmp-1539350992.74-143349631837496 `" ) && sleep 0' Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/ovirt/ovirt_vms_facts.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-19806gXM1aq/tmpfC7YxR TO /root/.ansible/tmp/ansible-tmp-1539350992.74-143349631837496/ovirt_vms_facts.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1539350992.74-143349631837496/ /root/.ansible/tmp/ansible-tmp-1539350992.74-143349631837496/ovirt_vms_facts.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1539350992.74-143349631837496/ovirt_vms_facts.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1539350992.74-143349631837496/ > /dev/null 2>&1 && sleep 0' fatal: [localhost]: FAILED! => { "msg": "The conditional check 'ip_cond' failed. The error was: template error while templating string: no filter named 'ovirtvmipv4'. String: {% if ovirt_vms | ovirtvmipv4 | length > 0 %} True {% else %} False {% endif %}" } TASK [oVirt.vm-infra : Logout from oVirt] ************************************************************************************************************************************************************************************************************************************** task path: /usr/share/ansible/roles/oVirt.vm-infra/tasks/main.yml:40 skipping: [localhost] => { "changed": false, "skip_reason": "Conditional result was False" } to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/ovirt/openshift-cluster/ovirt-vm-infra.retry PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************* localhost : ok=81 changed=5 unreachable=0 failed=1 ---%<--- according to omachace@ it is because "it cannot find filter ovirtvmipv4". see https://github.com/oVirt/ovirt-ansible-vm-infra/commit/b00367e07837c5637c6c4f483755f6331fa26576 Version-Release number of selected component (if applicable): openshift-ansible-3.11.16-1.git.0.4ac6f81.el7.noarch ovirt-ansible-image-template-1.1.7-1.el7ev.noarch ovirt-ansible-vm-infra-1.1.9-1.el7ev.noarch How reproducible: 100% Steps to Reproduce: 1. run playbooks/ovirt/openshift-cluster/ovirt-vm-infra.yml with 4.2.6 ovirt ansible rpms 2. 3. Actual results: the play creates vm but failed in the end Expected results: should finish without problem Additional info:
Even with updated RPMs of ovirt ansible roles, the playbook fails - in another failure - because of BZ1638816 (broken ansible 2.6 compatibility).
Workaround - use ovirt ansible RPMS > 1.9 and use ansible 2.7 on bastion host - this will cause playbooks/ovirt/openshift-cluster/ovirt-vm-infra.yml run finish successfully. After that, I would recommend downgrade of ansible back to 2.6 as this is version describe currently in official OCP docs.
Should work OK with ovirt-ansible-vm-infra-1.1.11, and any Ansible version >= 2.5. ovirt-ansible-vm-infra-1.1.11 will be released as part of 4.2.7.
The ovirt-openshift-extensions-ci container image is installing ovirt 4.2 release rpm for some reason it is not picking up ovirt-ansible-vm-infra 1.1.11
Obviously the rpm was updates but the container image was not recreated ever since the update. I'm spinning a build for the container. https://github.com/oVirt/ovirt-openshift-extensions/issues/73
This was a regression of oVirt.vm-infra role with ansible version 2.7 and the ovirt sdk 4.2. Now we use 2.7 and ovirt sdk 4.3 so the issue is not present any more.