Bug 1238325 - Overview default graphs do not show in cluster reports
Summary: Overview default graphs do not show in cluster reports
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ganglia
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-01 15:29 UTC by Gavin Burris
Modified: 2017-02-10 15:32 UTC (History)
7 users (show)

Fixed In Version: ganglia-3.7.2-13.fc25 ganglia-3.7.2-13.fc24
Clone Of:
Environment:
Last Closed: 2017-02-09 04:21:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Gavin Burris 2015-07-01 15:29:39 UTC
Description of problem:
With two "clusters" configured in Ganglia, the "grid" view is the default web page, with a pull-down for the other cluster sources.  When selecting any cluster report, the four overview default graphs do not show.


Version-Release number of selected component (if applicable):
ganglia-3.7.1-3.el7.x86_64
ganglia-gmetad-3.7.1-3.el7.x86_64
ganglia-web-3.7.0-3.el7.x86_64
ganglia-gmond-3.7.1-3.el7.x86_64

How reproducible:

Steps to Reproduce:
1.  configure two data_source clusters and a gridname with gmetad.conf
2.  collect some metrics from some gmond members in each cluster
3.  browse to the default web page and "Choose a Source" from the pull-down


Actual results:
The graphs for Cluster Load, Memory, CPU, and Network are missing from the Overview.  They are also missing from the Mobile -> Clusters -> "Name" -> Cluster Summary page.

Expected results:
The graphs for Cluster Load, Memory, CPU, and Network should show for each cluster as they do in the default Grid Overview.

Additional info:
We were able to work around this and get all default graphs back by making an additional copy of the default.json config file.  This seems broken and not obvious.
# cp /usr/share/ganglia/conf/default.json /var/lib/ganglia/conf/


P.S.  We love Ganglia, and were rocking the old EPEL6 build.  Thanks for the upgrade!

Comment 1 Kjell Randa 2015-08-25 14:27:23 UTC
I see the same with only one cluster defined.
The 4 summary graphs are missing on both grid and cluster views.

ganglia-gmond-3.7.1-2.el6.x86_64
ganglia-web-3.7.0-2.el6.x86_64
ganglia-gmetad-3.7.1-2.el6.x86_64
ganglia-3.7.1-2.el6.x86_64

CentOS release 6.6 (Final)

httpd-2.2.15-45.el6.centos.x86_64

Comment 2 tgray26 2015-12-17 15:50:14 UTC
This is a bug in the ganglia-web packaging, we were packaging ganglia in house for years and it broke as soon as we moved to the epel packages. After some digging I've found the problem is that the ganglia-web configuration directory is defined as /var/lib/ganglia/conf, yet the json configuration files are delivered to /usr/share/ganglia/conf/


[root@holmes ~]# grep conf_dir /usr/share/ganglia/host_view.php 
  if ( is_file($conf['conf_dir'] . "/default.json") ) {
      json_decode(file_get_contents($conf['conf_dir'] . "/default.json"),

[root@holmes ~]# grep gweb_confdir /usr/share/ganglia/conf_default.php 
$conf['gweb_confdir'] = "/var/lib/ganglia";

[root@holmes ~]# grep conf_dir /usr/share/ganglia/conf_default.php 
$conf['conf_dir'] = $conf['gweb_confdir'] . '/conf';

[root@holmes ~]# rpm -ql ganglia-web | grep default.json
/usr/share/ganglia/conf/default.json


If this were repackaged with the files in /usr/share/ganglia/conf/ either moved or copied to /var/lib/ganglia/conf the problem would be resolved.

Comment 3 Terje Røsten 2015-12-17 19:48:54 UTC
Finally reproduced the bug, thanks!

However, unsure how to fix, ganglia-web wants write access to dir 
gweb_confdir, hence it must be in /var/lib somewhere, adding symlinks
back to  /usr/share/ganglia/conf/ for
default.json event_color.json, view_default.json might be a possible.

Or wants ganglia-web to write to those files as well?

Comment 4 tgray26 2015-12-17 20:10:15 UTC
Since /usr is supposed to be read-only and ganglia documentation recommends adding optional reports to default.json so I don't think linking from /var/lib to /usr/share is the best idea.

When you compile ganglia from source, the default value of gweb_confdir is /var/lib/ganglia-web/conf which seems to be purposefully kept separate from the gmetad root configuration directory /var/lib/ganglia/conf is there any reason not to do it this way?


From the ganglia-web Makefile on github:

# Gweb statedir (where conf dir and Dwoo templates dir are stored)
GWEB_STATEDIR = /var/lib/ganglia-web

# Gmetad rootdir (parent location of rrd folder)
GMETAD_ROOTDIR = /var/lib/ganglia

Comment 5 Fedora Update System 2017-01-26 19:00:18 UTC
ganglia-3.7.2-13.fc24 ganglia-3.7.2-13.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-fd7f92b12d

Comment 6 Fedora Update System 2017-01-26 19:02:48 UTC
ganglia-3.7.2-13.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-61e8c91522

Comment 7 Terje Røsten 2017-01-26 19:04:16 UTC
Thanks for help guys, problem should now be resolved.

Comment 8 Fedora Update System 2017-01-27 19:55:16 UTC
ganglia-3.7.2-13.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-fd7f92b12d

Comment 9 Fedora Update System 2017-01-28 04:55:11 UTC
ganglia-3.7.2-13.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-61e8c91522

Comment 10 Fedora Update System 2017-02-09 04:21:23 UTC
ganglia-3.7.2-13.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2017-02-09 20:49:50 UTC
ganglia-3.7.2-13.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


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