Bug #10456
Calamari client hard codes ceph as cluster name in DiskSpaceTargets.ejs
0%
Description
1. calamari-clients branch v1,3, master
2. if the cluster name is customized (i.e. not ceph), then
Graph -> Host - XX -> Disk -> Capacity/Inodes is always empty
How reproducible: always
Steps:
1. create Ceph cluster with non-standard name
2. create calamari instance
3. view Disk -> Capacity/Inodes panel
Cause:
The js UI is rendering the metric
servers.<%- hostname >.diskspace._var_lib_ceph_osd_ceph-<- id >.<- metric %>
but Diamond on the client is actually sending
servers.<%- hostname >.diskspace._var_lib_ceph_osd_<- customClusterName >< id >.<- metric %>
Is there a template directive for the cluster name?
In the source code, there is <%- clusterName -> which seems to be the UUID not the cluster name
Associated revisions
substitute cluster-name in disk space graph
In disk space graph, cluster name was hardcoded to 'ceph'.
So when the cluster name is different the graph is not shown
as the graphite parameters are wrongly generated.
This is now fixied by substituting the cluster name
in the disk-space graph template.
Fixes: #10456
Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
History
#1 Updated by Anthony Alba about 9 years ago
Reference:
#2 Updated by Dan Mick about 9 years ago
- Category set to UI
- Source changed from other to Community (user)
#3 Updated by Anthony Alba about 9 years ago
On the instance, I modified the cluster name
webapp/content/dashboard/scripts/main.js
sed -i -e 's/var_lib_ceph_osd_ceph/var_lib_ceph_osd_MYCLUSTERNAME/g' main.js
and this seemed to fix the problem.
#4 Updated by Kanagaraj Mayilsamy about 9 years ago
- Assignee set to Kanagaraj Mayilsamy
#5 Updated by Kanagaraj Mayilsamy about 9 years ago
- Status changed from New to Fix Under Review
#6 Updated by Christina Meno about 9 years ago
- Status changed from Fix Under Review to Resolved