Bug 1526605

Summary: Installing the Red Hat Ceph Storage Dashboard fails
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Justin Bautista <jbautist>
Component: Ceph-MetricsAssignee: Zack Cerza <zcerza>
Status: CLOSED DUPLICATE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.0CC: ceph-eng-bugs, gmeno, kdreyer, mamccoma, mhackett, mkasturi, pcuzner, smerrow, zcerza
Target Milestone: rc   
Target Release: 3.*   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-13 17:52:24 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:    
Bug Blocks: 1356451    

Description Justin Bautista 2017-12-15 20:05:09 UTC
Description of problem:

https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html-single/administration_guide/#installing-the-red-hat-ceph-storage-dashboard


Following the documentation (above) to install ceph-grafana, skipping step 4 (not manually creating var.yml), it is failing with the following error:


ASK [ceph-grafana : Create Graphite DB tables] *************************************************************************************************************************************************************************************************************************
fatal: [ceph30]: 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"}

If the customer uses the root user the installation completes as expected. However, called out that it's strange that the Ceph cluster itself deployed/installed properly when running the playbook as the ansible user, however when installing the dashboard it failed (until run as root).


How reproducible:
Following the steps as documented (and skipping optional step #4) - Always

Comment 12 mamccoma 2018-09-13 17:52:24 UTC

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