Bug 1497199

Summary: cephmetrics-ansible ceph-grafana PyYAML
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Lubos Trilety <ltrilety>
Component: Ceph-MetricsAssignee: ceph-eng-bugs <ceph-eng-bugs>
Status: CLOSED DUPLICATE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0CC: ceph-eng-bugs
Target Milestone: rc   
Target Release: 3.0   
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: 2017-10-04 13:34:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lubos Trilety 2017-09-29 12:59:28 UTC
Description of problem:
cephmetrics-ansible playbook.yml needs package pyYAML to be installed for task 'TASK [ceph-grafana : Push dashboards to Grafana]', however the playbook never checks if it is so and install the package if required.


Version-Release number of selected component (if applicable):
cephmetrics-ansible-1.0-1.el7cp.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Don't install PyYAML on ceph-grafana machine, if it's already installed remove it from the machine
2. Run cepmetrics-ansible playbook playbook.yml
3.

Actual results:
The playbook fails on task 'TASK [ceph-grafana : Push dashboards to Grafana]' with following error:
"ImportError: No module named yaml"


Expected results:
Playbook installs PyYAML on the machine before the task 'TASK [ceph-grafana : Push dashboards to Grafana]' is run.

Additional info:

Comment 1 Lubos Trilety 2017-10-04 13:34:16 UTC

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