Bug 1715513 - Installation of metrics store fails on template image upload
Summary: Installation of metrics store fails on template image upload
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-metrics
Version: 4.3.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.3.5
: 4.3.5
Assignee: Shirly Radco
QA Contact: Ivana Saranova
URL:
Whiteboard:
: 1716608 (view as bug list)
Depends On: 1717905
Blocks: 1679227 1683157 1686572 1693784 1695067 1704721 1716608 1721480
TreeView+ depends on / blocked
 
Reported: 2019-05-30 14:21 UTC by Ivana Saranova
Modified: 2020-08-03 15:34 UTC (History)
18 users (show)

Fixed In Version: ovirt-ansible-image-template-1.1.10-1.el7ev
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-15 13:29:27 UTC
oVirt Team: Metrics
Target Upstream Version:
Embargoed:
lsvaty: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ansible ansible issues 57351 0 'None' closed Regression when moving to ansible 2.8 when including a role that has a custom filter 2020-09-08 12:05:05 UTC
Red Hat Bugzilla 1716608 0 high CLOSED [Docs] Installation of metrics store fails on template image upload 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 4222751 0 None None None 2019-06-17 17:26:19 UTC
Red Hat Product Errata RHSA-2019:2499 0 None None None 2019-08-15 13:29:42 UTC
oVirt gerrit 100541 0 'None' MERGED Replace oVirt.image-template include with import 2020-09-08 12:05:05 UTC
oVirt gerrit 100908 0 'None' MERGED build: update spec with minimal version of required packages 2020-09-08 12:05:05 UTC

Internal Links: 1716608

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


Note You need to log in before you can comment on or make changes to this bug.