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 2208224 - [Azure][RHEL-9] systemd runs in high CPU usage if unregister from RHSM
Summary: [Azure][RHEL-9] systemd runs in high CPU usage if unregister from RHSM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: redhat-cloud-client-configuration
Version: 9.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Alba Hita
QA Contact: Craig Donnelly
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-18 10:15 UTC by Yuxin Sun
Modified: 2023-11-07 10:06 UTC (History)
7 users (show)

Fixed In Version: redhat-cloud-client-configuration-1-11.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:36:55 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github RedHatInsights redhat-cloud-client-configuration pull 12 0 None open fix: path exists was reloading the service 2023-06-08 14:34:47 UTC
Red Hat Issue Tracker RHELPLAN-157581 0 None None None 2023-05-18 10:17:37 UTC
Red Hat Product Errata RHBA-2023:6548 0 None None None 2023-11-07 08:36:57 UTC

Description Yuxin Sun 2023-05-18 10:15:06 UTC
Description of problem:
redhat-cloud-client-configuration package is installed when VM boot up. Wait for the VM auto-register to RHSM successfully, and insights-client is registered as well. Then 'subscription-manager unregister'. The systemd begins to print the following logs continuously, and has >50% CPU usage.

May 18 05:34:53 localhost systemd[1]: insights-unregistered.service: Deactivated successfully.
May 18 05:34:53 localhost systemd[1]: Started Automatically check if manually Unregistered from Red Hat Insights Client.
May 18 05:34:53 localhost systemd[1]: Reloading.
May 18 05:34:53 localhost systemd-rc-local-generator[16479]: /etc/rc.d/rc.local is not marked executable, skipping.
May 18 05:34:53 localhost systemd[1]: /usr/lib/systemd/system/insights-register.service:23: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
May 18 05:34:53 localhost 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.

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                
      1 root      20   0  108248  18196  10952 R  51.2   1.0   1:48.42 systemd

Version-Release number of selected components (if applicable):
redhat-cloud-client-configuration-1-10.el9.noarch
systemd-252-13.el9_2.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a VM on Azure with redhat-cloud-client-configuration installed.
2. Wait for it to auto-register to RHSM. And ensure the insights-client is registered.
# insights-client --status
System is registered locally via .registered file. Registered at 2023-05-18T02:59:07.128754
Insights API confirms registration.
3. Unregister from RHSM manually
# subscription-manager unregister
4. Check /var/log/messages and CPU usage

Actual results:
As in the description.

Expected results:
Do not print such logs continuously. Do not in such a high CPU usage

Additional info:
It looks similar to BZ#2183947. Please help to check if they are in the same root cause.

When this issue is happened, the insights-client has been unregistered successfully:
# insights-client --status
Unable to fetch egg url https://cert-api.access.redhat.com/r/insights/platform/module-update-router/v1/channel?module=insights-core: 401: Unauthorized. Defaulting to /release
Please ensure that the system is registered with RHSM for CERT auth, or that correct credentials are set in /etc/insights-client/insights-client.conf for BASIC auth.
System is NOT registered locally via .registered file. Unregistered at 2023-05-18T09:19:12.428156
Insights API could not be reached to confirm registration status.

# ll /etc/pki/consumer/cert.pem
ls: cannot access '/etc/pki/consumer/cert.pem': No such file or directory

No such issue in RHEL-8.9(redhat-cloud-client-configuration-1-10.el8.noarch, systemd-239-75.el8.x86_64)

Comment 6 Li Tian 2023-06-30 01:48:22 UTC
This issue is present on RHEL9.3 without any actions right after boot. dmesg and console keep logging:

[  100.535277] systemd-rc-local-generator[7214]: /etc/rc.d/rc.local is not marked executable, skipping.

constantly about twice every second.

systemd-252-15.el9.x86_64
insights-client-3.1.7-13.el9.noarch

Comment 14 errata-xmlrpc 2023-11-07 08:36:55 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 (redhat-cloud-client-configuration bug fix and enhancement update), 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-2023:6548


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