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:
*** Bug 1497199 has been marked as a duplicate of this bug. ***
Confused about this: $ rpm -q ansible ansible-2.2.3.0-1.el7.noarch $ rpm -q --requires ansible | grep -i yaml PyYAML
(In reply to Zack Cerza from comment #2) > Confused about this: > > $ rpm -q ansible > ansible-2.2.3.0-1.el7.noarch > $ rpm -q --requires ansible | grep -i yaml > PyYAML On ceph-grafana machine doesn't have to be ansible package, so it doesn't matter that ansible package requires PyYAML.
I guess we should make cephmetrics-grafana depend on PyYAML then
(In reply to Lubos Trilety from comment #3) > (In reply to Zack Cerza from comment #2) > > Confused about this: > > > > $ rpm -q ansible > > ansible-2.2.3.0-1.el7.noarch > > $ rpm -q --requires ansible | grep -i yaml > > PyYAML > > On ceph-grafana machine doesn't have to be ansible package, so it doesn't > matter that ansible package requires PyYAML. I am sorry, I check grafana machine and ansible is installed there after all. And because I am not aware of installing it manually, it has to be installed during cephmetrics installation. However I am not sure exactly when the package was installed and I am pretty sure that I hit the issue of the installation complaining about missing PyYAML. Moreover it's not just me who have the same problem. Anyway maybe some reorganizing of the playbook could be enough.
PR filed: https://github.com/ceph/cephmetrics/pull/143
PR is merged
Tested on: cephmetrics-ansible-1.0-6.el7cp.x86_64 Installation run successfully.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3387