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

pmieconf fails in %postinstall scriptlet of pcp-zeroconf

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6.z
    • rhel-10.0.z
    • pcp
    • None
    • Yes
    • Moderate
    • 1
    • rhel-sst-pt-pcp
    • ssg_platform_tools
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • PT PCP 2025 S03
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • All
    • None

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

      During installation of pcp-zeroconf package a warning is printed out and pmieconf fails.

      What is the impact of this issue to you?

      pmie is not pre-configured as expected

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

      pcp-zeroconf-6.3.2-5.el10

      How reproducible is this bug?:

      Always with the pcp-6.3.2-5.el10 build.

      Steps to reproduce

      1. Install pcp-zeroconf package
        # yum install -y pcp-zeroconf-6.3.2-5.el10
        

      Expected results

      The installation pass without any warning and pmie is pre-configured.

      Actual results

      Error message:

      WARNING: Cannot write to /var/lib/pcp/config/pmie/config.default, skipping pmieconf enable of dmthin.
      

      The pmie config file is missing:

      # ls /var/lib/pcp/config/pmie/config.default 
      ls: cannot access '/var/lib/pcp/config/pmie/config.default': No such file or directory
      

      Analysis

      The problem is in run_pmieconf macro of pcp.spec file. The macro contains the following check to ensure pmieconf will be able to write to the /var/lib/pcp/config/pmie/config.default.

      if [ -d "%1" -a -w "%1" -a -w "%1/%2" ]
      

      The last check -w "%1/%2" unfortunately fails in case the config.default file does not yet exist in /var/lib/pcp/config/pmie/ directory - which is the case for fresh installation of PCP.

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

                Created:
                Updated: