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 1954711 - pmproxy nofile limit too low
Summary: pmproxy nofile limit too low
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcp
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: beta
: 8.5
Assignee: Mark Goodwin
QA Contact: Jan Kurik
Apurva Bhide
URL:
Whiteboard:
Depends On: 1922040 1957575
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-28 16:21 UTC by Rajesh Dulhani
Modified: 2021-11-09 21:09 UTC (History)
6 users (show)

Fixed In Version: pcp-5.3.0-1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 17:50:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4171 0 None None None 2021-11-09 17:50:49 UTC

Description Rajesh Dulhani 2021-04-28 16:21:46 UTC
Description of problem:

PCP collector host the pmproxy process stopped working.
Looking in the log file showed 'too many open files'

Version-Release number of selected component (if applicable):

$ cat installed-rpms | grep pcp
grafana-pcp-2.0.2-3.el8.noarch                              Thu Dec 10 10:11:43 2020
pcp-5.1.1-4.el8_3.x86_64                                    Mon Feb 22 17:03:28 2021

How reproducible:


Steps to Reproduce:


- setup rhel8.4 KVM guest 

  # dnf -y install pcp-zeroconf
  # vi /etc/sysconfig/pmcd # PMCD_LOCAL=0
  # systemctl restart pmcd
  # for i in {100..200}; do ip addr add 192.168.4.$i dev enp1s0 ; done
- setup rhel8.3 KVM guest
  # yum -y install pcp-zeroconf
  # CLIENT=rhel8u4a
  # echo "$CLIENT.local n n PCP_LOG_DIR/pmlogger/$CLIENT.local" " -r -T30d -c config.$CLIENT" >/etc/pcp/pmlogger/control.d/$CLIENT
  # echo '192.168.4.13 rhel8u4a.local rhel8u4a' >>/etc/hosts

  # for i in {100..200}; do 
      echo "192.168.4.$i  ce$i.local ce$i" >>/etc/hosts; 
      /usr/libexec/pcp/bin/pmlogconf /var/lib/pcp/config/pmlogger/config.ce${i};
      CLIENT="ce$i"; 
      echo "$CLIENT.local n n PCP_LOG_DIR/pmlogger/$CLIENT.local" " -r -T30d -c config.$CLIENT" >/etc/pcp/pmlogger/control.d/$CLIENT ;
    done
  # /usr/libexec/pcp/bin/pmlogger_check
  # yum -y install redis grafana grafana-pcp
  # systemctl restart redis pmproxy grafana-server
  # systemctl enable redis pmproxy grafana-server
Then login at <ip>:3000, setup a redis/host dashboard.
Displaying rhel8u4a works fine, ce200.local not.

PCP is not distinguishing the single pmcd as 200 separate
pmcd instances, that leads to the error here.
We also see that here:
[root@rhel8u3a pmproxy]# pcp
 [..]
 pmlogger: rhel8u4a: /var/log/pcp/pmlogger/ce100.local/20210414.16.50
           rhel8u4a: /var/log/pcp/pmlogger/ce101.local/20210414.16.50
           rhel8u4a: /var/log/pcp/pmlogger/ce102.local/20210414.16.50
 [..]

But it's enough to see the pmproxy errors:

[root@rhel8u3a pmproxy]# grep open /var/log/pcp/pmproxy/pmproxy.log |tail -3
[Wed Apr 14 16:43:17] pmproxy(125947) Error: pmNewContext failed for /var/log/pcp/pmlogger/ce126.local/20210414.16.35: Too many open files
[Wed Apr 14 16:43:17] pmproxy(125947) Error: pmNewContext failed for /var/log/pcp/pmlogger/ce126.local/20210414.16.41: Too many open files
[Wed Apr 14 16:43:17] pmproxy(125947) Error: pmNewContext failed for /var/log/pcp/pmlogger/ce126.local/20210414.16.37: Too many open files
[root@rhel8u3a pmproxy]#

Actual results:

Too many open files

Expected results:

It should work smoothly.

Additional info:

Comment 1 Nathan Scott 2021-04-28 23:38:19 UTC
This has been tackled upstream via this commit:

commit 5ae002bae77b3a93304299a49d1c300f8028b9a3
Author: Mark Goodwin <mgoodwin>
Date:   Wed Mar 10 20:03:41 2021 +1100

    pmproxy: increase open files soft limit to maxfiles
    
    The pmproxy discovery module needs approx 30 + 4 times
    the number of pmloggers configured file descriptors,
    plus spares for RESTAPI client sockets and briefly more
    during daily log rolling. This can exceed the default
    soft limit on some platforms at ~ 200 pmloggers.

Comment 10 errata-xmlrpc 2021-11-09 17:50: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-2021:4171


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