Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1687492

Summary: Metrics installation fails on not provided nic name
Product: [oVirt] ovirt-engine-metrics Reporter: Ivana Saranova <isaranov>
Component: GenericAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Ivana Saranova <isaranov>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: bugs, lleistne
Target Milestone: ovirt-4.3.3Flags: sradco: ovirt-4.3?
lleistne: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-metrics-1.2.1.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-16 13:58:34 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:    
Bug Blocks: 1631193    

Description Ivana Saranova 2019-03-11 15:33:24 UTC
Description of problem:
When installation metrics according to the new installation: https://gerrit.ovirt.org/#/c/97643/
a problem with not provided nic name occurs and blocks creation of bastion machine.

Version-Release number of selected component (if applicable):
ovirt-engine-metrics-1.2.1-0.0.master.20190306140206.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Edit /etc/ovirt-engine-metrics/config.yml.d/metrics-store-config.yml
2. Go to ovirt-engine-metrics cd /usr/share/ovirt-engine-metrics
3. Run ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml

Actual results:
http://pastebin.test.redhat.com/735120

Expected results:
Playbook does not fail on the task.

Additional info:
Problem seems to be with the utf-8 conversion in u'key_name' in template_render.

Comment 1 Ivana Saranova 2019-04-04 14:07:55 UTC
Steps to Reproduce:
1. Edit /etc/ovirt-engine-metrics/config.yml.d/metrics-store-config.yml
2. Go to ovirt-engine-metrics cd /usr/share/ovirt-engine-metrics
3. Run ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml

Result:
Nic name is provided and playbook does not fail on the task and ends successfully.

Verified in: 
ovirt-engine-4.2.8.5-0.1.el7ev.noarch
ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch

Also verified in:
ovirt-engine-4.3.3.1-0.1.el7.noarch
ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch

Comment 2 Sandro Bonazzola 2019-04-16 13:58:34 UTC
This bugzilla is included in oVirt 4.3.3 release, published on April 16th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.3 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.