Bug 1458682 - If config.yml is missing , the Ansible script finishes with no error message that indicates an issue
Summary: If config.yml is missing , the Ansible script finishes with no error message ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-metrics
Classification: oVirt
Component: Generic
Version: 1.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.1.3
: 1.0.4.3
Assignee: Shirly Radco
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks: oVirt-Metrics-and-Logs 1456459
TreeView+ depends on / blocked
 
Reported: 2017-06-05 08:23 UTC by Shirly Radco
Modified: 2017-07-06 13:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-06 13:12:27 UTC
oVirt Team: Metrics
Embargoed:
rule-engine: ovirt-4.1+
lsvaty: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 76860 0 master MERGED Exit and notify the user config.yml is missing 2017-06-05 08:33:53 UTC

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


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