Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-61501

pmlogextract fails to correctly read V3 archives on s390x architecture

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.6
    • rhel-9.6
    • pcp
    • None
    • pcp-6.3.2-1.el9
    • Yes
    • Important
    • 2
    • rhel-sst-pt-pcp
    • ssg_platform_tools
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • PCP Sprint 12, PCP Sprint 13
    • Unspecified Release Note Type - Unknown
    • s390x
    • None

      What were you trying to do that didn't work?

      Extracting data from V3 archives on s390x architecture using pmlogextract does not produce any outcome

      What is the impact of this issue to you?

      pmlogextract does not work correctly with V3 archives on s390x

      Please provide the package NVR for which the bug is seen:

      pcp-6.3.1-1.el9

      How reproducible is this bug?:

      Always on s390x architecture

      Steps to reproduce

      1. Install pcp-zeroconf and pcp-testsuite on a s390x machine
      2. Try to use pmlogextract with V3 archives from the testsuite
        # cd /var/lib/pcp/testsuite
        # pmlogextract archives/multi_v3/20150508.11.44 archives/multi_v3/20150508.11.46 archives/multi_v3/20150508.11.50 archives/multi_v3/20150508.11.57 /var/tmp/pmlogextract.output
        

      Expected results

      pmlogextract generates /var/tmp/pmlogextract.output archives with some data

      Actual results

      pmlogextract: Warning: no qualifying records found.
      Archive "/var/tmp/pmlogextract.output" not created.
      

      Comment

      There seems to be some issue with the way how timestamp from V3 archives is processed on s390x . Using pmdumplog on the same archive generates different timestamps on s390x and x86_64, so probably the issue lies somewhere in code shared between pcp components:

      s390x

      # pmdumplog -a archives/multi_v3/20150508.11.44 | head -n 6
      Log Label (Log Format Version 3)
      Performance metrics from host brolley-t530
          commencing  16:37:04.631443000     
          ending      01:09:04.637523000     
      Archive timezone: EDT+4
      PID for pmlogger: 3110773
      

      x86_64

      # pmdumplog -a archives/multi_v3/20150508.11.44 | head -n 6
      Log Label (Log Format Version 3)
      Performance metrics from host brolley-t530
          commencing Fri May  8 11:44:04.631443000 2015
          ending     Fri May  8 11:46:04.637523000 2015
      Archive timezone: EDT+4
      PID for pmlogger: 3110773
      

              nathans@redhat.com Nathan Scott
              jkurik@redhat.com Jan Kurik
              pcp-maint pcp-maint
              Jan Kurik Jan Kurik
              Lenka Špačková Lenka Špačková
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: