-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-9.6, rhel-10.0
-
No
-
Low
-
subs-client-tools-2
-
8
-
False
-
False
-
-
None
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
There is a configuration in /etc/rhsm/rhsm.conf called report_package_profile that defaults to 1. When it is turned off by setting it to 0, the system's package profile should not be reported to the entitlement server. Setting report_package_profile to 0 does not work. The system's package profile is always reported during registration regardless of the report_package_profile setting.
What is the impact of this issue to you?
This is not a severe issue since the default value of 1 works. It's merely a configuration setting that does not turn off the package profile uploader when configured to 0.
Please provide the package NVR for which the bug is seen:
[root@kvm-03-guest13 ~]# rpm -q subscription-manager subscription-manager-1.29.43-1.el9.x86_64
How reproducible is this bug?:
Always
Steps to reproduce
[root@kvm-03-guest13 ~]# subscription-manager config --rhsm.report_package_profile=0 [root@kvm-03-guest13 ~]# grep report_package_profile /etc/rhsm/rhsm.conf report_package_profile = 0 [root@kvm-03-guest13 ~]# truncate --size=0 /var/log/rhsm/rhsmcertd.log [root@kvm-03-guest13 ~]# tail -f /var/log/rhsm/rhsmcertd.log & [1] 130089 [root@kvm-03-guest13 ~]# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: stage_rhsmqe_testuser01 Password: The system has been registered with ID: 78c526dc-95cf-4652-901a-b18d2a85d3dd The registered system name is: kvm-03-guest13.lab.eng.rdu2.dc.redhat.com [root@kvm-03-guest13 ~]# Tue Jan 14 14:32:57 2025 [INFO] Uploading of package profile performed successfully
Expected results
No package profile should be uploaded when report_package_profile = 0
Actual results
Within 10 seconds after the system was registered, a message was appended to rhsmcertd.log stating "Uploading of package profile performed successfully" and a query to the errata server shows that to be true...
[root@kvm-03-guest13 ~]# curl --silent --show-error --insecure --request GET 'https://errata.corp.stage.redhat.com/errata-cron/rest/profile/78c526dc-95cf-4652-901a-b18d2a85d3dd/packages' | jq
[
{
"summary": "Libraries for adding ModemManager support to applications that use glib.",
"advisories": [],
"arch": "x86_64",
"name": "ModemManager-glib",
"version": "1.20.2",
"epoch": 0,
"release": "1.el9"
},
...
Additional Information
Here is the man page description for report_package_profile...
[root@kvm-03-guest13 ~]# man rhsm.conf | grep -e "^ *report_package_profile" -A8 report_package_profile Set to 1 if rhsmcertd should report the system's current package profile to the subscription service. This report helps the subscription service provide better errata notifications. If supported by the entitlement server, enabled repos, enabled modules, and packages present will be reported. This configuration also governs package profile reporting when the "dnf uploadprofile" command is executed.
PLEASE READ THE FIRST COMMENT BELOW BEFORE DOING ANY WORK ON THIS ISSUE. A MAN PAGE CLARIFICATION MAY BE SUFFICIENT.