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 2139012 - No /var/lib/pcp/pmdas/snmp/snmp.conf file
Summary: No /var/lib/pcp/pmdas/snmp/snmp.conf file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcp
Version: 8.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.8
Assignee: Nathan Scott
QA Contact: Jan Kurik
Jacob Taylor Valdez
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-01 01:34 UTC by Masatake YAMATO
Modified: 2023-05-16 08:41 UTC (History)
4 users (show)

Fixed In Version: pcp-5.3.7-16.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-16 08:13:26 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-137936 0 None None None 2022-11-01 01:39:20 UTC
Red Hat Product Errata RHBA-2023:2745 0 None None None 2023-05-16 08:13:33 UTC

Description Masatake YAMATO 2022-11-01 01:34:40 UTC
Description of problem:

This is a bug about pcp-pmda-snmp-5.3.5-8.el8.x86_64.

When running the Install script shipped as part of the package, I got the following message: opening /var/lib/pcp/pmdas/snmp/snmp.conf No such file or directory at /var/lib/pcp/pmdas/snmp/pmdasnmp.pl line 90.

The package-specific configuration (/etc/pcp/snmp/snmp.conf) has no effect.
  
Version-Release number of selected component (if applicable):

pcp-pmda-snmp-5.3.5-8.el8.x86_64.

How reproducible:

Steps to Reproduce:
1. dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
2. dnf -y --disablerepo='*'         --enablerepo=rhel-8-for-x86_64-appstream-rpms    --enablerepo=rhel-8-for-x86_64-baseos-rpms  --enablerepo=codeready-builder-for-rhel-8-x86_64-rpms --enablerepo=epel install perl-Net-SNMP pcp-pmda-snmp
3. cd /var/lib/pcp/pmdas/snmp/ && ./Install

Actual results:

opening /var/lib/pcp/pmdas/snmp/snmp.conf No such file or directory at /var/lib/pcp/pmdas/snmp/pmdasnmp.pl line 90.
opening /var/lib/pcp/pmdas/snmp/snmp.conf No such file or directory at /var/lib/pcp/pmdas/snmp/pmdasnmp.pl line 90.
Updating the Performance Metrics Name Space (PMNS) ...
Terminate PMDA if already installed ...
Updating the PMCD control file, and notifying PMCD ...
Check snmp metrics have appeared ... 1 metrics and 1 values

Expected results:

"opening /var/lib/pcp/pmdas/snmp/snmp.conf No such file or directory at /var/lib/pcp/pmdas/snmp/pmdasnmp.pl line 90." should not be printed.

Additional info:

Copying the configuration file (or making a symlink) from /etc/pcp/snmp/snmp.conf to /var/lib/pcp/pmdas/snmp/snmp.conf is an effective workaround.

I inspected the issue and I found that https://github.com/performancecopilot/pcp/pull/1694 may fix this bug partially.

Comment 1 Nathan Scott 2022-11-01 08:10:56 UTC
Hi Masatake-san,

Thanks for the bug report (and upstream fix).  As there's a relatively straightforward
workaround in terms of creating the configuration file in the /var location mentioned,
this is unlikely to meet the requirements for fixing in RHEL 8 at this stage (critical
fixes only with no workaround).  However, we can certainly proceed with including this
in the next scheduled PCP update in RHEL 9 - does that meet your needs here?  If there
is an pressing customer need for this in RHEL 8 though, happy to discuss further.

Comment 6 errata-xmlrpc 2023-05-16 08:13:26 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-2023:2745


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