Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-17009

systemd[1]: /usr/lib/systemd/system/insights-register.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • redhat-cloud-client-configuration-1-12.el9
    • None
    • None
    • rhel-sst-insights
    • 20
    • None
    • QE ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • All
    • None

      Description of problem:

      Deprecated MemoryLimit is used in insights-register unit file.

      [root@ip-10-116-1-241 ec2-user]# systemd-analyze verify insights-register.service
      /usr/lib/systemd/system/insights-register.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
      [root@ip-10-116-1-241 ec2-user]# rpm -qf /usr/lib/systemd/system/insights-register.service
      redhat-cloud-client-configuration-1-11.el9.noarch
      [root@ip-10-116-1-241 ec2-user]# systemctl cat insights-register

      1. /usr/lib/systemd/system/insights-register.service
      2. This file is part of insights-client.
        #
      3. Any changes made to this file will be overwritten during a software update. To
      4. override a parameter in this file, create a drop-in file, typically located at
      5. /etc/systemd/system/insights-register.service.d/override.conf. Put the desired
      6. overrides in that file and reload systemd. The next time this service is run
      7. (either manually or via a systemd timer), the overridden values will be in
      8. effect.
        #
      9. For more information about systemd drop-in files, see systemd.unit(5).

      [Unit]
      Description=Automatically Register with Red Hat Insights
      Documentation=man:insights-client(8)
      After=network-online.target

      [Service]
      Type=simple
      ExecStart=/usr/bin/insights-client --register
      Restart=no
      WatchdogSec=900
      CPUQuota=30%
      MemoryLimit=2G
      TasksMax=300
      BlockIOWeight=100
      ExecStartPost=-/bin/bash -c "echo 2G >/dev/null 2>&1 > /sys/fs/cgroup/memory/system.slice/insights-register.service/memory.memsw.limit_in_bytes"
      ExecStartPost=-/bin/bash -c "echo 1G >/dev/null 2>&1 > /sys/fs/cgroup/memory/system.slice/insights-register.service/memory.soft_limit_in_bytes"
      ExecStopPost=/bin/systemctl mask --now insights-register.path

      Below is the console output:
      [ 24.786463] XFS (nvme0n1p3): Ending recovery (logdev: internal)
      [ 24.824649] ppdev: user-space parallel port driver
      [ 28.117088] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
      [ 30.912641] block nvme0n1: the capability attribute has been deprecated.

      RHEL Version:
      RHEL-9.3( 5.14.0-362.8.1.el9_3.x86_64)

      How reproducible:
      100%

      Steps to Reproduce:
      1. Launch a RHEL-9.3 system with redhat-cloud-client-configuration installed.
      2. Check journal log

      Actual results:
      See warning from journal log

      Expected results:
      No such warning in journal log

      Additional info:

      • Here is a reference bug that a similar issue got fixed in insights-client pkg 2155468.

              rh-ee-jajerome Jason Jerome
              xiliang@redhat.com Frank Liang
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: