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 2155468 - 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.
Summary: systemd[1]: /usr/lib/systemd/system/insights-client-boot.service:24: Unit use...
Keywords:
Status: CLOSED DUPLICATE of bug 2148270
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: insights-client
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Link Dupont
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-21 10:29 UTC by Jan Pazdziora (Red Hat)
Modified: 2023-06-28 14:46 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-28 14:46:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-143026 0 None None None 2022-12-21 10:39:07 UTC

Description Jan Pazdziora (Red Hat) 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.


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