Ceph - Problem installing Ceph Storage Dashboard on RHCS

Solution In Progress - Updated -

Environment

  • Red Hat Ceph Storage 2.x
  • Red Hat Ceph Storage 3.x
  • Red Hat Ceph Storage Dashboard
  • ceph-ansible

Issue

  • Problem installing Ceph Storage Dashboard on RHCS
  • When installing RHCS Dashboard (cephmetrics) on RHCS, the ansible scripts fails with the following error:
ASK [ceph-grafana : Create Graphite DB tables] *************************************************************************************************************************************************************************************************************************
fatal: [cephtest]: 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"}

Resolution

Workaround

  • Change to the /usr/share/cephmetrics-ansible/ directory as 'root' user:
[root@admin ~]$ cd /usr/share/cephmetrics-ansible
  • Run the playbook:
[root@admin cephmetrics-ansible]# ansible-playbook -v playbook.yml

Note - Please ensure that ssh keys for the root user from the ansible node have been passed on to each of the nodes in the cluster to allow for passwordless ssh.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments