-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-10.0.z
-
None
-
Yes
-
Moderate
-
1
-
rhel-sst-pt-pcp
-
ssg_platform_tools
-
1
-
QE ack, Dev ack
-
False
-
-
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
- 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.