Bug 1715513

Summary: Installation of metrics store fails on template image upload
Product: Red Hat Enterprise Virtualization Manager Reporter: Ivana Saranova <isaranov>
Component: ovirt-engine-metricsAssignee: Shirly Radco <sradco>
Status: CLOSED ERRATA QA Contact: Ivana Saranova <isaranov>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.3.1CC: adevolder, aoconnor, aperotti, bugs, emarcus, gchakkar, guillaume.pavese, jcoscia, jortialc, lleistne, lsvaty, mgoldboi, mkalinin, omachace, rdlugyhe, rmcswain, schandle, sradco
Target Milestone: ovirt-4.3.5Keywords: Regression, ZStream
Target Release: 4.3.5Flags: lsvaty: testing_plan_complete-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-image-template-1.1.10-1.el7ev Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-15 13:29:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1717905    
Bug Blocks: 1679227, 1683157, 1686572, 1693784, 1695067, 1704721, 1716608, 1721480    

Description Ivana Saranova 2019-05-30 14:21:38 UTC
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:

Comment 3 Shirly Radco 2019-06-16 10:13:50 UTC
This was fixed in ovirt-ansible-image-template, it was a bug in ansible 2.8 that introduced this regression.

Comment 4 Sandro Bonazzola 2019-06-17 08:42:16 UTC
(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 ?

Comment 5 Sandro Bonazzola 2019-06-17 12:02:30 UTC
confirmed it is 1.1.10.
Don't we need to require it in ovirt-engine-metrics package spec file?

Comment 13 Ivana Saranova 2019-06-24 11:20:38 UTC
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

Comment 17 Eli Marcus 2019-07-25 09:48:26 UTC
*** Bug 1716608 has been marked as a duplicate of this bug. ***

Comment 21 errata-xmlrpc 2019-08-15 13:29:27 UTC
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

Comment 22 Daniel Gur 2019-08-28 13:12:51 UTC
sync2jira

Comment 23 Daniel Gur 2019-08-28 13:17:04 UTC
sync2jira