RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1790433 - Missing dependency of pcp-pmda-snmp on net-snmp-perl package and wrong location of Net/SNMP.pm
Summary: Missing dependency of pcp-pmda-snmp on net-snmp-perl package and wrong locati...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcp
Version: 8.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Mark Goodwin
QA Contact: Jan Kurik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-13 11:02 UTC by Jan Kurik
Modified: 2022-10-05 09:04 UTC (History)
7 users (show)

Fixed In Version: pcp-5.1.1-3
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 03:00:37 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4684 0 None None None 2020-11-04 03:01:00 UTC

Description Jan Kurik 2020-01-13 11:02:58 UTC
Description of problem:
Installation of pcp-pmda-snmp PMDA on a fresh RHEL-8.2 system fails due to missing dependency on net-snmp-perl package.

Even the net-snmp-perl package is manually installed, the ./Install script still reports an issue with missing SNMP.pm file. The file is a part of net-snmp-perl, however pcp-pmda-snmp expects the file on Net/SNMP.pm, while the file is located as SNMP.pm.

Version-Release number of selected component (if applicable):
* pcp-pmda-snmp-5.0.2-2.el8

How reproducible:
Always

Steps to Reproduce:
1.On a fresh RHEL-8.2 system install pcp-pmda-snmp
# yum install -y pcp-pmda-snmp

2. Run an installation script of the PMDA
# cd /var/lib/pcp/pmdas/snmp/ && ./Install

Actual results:
The installation fails with the following message:

Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /var/lib/pcp/pmdas/snmp/pmdasnmp.pl line 20.

Expected results:
The installation is passing without errors.

Comment 1 Nathan Scott 2020-03-18 06:29:58 UTC
Minor packaging issue, will be resolved via rebase.

*** This bug has been marked as a duplicate of bug 1792971 ***

Comment 2 Jan Kurik 2020-06-12 15:15:15 UTC
This issue is still present in pcp-5.1.1-2.el8 build.

Comment 3 Mark Goodwin 2020-06-22 05:00:43 UTC
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

Comment 6 Mark Goodwin 2020-06-23 04:43:03 UTC
resolved with commit bc4abb291 pmdasnmp: add Install checks for the required Net::SNMP module

Comment 9 errata-xmlrpc 2020-11-04 03:00:37 UTC
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

Comment 10 Masatake YAMATO 2022-10-05 03:37:30 UTC
(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.

Comment 11 Masatake YAMATO 2022-10-05 09:04:52 UTC
I read https://github.com/performancecopilot/pcp/commit/bc4abb29171ce5437b7f59a7dad0f94b06e5f7a4.
The change implies RHEL8 doesn't and will not provide perl(Net::SNMP).


Note You need to log in before you can comment on or make changes to this bug.