Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2211676

Summary: [RFE]: Change logging priority for "Installed product 479 not present in response from server." if compliance is TRUE
Product: Red Hat Enterprise Linux 8 Reporter: Taft Sanders <tasander>
Component: subscription-managerAssignee: CSI Client Tools Bugs <csi-client-tools-bugs>
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.8Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-01 14:06:30 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 Taft Sanders 2023-06-01 13:21:48 UTC
Description of problem:
When a client registers to an SCA-enabled environment, the following message is seen multiple times and causes concern for users.

2023-05-31 17:00:01,047 [WARNING] subscription-manager:120197:MainThread @cert_sorter.py:199 - Installed product 479 not present in response from server.
2023-05-31 17:00:01,172 [WARNING] subscription-manager:120197:MainThread @cert_sorter.py:199 - Installed product 479 not present in response from server.
2023-05-31 17:00:01,298 [WARNING] subscription-manager:120197:MainThread @cert_sorter.py:199 - Installed product 479 not present in response from server.
2023-05-31 17:00:01,474 [WARNING] subscription-manager:120197:MainThread @cert_sorter.py:199 - Installed product 479 not present in response from server.

Version-Release number of selected component (if applicable):
subscription-manager-1.28.36-2.el8.x86_64


How reproducible:
Every time

Steps to Reproduce:
1. Register any RHEL 7,8,9 server to an SCA enabled environment
2.
3.

Actual results:
Warning messages are seen

Expected results:
This should be logged as debug if compliance is true

Additional info:
From the function that writes this warning to the log, we should first check if compliance is true or not before writing this line as a warning. Something like the following:

[root@drone86 ~]# vim /usr/lib64/python3.6/site-packages/subscription_manager/cert_sorter.py +194

194         for pid in list(self.installed_products.keys()):
                if status[compliance] != 'True':
195                 if pid not in self.valid_products and pid not in \
196                     self.partially_valid_products and pid not in \
197                     unentitled_pids:
198                     log.warning("Installed product %s not present in response from "
199                          "server." % pid)
200                     unentitled_pids.append(pid)
                else:
                    log.debug("Installed product %s not present in response from "
                             "server." % pid)

Comment 2 Pino Toscano 2023-06-01 14:06:30 UTC
There is no "compliance" when using SCA :)

This looks like a duplicate of bug 1982670, so I'm marking it as such.

*** This bug has been marked as a duplicate of bug 1982670 ***