Bug 1799314

Summary: Removing Metrics Store playbook is missing
Product: Red Hat Enterprise Virtualization Manager Reporter: amashah
Component: ovirt-engine-metricsAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.7CC: gdeolive, mkalinin, sradco
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-13 13:51:37 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:

Description amashah 2020-02-06 16:32:53 UTC
Description of problem:

In documentation for Metrics Store, there is a playbook for removing the metrics store:

https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/html/metrics_store_installation_guide/removing_metrics_store

However, this playbook does not appear to exist:

~~~
[root@rhvm-float ovirt-engine-metrics]# ./configure_ovirt_machines_for_metrics.sh --playbook=cleanup-ovirt-metrics.yml -vvv
ansible-playbook 2.9.4
  config file = /usr/share/ovirt-engine-metrics/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Using /usr/share/ovirt-engine-metrics/ansible.cfg as config file
ERROR! the playbook: playbooks/cleanup-ovirt-metrics.yml could not be found
~~~


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

# rpm -qa | egrep 'ansible-2|^rhvm-4|ovirt-engine-metrics'
ovirt-engine-metrics-1.3.5.1-1.el7ev.noarch
rhvm-4.3.7.2-0.1.el7.noarch
ansible-2.9.4-1.el7ae.noarch

How reproducible:
100%

Steps to Reproduce:
1. Try to run the removal as documented
2. Unable to find the playbook

Actual results:
Removal fails

Expected results:
Removal should complete successfully

Additional info:

Comment 1 amashah 2020-02-06 17:51:41 UTC
As a workaround, create the following file:

~~~
# cat /usr/share/ovirt-engine-metrics/playbooks/cleanup-ovirt-metrics.yml
---
- name: Add metrics store host to inventory
  hosts: engine:hosts

  tasks:
    - name: Cleanup services
      include_role:
        name: "oVirt.metrics/roles/oVirt.manage-services"
      vars:
        service_state: stopped
        service_enabled: no
        cleanup_services: true

    - debug:
        msg: "It is now safe to delete the oVirt metrics store VMs."
      run_once: true
~~~

Comment 2 Shirly Radco 2020-02-10 12:24:46 UTC
The cleanup role is part of the 4.3.8 release.

*** This bug has been marked as a duplicate of bug 1727546 ***

Comment 4 Shirly Radco 2020-02-13 13:51:37 UTC
This issue was fixed in errata https://errata.devel.redhat.com/advisory/48582

Comment 5 Marina Kalinin 2020-02-20 22:27:38 UTC
https://access.redhat.com/errata/RHSA-2020:0498