-
Bug
-
Resolution: Won't Do
-
Normal
-
rhel-9.5
-
None
-
pcp-6.2.2-1.el9
-
None
-
Moderate
-
rhel-pt-pcp
-
ssg_platform_tools
-
22
-
1
-
QE ack, Dev ack
-
False
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
Pass
-
Automated
-
-
s390x
-
None
What were you trying to do that didn't work?
When pcp2openmetrics reads data from an PCP archive on big endian architecture (s390x) the tool crashes, reporting an python exception.
Please provide the package NVR for which bug is seen:
pcp-6.2.2-1.el9
How reproducible:
Always
Steps to reproduce
- Install pcp & pcp-export-pcp2openmetrics packages on s390x architecture
- Start pmcd and pmlogger
- Wait a bit until archive files are populated with some data (i.e. 90 seconds)
- Run pcp2openmetrics from the created archive
pcp2openmetrics -a /var/log/pcp/pmlogger/$(hostname)/ 'kernel.all.load'
Expected results
The tool shows the exported data in the openmetrics format
Actual results
# pcp2openmetrics -a /var/log/pcp/pmlogger/$(hostname)/ 'kernel.all.load' { "//": "Writing 1 archived metrics to stdout..." } { "//": "(Ctrl-C to stop)" } Traceback (most recent call last): File "/usr/bin/pcp2openmetrics", line 545, in <module> P.execute() File "/usr/bin/pcp2openmetrics", line 381, in execute self.report(self.pmfg_ts()) File "/usr/bin/pcp2openmetrics", line 395, in report self.write_openmetrics(tstamp) File "/usr/bin/pcp2openmetrics", line 506, in write_openmetrics body += '%s%s %s\n' % (openmetrics_name(metric), openmetrics_labels(inst, name, desc, labels), value) File "/usr/bin/pcp2openmetrics", line 464, in openmetrics_labels labels[1].update(instname=name, instid=inst) KeyError: 1
- links to
-
RHBA-2024:129301 pcp bug fix and enhancement update