Bug 1772506 - Fluentd error when stopping metrics services through playbook on 4.3
Summary: Fluentd error when stopping metrics services through playbook on 4.3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-metrics
Version: 4.3.7
Hardware: All
OS: All
medium
medium
Target Milestone: ovirt-4.3.8
: ---
Assignee: Shirly Radco
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On: 1727546
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-14 14:15 UTC by Guilherme Santos
Modified: 2022-07-09 15:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-13 15:24:47 UTC
oVirt Team: Metrics
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-47489 0 None None None 2022-07-09 15:09:49 UTC
Red Hat Product Errata RHSA-2020:0498 0 None None None 2020-02-13 15:25:11 UTC

Description Guilherme Santos 2019-11-14 14:15:35 UTC
Description of problem:
Following this uninstall tutorial: https://pnt-devops-rad-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/ccs-mr-preview-prod/9358/artifact/doc-Metrics_Store_Installation_Guide/preview/index.html#removing_metrics_store we get an error running the playbook. 
It complains that it didn't find fluentd service to be stopped.
The problem is on oVirt.metrics/roles/oVirt.manage-services/defaults/main.yml...

# cat oVirt.metrics/roles/oVirt.manage-services/defaults/main.yml
---
service_enabled: yes

service_state: restarted

service_name:
  - 'collectd'
  - 'fluentd'
  - 'rsyslog'


fluentd is specified here even though we are dealing with 4.3.
I think we could complement this role,calling `rpm -q ovirt-engine` on the task
and using the response to get a different list of services depending if it's 4.3 or 4.2

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

How reproducible:
always

Steps to Reproduce:
1.Follow the appendix B tutorial on the link 
2.
3.

Actual results:
fluentd not found error on oVirt.metrics/roles/oVirt.manage-services task

Expected results:
No errors (only try to stop fluentd if it's 4.2)

Additional info:

Comment 2 Guilherme Santos 2020-01-15 02:02:07 UTC
Verified on:
ovirt-engine-metrics-1.3.6.1-1.el7ev.noarch

Steps:
1. SSH on an engine with metrics configured and running 
2. # cd /usr/share/ovirt--engine-metrics
3. # ./configure_ovirt_machines_for_metrics.sh --playbook=manage-ovirt-metrics-services.yml -e service_state=stopped

Results
Playbook run successfully with no errors or tasks failed
rsyslog/collectd stopped on all hosts of the target engine and the engine itself

Comment 4 errata-xmlrpc 2020-02-13 15:24:47 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-2020:0498


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