Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on ceph_pg_plugin.py #53

Open
ggkth901 opened this issue Jun 11, 2018 · 1 comment
Open

Error on ceph_pg_plugin.py #53

ggkth901 opened this issue Jun 11, 2018 · 1 comment

Comments

@ggkth901
Copy link

ggkth901 commented Jun 11, 2018

hi i;m taehoon.
i deploying ceph clutser(Luminous).
So build monitoring system with graphite , grafana , collectd.

but i have Trouble below this.

-------/var/log/message ------------------------------------------------------------------------
Jun 11 10:09:42 ceph-mgr.cdngp.net collectd[57815]: ceph: failed to get stats :: 'fs_perf_stat' :: Traceback (most recent call last):#12 File "/usr/lib64/collectd/plugins/ceph/base.py", line 114, in read_callback#012 stats = self.get_stats()#12 File "/usr/lib64/collectd/plugins/ceph/ceph_pg_plugin.py", line 79, in get_stats#012 data[ceph_cluster][osd_id]['apply_latency_ms'] = osd['fs_perf_stat']['apply_latency_ms']#012KeyError: 'fs_perf_stat'

Jun 11 10:09:42 ceph-mgr.cdngp.net collectd[57815]: Unhandled python exception in read callback: UnboundLocalError: local variable 'stats' referenced before assignment

Jun 11 10:09:42 ceph-mgr.cdngp.net collectd[57815]: read-function of plugin `python.ceph_pg_plugin' failed. Will suspend it for 120.000 seconds.

Jun 11 10:09:43 ceph-mgr.cdngp.net collectd: dumped fsmap epoch 196


somebody help me.. :-<

@calou46
Copy link

calou46 commented Aug 3, 2018

Hello sorry for my english, I have the same problem, i don't know how to transmit my workaround to the project's maintener.
I made a workarround, for this: edit /usr/lib64/collectd/plugins/ceph/ceph_pg_plugin.py
change lines:
79 data[ceph_cluster][osd_id]['apply_latency_ms'] = osd['fs_perf_stat']['apply_latency_ms']
80 data[ceph_cluster][osd_id]['commit_latency_ms'] = osd['fs_perf_stat']['commit_latency_ms']
to:
79 data[ceph_cluster][osd_id]['apply_latency_ms'] = osd['perf_stat']['apply_latency_ms']
80 data[ceph_cluster][osd_id]['commit_latency_ms'] = osd['perf_stat']['commit_latency_ms']
Tested on luminous 12.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants