Bug 2155468

Summary: systemd[1]: /usr/lib/systemd/system/insights-client-boot.service:24: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
Product: Red Hat Enterprise Linux 9 Reporter: Jan Pazdziora <jpazdziora>
Component: insights-clientAssignee: Link Dupont <link>
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: unspecified    
Version: 9.2CC: ahitacat, cmarinea, dranck, fjansen, fsumsal, link, pakotvan, stomsa, xiliang
Target Milestone: rcKeywords: CustomerScenariosInitiative, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-28 14:46:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Pazdziora 2022-12-21 10:29:59 UTC
Description of problem:

There is a message in the journal from systemd not being happy with insights-client-boot.service syntax.

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

insights-client-3.1.7-12.el9.noarch
systemd-252-2.el9.x86_64

How reproducible:

Deteministic.

Steps to Reproduce:
1. Install RHEL 9.2 (which now includes rhc and thus insights-client).
2. # journalctl -l | grep 'will be removed'

Actual results:

Dec 21 10:15:16 machine.example.com systemd[1]: /usr/lib/systemd/system/insights-client-boot.service:24: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.

Expected results:

No such message.

Additional info:

Comment 1 Frank Liang 2023-01-05 08:36:05 UTC
See the same log from our testing.
[root@ip-10-116-2-92 ec2-user]# systemd-analyze verify insights-client-boot.service
/usr/lib/systemd/system/insights-client-boot.service:24: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
[root@ip-10-116-2-92 ec2-user]# systemctl cat insights-client-boot.service
# /usr/lib/systemd/system/insights-client-boot.service
# This file is part of insights-client.
#
# Any changes made to this file will be overwritten during a software update. To
# override a parameter in this file, create a drop-in file, typically located at
# /etc/systemd/system/insights-client-boot.service.d/override.conf Put the desired
# overrides in that file and reload systemd.
#
# For more information about systemd drop-in files, see systemd.unit(5).

[Unit]
Description=Run Insights Client at boot
Documentation=man:insights-client(8)
After=network-online.target
ConditionPathExists=/etc/insights-client/.run_insights_client_next_boot

[Service]
Type=oneshot
ExecStart=/usr/bin/insights-client --retry 3
Restart=no
WatchdogSec=900
CPUQuota=30%
MemoryHigh=1G
MemoryMax=2G
MemoryLimit=2G
TasksMax=300
BlockIOWeight=100
ExecStartPre=/bin/rm -f /etc/insights-client/.run_insights_client_next_boot

[Install]
WantedBy=multi-user.target

Comment 2 Alba Hita 2023-01-10 14:32:08 UTC
I could reproduce this situation:

>>># journalctl -l | grep 'will be removed'
Jan 10 05:39:02 template-iqe-jslave-rhel92 systemd[1]: /usr/lib/systemd/system/insights-client-boot.service:24: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
Jan 10 06:49:04 test-9rhel2 systemd[1]: /usr/lib/systemd/system/insights-client.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
Jan 10 06:49:08 test-9rhel2 systemd[1]: /usr/lib/systemd/system/insights-client.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
Jan 10 06:49:19 test-9rhel2 systemd[1]: /usr/lib/systemd/system/insights-client.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.