Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sym links for not installed PMDAs created after fresh PCP installation #1150

Closed
myllynen opened this issue Nov 19, 2020 · 3 comments
Closed
Assignees
Projects

Comments

@myllynen
Copy link
Contributor

With current git code built on RHEL 8 and freshly installed PCP (without the pcp-zeroconf package) I see dead sym links being present for probably all PMDAs even if they are not installed:

root@rhel-8-server:~# ls -l /var/lib/pcp/pmdas/mssql/
total 0
lrwxrwxrwx. 1 root root 50 2020-11-19 12:08 Install -> ../../../../../usr/libexec/pcp/pmdas/mssql/Install
lrwxrwxrwx. 1 root root 49 2020-11-19 12:08 Remove -> ../../../../../usr/libexec/pcp/pmdas/mssql/Remove
lrwxrwxrwx. 1 root root 50 2020-11-19 12:08 Upgrade -> ../../../../../usr/libexec/pcp/pmdas/mssql/Upgrade
lrwxrwxrwx. 1 root root 39 2020-11-19 12:08 mssql.conf -> ../../../../../etc/pcp/mssql/mssql.conf
lrwxrwxrwx. 1 root root 59 2020-11-19 12:08 pmdamssql.python -> ../../../../../usr/libexec/pcp/pmdas/mssql/pmdamssql.python
root@rhel-8-server:~# rpm -q pcp-pmda-mssql
package pcp-pmda-mssql is not installed
root@rhel-8-server:~# ls -1 /var/lib/pcp/pmdas/ | wc -l
68
root@rhel-8-server:~# rpm -qa | grep pcp-pmda | wc -l
47
root@rhel-8-server:~# 

I think it would be better if PMDA dirs and sym links would only appear when installing the corresponding PMDA RPM.

Thanks.

@natoscott
Copy link
Member

@myllynen what does 'rpm -qf /var/lib/pcp/pmdas/mssql/Install' report?

@myllynen
Copy link
Contributor Author

root@rhel-8-server:~# ls -l /var/lib/pcp/pmdas/mssql/Install
lrwxrwxrwx. 1 root root 50 2020-11-20 11:59 /var/lib/pcp/pmdas/mssql/Install -> ../../../../../usr/libexec/pcp/pmdas/mssql/Install
root@rhel-8-server:~# rpm -qf /var/lib/pcp/pmdas/mssql/Install
file /var/lib/pcp/pmdas/mssql/Install is not owned by any package

I doublechecked that when reinstalling PCP the entire /var/lib/pcp directory was indeed removed so the sym link can't be a leftover from any previous installation. I now tested by installing only the pcp package, it pulls in some dependencies but I think these were created during post-scripts of the pcp package when starting the pmcd service.

@natoscott natoscott added this to pcp-5.2.3 (Dec 16, 2020) in Roadmap Nov 22, 2020
@natoscott
Copy link
Member

Related: #1148 (same root cause)

@natoscott natoscott self-assigned this Nov 22, 2020
Roadmap automation moved this from pcp-5.2.4 (Feb 10, 2021) to pcp-5.2.4 (merged) Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Roadmap
pcp-6.0.2 (merged)
Development

No branches or pull requests

2 participants