Bug 1507294

Summary: [RFE] Automate populating metrics store related parameters using Ansible
Product: [oVirt] ovirt-engine-metrics Reporter: Shirly Radco <sradco>
Component: RFEsAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: low Docs Contact:
Priority: medium    
Version: 1.0.7CC: bugs, lsvaty, ylavi
Target Milestone: ovirt-4.2.1Keywords: FutureFeature
Target Release: 1.1.3.2Flags: rule-engine: ovirt-4.2+
rule-engine: exception+
lsvaty: testing_plan_complete+
ylavi: planning_ack+
rule-engine: devel_ack+
lsvaty: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-metrics-1.1.3.2-1.el7ev Doc Type: Enhancement
Doc Text:
Feature: Add automation to grab setup parameters from the remote metrics store, that currently need to be done manually. We also create the kibana admin user. Reason: Remove the steps the user needs to do manually. Result: Added automation to the metrics deployment ansible that grab these parameters: local_fluentd_elasticsearch_ca_file_path, local_fluentd_elasticsearch_client_cert_path, local_fluentd_elasticsearch_client_key_path, ovirt_env_uuid_metrics, ovirt_env_uuid_logs Kibana admin user is created with user admin and password admin. This requires to configure SSH Key-Based authentication from engine the the metrics store machine as an initial step.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-29 10:46:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1506458    
Bug Blocks: 1542989, 1546540, 1631202    

Description Shirly Radco 2017-10-29 12:00:49 UTC
Description of problem:
Simplify setting up oVirt metrics by populating the metrics store related parameters using Ansible.

Currently, the user will need to access the metrics store, run oc commands and copy the results, in order to populate the following parameters:

local_fluentd_elasticsearch_ca_file_path,
local_fluentd_elasticsearch_client_cert_path,
local_fluentd_elasticsearch_client_key_path,
ovirt_env_uuid_metrics,
ovirt_env_uuid_logs

This should be automated using Ansible.

The user should provide the fluentd_elasticsearch_host, ovirt_env_name and provide access to the metrics store machine.

Comment 1 Lukas Svaty 2017-10-30 12:20:51 UTC
This is a short script I'm using to deploy ViaQ setup, feel free to reuse.

https://github.com/StLuke/ovirt-metrics-store/blob/master/playbooks/viaq-store.yml

Comment 2 Yaniv Kaul 2017-11-20 12:11:45 UTC
(In reply to Lukas Svaty from comment #1)
> This is a short script I'm using to deploy ViaQ setup, feel free to reuse.
> 
> https://github.com/StLuke/ovirt-metrics-store/blob/master/playbooks/viaq-
> store.yml

Can I assign you as an owner for this BZ?

Comment 3 Lukas Svaty 2017-11-20 12:43:37 UTC
I'm sorry to say I do not have the capacity to work for this on 4.2 release. I'll be happy to help with the design though and answer any question regarding existing playbook.

Comment 4 Shirly Radco 2018-02-15 10:57:35 UTC
This requires to configure SSH Key-Based authentication from engine the the metrics store machine.

Comment 5 Lukas Svaty 2018-03-07 13:18:30 UTC
Thanks for the patch! Saves lot of frustration for configuration!

verified in ovirt-engine-metrics-1.1.3.2-1.el7ev.noarch

Comment 6 Sandro Bonazzola 2018-03-29 10:46:54 UTC
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018.

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