Red Hat Bugzilla – Bug 1468895
Add a playbook that changes collectd and fluentd services state and enable/disable on the engine and hosts
Last modified: 2017-10-19 11:45:04 EDT
Description of problem:
In certain conditions we may want to be able to stop collectd and fluentd services on the remote hosts and engine.
This requires an ansibe playbook that will run on the engine and hosts and will stop the services.
Please add specification of this feature. Either featurePage or documentation how to manage services from the existing playbook.
It is documented in the README file.
As we have README file I believe we need documentation, putting doc text flag to ?
For the README:
Line 3: missing comma in the end of the line
Line 5: this blank line should not be included
Line 12-14: 3 empty lines, I believe it should be just 2
Line 16-17: 2 empty lines, I believe it should be just 1
Line 20: missing comma in the end of the line
Line 31: s/these variable/these variables
Line 32: missing comma in the end of the line
Line 35: s/Ovirt/oVirt/
Line 49: s/need a configuration file/need to update the configuration file/
For the functionality:
1. # /usr/share/ovirt-engine-metrics/setup/ansible/configure_ovirt_machines_for_metrics.sh --tags=manage_services -e "service_state=stopped"
FATAL: Invalid option '-e'
2. # /usr/share/ovirt-engine-metrics/setup/ansible/configure_ovirt_machines_for_metrics.sh --tags=manage_services --help
SCOPE is one of 'hosts', 'engine', 'all'
TAGS is one of 'configure' (default), 'manage_services'
Would be nice to have better help for this, as nobody is going to find the hidden README.
3. changing config.yml
service_enabled: yes/no/wrong -> ok
service_state: restarted/started/stopped -> ok
service_name: ["collectd"]/["fluentd"]/ -> ok
Due to the 1. and 2. moving to FailedQA, if possible also update the README file.
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
[root@ ~]# /usr/share/ovirt-engine-metrics/setup/ansible/configure_ovirt_machines_for_metrics.sh -v
FATAL: Invalid option '-v'
[root@ ~]# rpm -qa | grep metrics
patch did not get through