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

Bug 1458682

Summary: If config.yml is missing , the Ansible script finishes with no error message that indicates an issue
Product: [oVirt] ovirt-engine-metrics Reporter: Shirly Radco <sradco>
Component: GenericAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.3CC: bugs, lsvaty, stirabos
Target Milestone: ovirt-4.1.3Flags: rule-engine: ovirt-4.1+
lsvaty: testing_ack+
Target Release: 1.0.4.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-06 13:12: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:    
Bug Blocks: 1402901, 1456459    

Description Shirly Radco 2017-06-05 08:23:34 UTC
Description of problem:
If config.yml is missing , the Ansible script, configure_ovirt_machines_for_metrics.sh finishes with no error message that indicates an issue, even-though it is mandatory.

Version-Release number of selected component (if applicable):
1.0.3

How reproducible:
100%

Steps to Reproduce:
1.run configure_ovirt_machines_for_metrics.sh before and after the fix when there is no config.yml file
2.
3.

Actual results:
No error message, but script fails.

Expected results:
Should result in an error message to indicate what should be fixed.

Additional info:

Comment 1 Lukas Svaty 2017-06-22 09:41:34 UTC
ovirt-engine-metrics-1.0.4.2-1.el7ev.noarch

[root@ls-engine1 ovirt-engine-metrics]# /usr/share/ovirt-engine-metrics/setup/ansible/configure_ovirt_machines_for_metrics.sh 
FATAL: /etc/ovirt-engine-metrics/config.yml is missing. Copy and amend /etc/ovirt-engine-metrics/config.yml.example 
[root@ls-engine1 ovirt-engine-metrics]# /usr/share/ovirt-engine-metrics/setup/ansible/configure_ovirt_hosts_for_metrics.sh 
FATAL: /etc/ovirt-engine-metrics/config.yml is missing. Copy and amend /etc/ovirt-engine-metrics/config.yml.example