Bug 1787197
Summary: | rhsmcertd-worker fires as many RHSM queries as number of enabled repos | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Pavel Moravec <pmoravec> |
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
Status: | CLOSED NOTABUG | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.1 | CC: | bcourt, csnyder, dsynk, jhnidek, lmiksik, wclark |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-02-10 10:13:37 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
Pavel Moravec
2020-01-01 11:05:51 UTC
I can confirm that this bug has been already fixed here: https://bugzilla.redhat.com/show_bug.cgi?id=1741183 The #1741183 is already in ON_QA state. Backport to RHEL8 is _not_ needed as this BZ affects yum systems but not dnf ones. This does not happen in RHEL8 / on dnf systems, as dnf must cache its config somehow. Cf the fix https://github.com/candlepin/subscription-manager/pull/2204/files and mimic the underlying calls manually. On RHEL7 when I run a python script: import yum yb = yum.YumBase() yb.conf (what exactly _obtain_mappings_yum did before the patch), then: 1) I see "Loaded plugins: product-id, subscription-manager" (cf. the bz1741183 complaint) 2) the latest call "yb.conf" triggers 5 requests against RHSM server (to URIs for /rhsm/, /rhsm/status, and for consumer serials, content_overrides + release) This is executed for each repo enabled when running my reproducer. On RHEL8 when I run python script: import dnf db = dnf.dnf.Base() db.conf then no requests are raised against RHSM server, at all. This means that both this bz1787197 and bz1741183 are applicable to yum systems but not dnf systems. So the backport of bz1741183 fix to RHEL8 is not required. Due to the above statement, no bug on RHEL8 (while RHEL7 is tracked under 1741183). So closing this as NOTABUG (on rhel8). |