Bug 1523289 - [RFE] Create a role that will list to the admin which hosts are not configured for metrics
Summary: [RFE] Create a role that will list to the admin which hosts are not configure...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-metrics
Classification: oVirt
Component: RFEs
Version: 1.0.7.1
Hardware: All
OS: All
medium
medium
Target Milestone: ovirt-4.4.1
: ---
Assignee: Shirly Radco
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On: 1514927
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-07 16:28 UTC by Lukas Svaty
Modified: 2020-08-12 00:36 UTC (History)
7 users (show)

Fixed In Version: rhv-4.4.0-29
Doc Type: Enhancement
Doc Text:
With this update, you can check the list of hosts that are not configured for metrics, that is, those hosts on which the Collectd and Rsyslog/Fluentd services are not running. First, run the playbook 'manage-ovirt-metrics-services.yml' by entering: ---- # /usr/share/ovirt-engine-metrics/configure_ovirt_machines_for_metrics.sh --playbook=manage-ovirt-metrics-services.yml ---- Then, check the file `/etc/ovirt-engine-metrics/hosts_not_configured_for_metrics`.
Clone Of:
Environment:
Last Closed: 2020-08-05 06:25:25 UTC
oVirt Team: Metrics
Embargoed:
dfediuck: ovirt-4.4?
rule-engine: planning_ack?
sbonazzo: devel_ack+
rule-engine: testing_ack?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 104571 0 master MERGED List hosts that collectors are not running on 2020-08-12 00:33:42 UTC

Description Lukas Svaty 2017-12-07 16:28:30 UTC
Description of problem:
Once the metrics are deployed on the engine, it is not being provisioned again. We should be able to notify the admin of ovirt that in case he added new hosts to the datacenter and forgot to rerun metrics playbook, that some of the hosts are unconfigured. Preferably by a webadmin event.

Also, it might be good to check regularly fluentd/collectd is running on all hosts and engine.

Comment 1 Shirly Radco 2017-12-12 08:04:50 UTC
New hosts should be configured during host deploy.

To check regularly fluentd/collectd is running on all hosts and engine user can set cron job that will run the manage_services role and start the services if needed.


Yaniv, is documentation on how to do that is enough?

Comment 2 Yaniv Lavi 2017-12-19 12:25:07 UTC
(In reply to Shirly Radco from comment #1)
> New hosts should be configured during host deploy.
> 
> To check regularly fluentd/collectd is running on all hosts and engine user
> can set cron job that will run the manage_services role and start the
> services if needed.
> 
> 
> Yaniv, is documentation on how to do that is enough?

Should be good enough.

Comment 3 Yaniv Kaul 2018-02-26 12:32:24 UTC
Please add a small playbook that goes over all oVirt hosts and checks if they are already configured or not (lets check configuration and that services are up).

Comment 4 Sandro Bonazzola 2019-01-28 09:44:17 UTC
This bug has not been marked as blocker for oVirt 4.3.0.
Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.

Comment 8 Shirly Radco 2020-06-21 11:55:46 UTC
Step for testing:

1. Run the playbook 'manage-ovirt-metrics-services.yml' by running:

/usr/share/ovirt-engine-metrics/configure_ovirt_machines_for_metrics.sh --playbook=manage-ovirt-metrics-services.yml

2. Check file /etc/ovirt-engine-metrics/hosts_not_configured_for_metrics

Comment 9 Guilherme Santos 2020-07-11 13:27:40 UTC
Verified on:
ovirt-engine-4.4.1-0.1.el8ev.noarch
ovirt-engine-metrics-1.4.1.1-1.el8ev.noarch

Steps:
1. have metrics running and configured
2. logged in one of the hosts and deleted all collectd/ryslog data (as well stopping collectd service)
# rm -rf /etc/collectd.d/* && rm -rf /etc/rsyslog.d/* && systemctl stop collectd 
1. # /usr/share/ovirt-engine-metrics/configure_ovirt_machines_for_metrics.sh --playbook=manage-ovirt-metrics-services.yml
3. once above step concluded: # cat /etc/ovirt-engine-metrics/hosts_not_configured_for_metrics

Results:
File present, containing info about host the doesn't have metrics properly configured

Comment 10 Sandro Bonazzola 2020-08-05 06:25:25 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 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.


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