-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-9.5
-
None
-
pcp-6.2.2-1.el9
-
None
-
Moderate
-
1
-
rhel-sst-pt-pcp
-
ssg_platform_tools
-
22
-
1
-
QE ack, Dev ack
-
False
-
-
No
-
Red Hat Enterprise Linux
-
PCP Sprint 5
-
Pass
-
Automated
-
Unspecified Release Note Type - Unknown
-
-
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.1-1.el9.s390x
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
- is related to
-
RHEL-30198 Bug fix and feature rebase for Performance Co-Pilot
- Closed
- split to
-
RHEL-39423 [Dev] pcp2openmetrics crashes on s390x when reading data from an archive
- Closed
- links to
-
RHBA-2024:129301 pcp bug fix and enhancement update