Bug 1969895

Summary: Collectd memory consumption is growing gradually causing 'out of memory' issue on nodes.
Product: Red Hat OpenStack Reporter: Matthias Runge <mrunge>
Component: openstack-tripleo-heat-templatesAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: csibbitt, gkadam, gregraka, lnatapov, mburns, mrunge, peter.hardon, rhayakaw, rmccabe, shtiwari
Target Milestone: z7Keywords: Triaged, ZStream
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20210628063306.29a02c1.el8ost Doc Type: Release Note
Doc Text:
With this update, the memory limit for the `collectd` container has been increased to 512 MB. When this limit is exceeded, the container restarts.
Story Points: ---
Clone Of: 1966428
: 2007255 (view as bug list) Environment:
Last Closed: 2021-12-09 20:19:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2007255    

Comment 7 Matthias Runge 2021-06-18 06:00:33 UTC
The upstream patch has two approval votes from core reviewers. Unfortunately, the CI is not happy (unrelated to the patch). I can not move forward with providing a hot-fix without having the code merged at least to the master branch upstream.

Comment 8 Matthias Runge 2021-06-24 07:04:43 UTC
the backport to train has finally merged https://review.opendev.org/c/openstack/tripleo-heat-templates/+/797704

Comment 11 Matthias Runge 2021-06-28 06:58:44 UTC
How to test:
podman inspect collectd | grep Memory

should show a limit for "Memory", if it shows 0, there is no limit set.

Comment 18 Leonid Natapov 2021-08-10 14:50:54 UTC
root@ctrl-0-16-1 collectd]# podman inspect collectd | grep Memory 

"Memory": 536870912, 
"KernelMemory": 0, 
"MemoryReservation": 0, 
"MemorySwap": 1073741824, 
"MemorySwappiness": -1,

Comment 28 Peter Hardon 2021-11-03 14:15:39 UTC
Please take a look at this commit which might fix the source of the issue (no collectd container restarts)
Would it be possible to backport it to train (RHOSP 16.1)?
https://github.com/collectd/collectd/commit/e7dd149f6f8279d844d172663023a841aa032a93

Thx,
Peter

Comment 30 Matthias Runge 2021-11-22 09:43:03 UTC
(In reply to Peter Hardon from comment #28)
> Please take a look at this commit which might fix the source of the issue
> (no collectd container restarts)
> Would it be possible to backport it to train (RHOSP 16.1)?
> https://github.com/collectd/collectd/commit/
> e7dd149f6f8279d844d172663023a841aa032a93
> 
> Thx,
> Peter

Hi Peter,

the commit has been included in collectd for OSP since OSP 13. It is possible (and recommended to set the value).

Comment 37 errata-xmlrpc 2021-12-09 20:19:41 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