Bug 1533481 - [cephmetrics] Installation of cephmetrics on ceph2.5 fails
Summary: [cephmetrics] Installation of cephmetrics on ceph2.5 fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Metrics
Version: 2.5
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: 2.5
Assignee: Boris Ranto
QA Contact: Madhavi Kasturi
URL:
Whiteboard:
Depends On: 1534657
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-11 13:27 UTC by Madhavi Kasturi
Modified: 2018-06-14 17:49 UTC (History)
7 users (show)

Fixed In Version: cephmetrics-1.0-8.el7cp
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
: 1534657 (view as bug list)
Environment:
Last Closed: 2018-02-21 19:47:28 UTC
Embargoed:


Attachments (Terms of Use)
ansible.log (13.98 KB, text/plain)
2018-01-11 13:27 UTC, Madhavi Kasturi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ceph cephmetrics pull 156 0 None None None 2018-01-22 22:29:40 UTC
Red Hat Product Errata RHBA-2018:0340 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2.5 bug fix and enhancement update 2018-02-22 00:50:32 UTC

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


Note You need to log in before you can comment on or make changes to this bug.