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 1788519 - Missing dependency of pcp-pmda-redis package on perl-autodie and perl-Time-HiRes packages
Summary: Missing dependency of pcp-pmda-redis package on perl-autodie and perl-Time-Hi...
Keywords:
Status: CLOSED DUPLICATE of bug 1792971
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcp
Version: 8.2
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: Nathan Scott
QA Contact: Jan Kurik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-07 12:08 UTC by Jan Kurik
Modified: 2021-09-17 12:47 UTC (History)
6 users (show)

Fixed In Version: pcp-5.1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-18 06:26:14 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Kurik 2020-01-07 12:08:27 UTC
Description of problem:
Package pcp-pmda-redis is missing a dependency on perl-autodie and perl-Time-HiRes packages.

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

How reproducible:
Always

Steps to Reproduce:
1. Install a fresh RHEL-8.2 system
2. Install pcp-pmda-redis RPM
# yum install -y pcp-pmda-redis pcp-zeroconf
3. Install the PMDA
# cd /var/lib/pcp/pmdas/redis/
# ./Install

Actual results:
# ./Install
Can't locate autodie.pm in @INC (you may need to install the autodie module) (@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/redis/pmdaredis.pl line 66.
...
Can't locate Time/HiRes.pm in @INC (you may need to install the Time::HiRes module) (@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/redis/pmdaredis.pl line 71.
...

Expected results:
# ./Install
Updating the Performance Metrics Name Space (PMNS) ...
Terminate PMDA if already installed ...
Updating the PMCD control file, and notifying PMCD ...
Check redis metrics have appeared ... 2 warnings, 71 metrics and 69 values

Additional info:
* This is also reproducible on older RHEL-8 releases
* A workaround is to manually install perl-autodie and perl-Time-HiRes package
# yum install -y perl-autodie perl-Time-HiRes

Comment 1 Nathan Scott 2020-02-19 06:00:09 UTC
commit 364e4011a8fbb1b8545b0f6840d9dd2ca4de5339
Author: Nathan Scott <nathans>
Date:   Wed Feb 19 16:34:21 2020 +1100

    build: update fedora.spec with perl-Time-HiRes package dep for pcp-pmda-redis
    
    Resolves Red Hat BZ #1788519

Comment 2 Lucas Bickel 2020-03-02 22:43:23 UTC
I stumbled upon this by way of #1788510. Does this (or an issue I missed) explicitly cover the `perl-Data-Dumper` dep? 

Upstreams master is directly using it [0] and a quick `yum install pcp-pmda-redis` on a recent centos:8 container image indicates that the dep is missing. Upstreams pagure also lacks the dep [1].

I'd be happy to contribute the needed patch, let me know if it's worth the effort/where I should start. 

[0]: <https://github.com/performancecopilot/pcp/blob/0ab16a9017a1a0b56fbb969bec659be258234dc5/src/pmdas/redis/pmdaredis.pl#L72>
[1]: <https://src.fedoraproject.org/rpms/pcp/blob/f32/f/pcp.spec#_969>

Comment 3 Nathan Scott 2020-03-03 02:36:57 UTC
Hi Lucas,

Yes looks like that is missing - please open a PR for the spec file in upstream PCP
https://github.com/performancecopilot/pcp/blob/master/build/rpm/fedora.spec

Thanks!

Comment 4 Nathan Scott 2020-03-18 06:26:14 UTC
Minor packaging issue, will be resolved via rebase.

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

Comment 5 Jan Kurik 2020-06-12 15:02:15 UTC
Verified on pcp-5.1.1-2.el8 build.


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