Description of problem: Add cleanup option to oVirt metrics playbook. The cleanup would revert Rsyslog to default conf, stop and disable Collectd service. If host is 4.2 Fluentd service will be stopped and disabled as well.
the cleanup script also should handle: - remove all the created VMs (bastion + Master) - clean the engine /etc/hosts
This RFE is about cleaning Collectors configurations. I believe both removing all the created VMs (bastion + Master) and cleaning the engine and hosts /etc/hosts are dangerous and should be done manually.
This can already be done by the following steps: 1. Run: # cd /usr/share/ovirt-engine-metrics/ # ./configure_ovirt_machines_for_metrics.sh --playbook=manage-ovirt-metrics-services.yml -e "service_state=stopped service_enabled=false service_name=['collectd','fluentd']" 2. Manually stop and delete the metrics store vms Peter, is adding this to the documentation sufficient?
Added a playbook for disabling Collectd, Fluentd and for setting Rsyslog configurations back to default. Please run: ./configure_ovirt_machines_for_metrics.sh --playbook=cleanup-ovirt-metrics.yml -vvv
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=cleanup-ovirt-metrics.yml -vvv 4. # ll /etc/rsyslog.d 5. # systemctl status collectd 6. Check Kibana dashboards/discovery Results: 3. Playbook runs successfully with no errors or failed tasks 4. Rsyslog back to default configuration 5. collectd service stopped 6. No information about the targeted engine and its hosts on kibana dashboards/discovery
This bugzilla is included in oVirt 4.3.8 release, published on January 27th 2020. Since the problem described in this bug report should be resolved in oVirt 4.3.8 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.
*** Bug 1799314 has been marked as a duplicate of this bug. ***