• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-9.5, rhel-9.6, rhel-10.0.beta, rhel-10.0
    • pcp
    • None
    • pcp-6.3.1-1.el9
    • No
    • Low
    • 1
    • rhel-sst-pt-pcp
    • ssg_platform_tools
    • 21
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • PCP Sprint 11
    • Bug Fix
    • Hide
      .The `pcp` package now sets the correct owner and group for the `/var/lib/pcp/config/pmie/config.default` file

      Previously, if you installed the `pcp` package for the first time, the package installation process incorrectly set the ownership of the `/var/lib/pcp/config/pmie/config.default` file to `root:root`. As a consequence, the `pmie` service failed to start because the `pmieconf` utility, which is executed by this service, requires `pcp:pcp` ownership for this file. When the service failed to start, it logged the following error in the `/var/log/pcp/pmie/pmie_check.log` file:

      ----
      Warning: no write access to pmieconf file "/var/lib/pcp/config/pmie/config.default", skip reconfiguration
      ----

      With this update, the `pcp` package sets the correct ownership for the `/var/lib/pcp/config/pmie/config.default` file during the first installation and fixes it on existing installations. As a result, the `pmie` service starts correctly.
      Show
      .The `pcp` package now sets the correct owner and group for the `/var/lib/pcp/config/pmie/config.default` file Previously, if you installed the `pcp` package for the first time, the package installation process incorrectly set the ownership of the `/var/lib/pcp/config/pmie/config.default` file to `root:root`. As a consequence, the `pmie` service failed to start because the `pmieconf` utility, which is executed by this service, requires `pcp:pcp` ownership for this file. When the service failed to start, it logged the following error in the `/var/log/pcp/pmie/pmie_check.log` file: ---- Warning: no write access to pmieconf file "/var/lib/pcp/config/pmie/config.default", skip reconfiguration ---- With this update, the `pcp` package sets the correct ownership for the `/var/lib/pcp/config/pmie/config.default` file during the first installation and fixes it on existing installations. As a result, the `pmie` service starts correctly.
    • Done
    • All
    • None

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

      systemctl start pmie.service

      What is the impact of this issue to you?

      Possible misconfiguration of pmie

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

      • pcp-6.2.2-6.el9 for rhel-9.6

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Install pcp
        yum install -y pcp-zeroconf
        
      1. Restart pmie
        systemctl restart pmie
        
      1. Check for errors
        cat /var/log/pcp/pmie/pmie_check.log
        cat /var/log/pcp/pmie/$(hostname)/pmie.log
        

      Expected results

      No issues observed

      Actual results

       # grep -i -e warn -e err /var/log/pcp/pmie/pmie_check.log*
      Warning: no write access to pmieconf file "/var/lib/pcp/config/pmie/config.default", skip reconfiguration
       # cat /var/log/pcp/pmie/$(hostname)/pmie.log.*
      Log for pmie on <hostname> started Wed Sep 18 04:52:58 2024
      
      pmie: PID = 6136, via local: [primary]
      
      pmie: metric dmthin.pool.data.used not in namespace for pmcd local: (host <hostname>)
      pmLookupName failed: Unknown metric name
      pmie: metric dmthin.pool.data.total not in namespace for pmcd local: (host <hostname>)
      pmLookupName failed: Unknown metric name
      pmie: metric dmthin.pool.metadata.used not in namespace for pmcd local: (host <hostname>)
      pmLookupName failed: Unknown metric name
      pmie: metric dmthin.pool.metadata.total not in namespace for pmcd local: (host <hostname>)
      pmLookupName failed: Unknown metric name
      
      Log finished Wed Sep 18 04:53:17 2024
      

      Notes

      • I believe the ownership of /var/lib/pcp/config/pmie/config.default file should be pcp:pcp, while currently it is root:root.

              nathans@redhat.com Nathan Scott
              jkurik@redhat.com Jan Kurik
              pcp-maint pcp-maint
              Jan Kurik Jan Kurik
              Marc Muehlfeld Marc Muehlfeld
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: