https://bugzilla.redhat.com/show_bug.cgi?id=1249572
Bug ID: 1249572
Summary: pcp-iostat exception at the end of an archive
Product: Fedora
Version: rawhide
Component: pcp
Assignee: mgoodwin@xxxxxxxxxx
Reporter: mgoodwin@xxxxxxxxxx
QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
pcp@xxxxxxxxxxx, scox@xxxxxxxxxx
Description of problem: pcp-iostat exception at end of archive
Version-Release number of selected component (if applicable): 3.10.6-1
How reproducible: easily
Steps to Reproduce:
1. systemctl enable pmlogger; systemctl start pmlogger
2. sleep 600 (to wait for some data to be written to archive)
3. pcp -a /var/log/pcp/pmlogger/<hostname>/<archive> -t 10s iostat
(for some <hostname> and <archive>
Actual results:
python exception (KeyError) on last fetch at the end of the archive :
Traceback (most recent call last):
File "/usr/libexec/pcp/bin/pcp-iostat", line 202, in <module>
sts = manager.run()
File "/usr/lib64/python3.3/site-packages/pcp/pmcc.py", line 623, in run
self._printer.report(self)
File "/usr/libexec/pcp/bin/pcp-iostat", line 116, in report
rrqm = (c_rrqm[inst] - p_rrqm[inst]) / dt
KeyError: 'sda'
Expected results: no exception at end of archive
Additional info: will be a trivial fix, but felt I should report it.
Here's an example :
[root]# pcp -a /var/log/pcp/pmlogger/fletch/20150803.20.10 -t 10 iostat
# Device rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz
await r_await w_await %util
...
sda 0.1 2.8 0.1 5.6 1.0 35.8 6.46 0.06
10.9 61.0 10.0 5.5
sdb 0.0 0.0 0.0 0.0 0.0 0.0 0.00 0.00
0.0 0.0 0.0 0.0
...
Traceback (most recent call last):
File "/usr/libexec/pcp/bin/pcp-iostat", line 202, in <module>
sts = manager.run()
File "/usr/lib64/python3.3/site-packages/pcp/pmcc.py", line 623, in run
self._printer.report(self)
File "/usr/libexec/pcp/bin/pcp-iostat", line 116, in report
rrqm = (c_rrqm[inst] - p_rrqm[inst]) / dt
KeyError: 'sda'
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=dG2ZIslX4n&a=cc_unsubscribe
|