Bug 1238325
| Summary: | Overview default graphs do not show in cluster reports | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Gavin Burris <bug> |
| Component: | ganglia | Assignee: | Nick <nick> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | bug, ggillies, jose.p.oliveira.oss, k.georgiou, kjell.m.randa, nick, terje.rosten |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ganglia-3.7.2-13.fc25 ganglia-3.7.2-13.fc24 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-02-09 04:21:23 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: | |||
|
Description
Gavin Burris
2015-07-01 15:29:39 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 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.
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? 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 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 ganglia-3.7.2-13.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-61e8c91522 Thanks for help guys, problem should now be resolved. 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 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 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. 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. |