Created attachment 1380039 [details] ansible.log Description of problem: cephmetrics installation on ceph2.5 fails. Version-Release number of selected component (if applicable): ceph-ansible-3.0.16-1.el7cp.noarch ansible-2.4.1.0-1.el7ae.noarch cephmetrics-ansible-1.0-7.el7cp.x86_64 How reproducible: always Steps to Reproduce: 1. Using the document as reference, for installing cephmetrics with ceph2.5 tools repo. document:https://doc-stage.usersys.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html-single/administration_guide 2.followed the steps except changing the default ppassword[vars.yml] 3.with ansible user 'admin',initiated the ansible playbook, however it fails at TASK [ceph-grafana : Create Graphite DB tables] Actual results: Failing TASK [ceph-grafana : Create Graphite DB tables] ******************************************************************************************************************************************************************* fatal: [aircobra]: FAILED! => {"failed": true, "msg": "The conditional check 'migrate_cmd.rc != 0 and 'table \"django_content_type\" already exists' not in migrate_cmd.stderr' failed. The error was: error while evaluating conditional (migrate_cmd.rc != 0 and 'table \"django_content_type\" already exists' not in migrate_cmd.stderr): Unable to look up a name or access an attribute in template string ({% if migrate_cmd.rc != 0 and 'table \"django_content_type\" already exists' not in migrate_cmd.stderr %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable"} Expected results: Installation should succeed. Additional info:
Yeah, the cephmetrics is supposed to be installed under 'root', you may file an RFE to support installation under the ansible user with password-less sudo capability but that is not likely to land in 2.5. I have created an upstream PR for the fix: https://github.com/ceph/cephmetrics/pull/156 We will need to do a couple more rel-eng changes (there is no dist-git branch for ceph-2 at the moment) to include this in the 2.5 release.
Summarizing discussion in IRC: we don't need ceph-2-rhel-7 branches from RCM, because we should land the fix in ceph-3.0-rhel-7, then tag that 3.0 build into ceph-2-rhel-7-candidate, as we've done with all previous cephmetrics builds.
cephmetrics installation as 'root' user completed successfully. [root@dell-r730-014 ~]# rpm -qa | grep ansible ceph-ansible-3.0.18-1.el7cp.noarch cephmetrics-ansible-1.0-8.el7cp.x86_64 ansible-2.4.1.0-1.el7ae.noarch Hence, moving this bug to verified.
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-2018:0340