Bug 1533481

Summary: [cephmetrics] Installation of cephmetrics on ceph2.5 fails
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Madhavi Kasturi <mkasturi>
Component: Ceph-MetricsAssignee: Boris Ranto <branto>
Status: CLOSED ERRATA QA Contact: Madhavi Kasturi <mkasturi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.5CC: agunn, branto, ceph-eng-bugs, hnallurv, kdreyer, pcuzner, uboppana
Target Milestone: rc   
Target Release: 2.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cephmetrics-1.0-8.el7cp Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1534657 (view as bug list) Environment:
Last Closed: 2018-02-21 19:47:28 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:
Bug Depends On: 1534657    
Bug Blocks:    
Attachments:
Description Flags
ansible.log none

Description Madhavi Kasturi 2018-01-11 13:27:52 UTC
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:

Comment 6 Boris Ranto 2018-01-12 10:49:40 UTC
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.

Comment 7 Ken Dreyer (Red Hat) 2018-01-16 22:37:13 UTC
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.

Comment 9 Madhavi Kasturi 2018-01-23 07:24:15 UTC
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.

Comment 12 errata-xmlrpc 2018-02-21 19:47:28 UTC
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