Bug 1790433
| Summary: | Missing dependency of pcp-pmda-snmp on net-snmp-perl package and wrong location of Net/SNMP.pm | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Jan Kurik <jkurik> |
| Component: | pcp | Assignee: | Mark Goodwin <mgoodwin> |
| Status: | CLOSED ERRATA | QA Contact: | Jan Kurik <jkurik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.2 | CC: | agerstmayr, jkurik, mgoodwin, mnewsome, nathans, patrickm, yamato |
| Target Milestone: | rc | Keywords: | Bugfix, Reopened |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | pcp-5.1.1-3 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 03:00:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jan Kurik
2020-01-13 11:02:58 UTC
Minor packaging issue, will be resolved via rebase. *** This bug has been marked as a duplicate of bug 1792971 *** This issue is still present in pcp-5.1.1-2.el8 build. In RHEL-8.3.0, we only seem to have net-snmp-perl, which provides perl(SNMP), basically net-snmp v5. The pmdasnmp.pl script wants to use Net::SNMP but the PCP RPM spec only has the install dependency for non-RHEL / Fedora. The missing dependency would be satisfied by a dep on 'perl(Net::SNMP)', which is provided by the perl-Net-SNMP package, which itself has a dep on 'perl(Crypt::DES)', provided by the perl-Crypt-DES package. The perl-Net-SNMP and perl-Crypt-DES packages are actually built for el8 and if I manually install them using the full URL to the RPMs, the PCP SNMP PMDA works correctly, e.g. : # dnf install http://download.eng.bos.redhat.com/brewroot/packages/perl-Net-SNMP/6.0.1/19.el8+5/noarch/perl-Net-SNMP-6.0.1-19.el8+5.noarch.rpm http://download.eng.bos.redhat.com/brewroot/packages/perl-Crypt-DES/2.07/12.el8+5/x86_64/perl-Crypt-DES-2.07-12.el8+5.x86_64.rpm However, neither perl-Net-SNMP nor perl-Crypt-DES seem to be in any RHEL8.3.0 repos. We only have net-snmp-perl. The required packages are not available as modules either (dnf module list | grep -i -e snmp -e perl ... doesn't show anything promising). Checking the nightly appstream compose, we have quite a few perl-net-* packages, but not the SNMP or Crypt-DES packages. http://download.hosts.prod.upshift.rdu2.redhat.com/nightly/latest-RHEL-8/compose/AppStream/x86_64/os/Packages/ perl-Net-DNS-1.15-1.el8.noarch.rpm perl-Net-HTTP-6.17-2.module+el8.3.0+6498+9eecfe51.noarch.rpm perl-Net-HTTP-6.17-2.module+el8.3.0+6498+31ea7642.noarch.rpm perl-Net-HTTP-6.17-2.module+el8.3.0+6498+fb59cb73.noarch.rpm perl-Net-Ping-2.43-404.module+el8.1.0+2926+ce7246ad.noarch.rpm perl-Net-Ping-2.55-416.el8.noarch.rpm perl-Net-Ping-2.71-451.module+el8.3.0+6961+31ca2e7a.noarch.rpm perl-Net-SMTP-SSL-1.04-5.el8.noarch.rpm perl-Net-SSLeay-1.88-1.module+el8.3.0+6446+37a50855.x86_64.rpm perl-Net-SSLeay-1.88-1.module+el8.3.0+6446+594cad75.x86_64.rpm perl-Net-SSLeay-1.88-1.module+el8.3.0+6452+449fe210.x86_64.rpm perl-Net-Server-2.009-3.el8.noarch.rpm and net-snmp-perl-5.8-15.el8.x86_64.rpm If the missing packages were available, the spec patch would be : --- pcp.spec.orig 2020-06-22 13:04:53.865655623 +1000 +++ pcp.spec 2020-06-22 14:58:15.451975535 +1000 @@ -1381,10 +1381,7 @@ URL: https://pcp.io Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release} Requires: perl-PCP-PMDA = %{version}-%{release} -# There are no perl-Net-SNMP packages in rhel, disable unless non-rhel or epel5 -%if 0%{?rhel} == 0 || 0%{?rhel} < 6 Requires: perl(Net::SNMP) -%endif resolved with commit bc4abb291 pmdasnmp: add Install checks for the required Net::SNMP module Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. 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-2020:4684 (In reply to Mark Goodwin from comment #3) >... > If the missing packages were available, the spec patch would be : > > --- pcp.spec.orig 2020-06-22 13:04:53.865655623 +1000 > +++ pcp.spec 2020-06-22 14:58:15.451975535 +1000 > @@ -1381,10 +1381,7 @@ > URL: https://pcp.io > Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release} > Requires: perl-PCP-PMDA = %{version}-%{release} > -# There are no perl-Net-SNMP packages in rhel, disable unless non-rhel or > epel5 > -%if 0%{?rhel} == 0 || 0%{?rhel} < 6 > Requires: perl(Net::SNMP) > -%endif Was this change really applied to the package source tree? # rpm -q pcp-pmda-snmp pcp-pmda-snmp-5.3.5-8.el8.x86_64 # rpm -q --requires pcp-pmda-snmp /bin/sh /bin/sh config(pcp-pmda-snmp) = 5.3.5-8.el8 pcp = 5.3.5-8.el8 pcp-libs = 5.3.5-8.el8 perl-PCP-PMDA = 5.3.5-8.el8 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 # /usr/libexec/pcp/pmdas/snmp/Install Net::SNMP (Simple Network Management Protocol) perl module is not installed I should open a new bug. I read https://github.com/performancecopilot/pcp/commit/bc4abb29171ce5437b7f59a7dad0f94b06e5f7a4. The change implies RHEL8 doesn't and will not provide perl(Net::SNMP). |