Bug 1947766 - tripleO-common healthcheck constantly spikes CPU by lsof
Summary: tripleO-common healthcheck constantly spikes CPU by lsof
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: Cédric Jeanneret
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-09 08:08 UTC by Cédric Jeanneret
Modified: 2021-12-09 20:19 UTC (History)
2 users (show)

Fixed In Version: openstack-tripleo-common-11.4.1-1.20210412113429.75bd92a.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 20:18:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1921714 0 None None None 2021-04-09 08:08:11 UTC
OpenStack gerrit 785326 0 None MERGED healthcheck_port: drop lsof in favor of awk/find 2021-04-09 08:08:11 UTC
Red Hat Issue Tracker OSP-2110 0 None None None 2021-11-18 11:36:12 UTC
Red Hat Product Errata RHBA-2021:3762 0 None None None 2021-12-09 20:19:00 UTC

Description Cédric Jeanneret 2021-04-09 08:08:12 UTC
First reported on Launchpad:
https://bugs.launchpad.net/tripleo/+bug/1921714

The healthcheck invoking "lsof" seem to load the server, especially when multiple containers rely on it.

The following upstream patch[1] changes how the healthcheck_port is working so that we don't rely on lsof anymore.
After multiple tests, it seems to be lighter and faster than the original one, thus preventing the CPU spikes.

Note there's still one healthcheck relying on lsof, but it's not as used as healthcheck_port (only for one nova container, and soon-to-be deprecated services such as zaqar).

This BZ is just in order to allow a clean backport downstream.


[1] https://review.opendev.org/c/openstack/tripleo-common/+/785326

Comment 20 errata-xmlrpc 2021-12-09 20:18:39 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 (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement advisory), 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:3762


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