Description of problem: When installing metrics store according to the documentation, the playbook fails on template image upload for not being able to find certain filter. When running the same role (image-template) outside the metrics installation playbook with a simple test playbook, the filter is found and task passes successfully. Version-Release number of selected component (if applicable): ovirt-engine-4.3.4.1-0.1.el7.noarch ovirt-engine-metrics-1.3.1-1.el7ev.noarch ansible-2.8.0-1.el7ae.noarch ovirt-ansible-image-template-1.1.10-0.1.master.20190515082200.el7.noarch How reproducible: Always Steps to Reproduce: 1. Prepare configuration files according to the documentation 2. Run the installation script ` ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml --ask-vault-pass ` 3. Check that task Image Upload was successful Actual results: TASK [oVirt.image-template : Image upload] ************************************************************************* task path: /usr/share/ansible/roles/ovirt.image-template/tasks/main.yml:7 [DEPRECATION WARNING]: evaluating create_openshift_bastion_vm as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. fatal: [localhost]: FAILED! => { "reason": "template error while templating string: no filter named 'ovirtvmipv4'. String: {{ ovirt_vms | ovirtvmipv4 }}" } Expected results: TASK [oVirt.image-template : Image upload] ************************************************************************* task path: /usr/share/ansible/roles/ovirt.image-template/tasks/main.yml:7 statically imported: /usr/share/ansible/roles/ovirt.image-template/tasks/empty.yml included: /usr/share/ansible/roles/ovirt.image-template/tasks/qcow2_image.yml for localhost Additional info:
This was fixed in ovirt-ansible-image-template, it was a bug in ansible 2.8 that introduced this regression.
(In reply to Shirly Radco from comment #3) > This was fixed in ovirt-ansible-image-template, it was a bug in ansible 2.8 > that introduced this regression. which version of ovirt-ansible-image-template? 1.1.10 ?
confirmed it is 1.1.10. Don't we need to require it in ovirt-engine-metrics package spec file?
Steps: 1. Prepare configuration files according to the documentation 2. Run the installation script ` ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml --ask-vault-pass ` 3. Check that task Image Upload was successful Result: Image Upload was successful. Verified in: ovirt-engine-4.3.4.3-0.1.el7.noarch ovirt-engine-metrics-1.3.2-1.el7ev.noarch ovirt-ansible-image-template-1.1.11-1.el7ev.noarch ovirt-ansible-vm-infra-1.1.18-1.el7ev.noarch
*** Bug 1716608 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:2499
sync2jira