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

pcp2openmetrics ignores the output file specified via "-F" command line param

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.5
    • pcp
    • None
    • pcp-6.2.2-1.el9
    • None
    • Moderate
    • 1
    • rhel-sst-pt-pcp
    • ssg_platform_tools
    • 22
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • PCP Sprint 5
    • Unspecified Release Note Type - Unknown
    • All
    • None

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

      When output of pcp2openmetrics tool is redirected from the stdout to a file using "-F" command ine parameter, the redirection is ignored and the output goes to stdout anyway.

      Please provide the package NVR for which bug is seen:

      pcp-6.2.1-1.el9

      How reproducible:

      Always

      Steps to reproduce

      1.  Install pcp & pcp-export-pcp2openmetrics packages
      2.  Start pmcd and pmlogger
      3.  Export some metric from an archive to a file
        pcp2openmetrics -a /var/log/pcp/pmlogger/$(hostname)/ -F /tmp/load.openmetrics 'kernel.all.load'
        

      Expected results

      The result is written to the /tmp/load.openmetrics file.

      Actual results

      The result is printed on stdout

            [RHEL-32407] pcp2openmetrics ignores the output file specified via "-F" command line param

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (pcp bug fix and enhancement update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHBA-2024:9101

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (pcp bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:9101

            Jan Kurik added a comment -

            Verified with follow-ups:
            RHEL-39132 Non working option '-s' in pcp2openmetrics
            RHEL-39159 Invalid openmetrics format generated by pcp2openmetrics tool
            RHEL-39293 Output of pcp2openmetrics can not be parsed by Prometheus parser

            Jan Kurik added a comment - Verified with follow-ups: RHEL-39132 Non working option '-s' in pcp2openmetrics RHEL-39159 Invalid openmetrics format generated by pcp2openmetrics tool RHEL-39293 Output of pcp2openmetrics can not be parsed by Prometheus parser

            pme bot added a comment -

            Issue split into:

            RHEL-39424 [Dev] pcp2openmetrics ignores the output file specified via "-F" command line param

            pme bot added a comment - Issue split into: RHEL-39424 [Dev] pcp2openmetrics ignores the output file specified via "-F" command line param

            Jan Kurik added a comment - - edited

            Note: The same behavior is observed when running the pcp2openmetrics tool directly towards pmcd:

            # pcp2openmetrics -F /tmp/load.openmetrics 'kernel.all.load'
            

            Jan Kurik added a comment - - edited Note: The same behavior is observed when running the pcp2openmetrics tool directly towards pmcd: # pcp2openmetrics -F /tmp/load.openmetrics 'kernel.all.load'

              rh-ee-lchilton Lauren Chilton
              jkurik@redhat.com Jan Kurik
              pcp-maint pcp-maint
              Jan Kurik Jan Kurik
              Jacob Valdez Jacob Valdez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: