Bug 1855893
Summary: | full_refresh_on_yum=1 does not appear to update the repo-overrides in redhat.repo after a yum transaction | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.3 | CC: | csnyder, jhnidek, lmiksik, redakkan |
Target Milestone: | rc | Keywords: | Regression, Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 01:39:41 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1842946 |
Description
John Sefler
2020-07-10 20:44:23 UTC
Verifying Version.... [root@kvm-06-guest33 ~]# rpm -q subscription-manager subscription-manager-1.27.14-1.el8.x86_64 [root@kvm-06-guest33 ~]# rpm -q subscription-manager --changelog | grep 1855893 - 1855893: Generate redhat.repo properly; ENT-2636 (jhnidek) Steps to Test... [root@kvm-06-guest33 ~]# subscription-manager config --rhsm.full_refresh_on_yum=0 [root@kvm-06-guest33 ~]# subscription-manager config --list | egrep "full_refresh_on_yum|Default" full_refresh_on_yum = [0] [] - Default value in use [root@kvm-06-guest33 ~]# subscription-manager register --auto-attach Registering to: subscription.rhsm.redhat.com:443/subscription Username: rhelentqe Password: The system has been registered with ID: 871f6d46-a45b-4559-8e8a-21bab5df9919 The registered system name is: kvm-06-guest33.hv2.lab.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta Status: Subscribed [root@kvm-06-guest33 ~]# subscription-manager repos --list-disabled | grep -A4 rhel-8-for-x86_64-highavailability-htb-rpms Repo ID: rhel-8-for-x86_64-highavailability-htb-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - High Availability HTB (RPMs) Repo URL: https://cdn.redhat.com/content/htb/rhel8/8/x86_64/highavailability/os Enabled: 0 [root@kvm-06-guest33 ~]# subscription-manager repo-override --repo=rhel-8-for-x86_64-highavailability-htb-rpms --add=retries:5 --add=timeout:40 --add=enabled:true [root@kvm-06-guest33 ~]# subscription-manager repo-override --list Repository: rhel-8-for-x86_64-highavailability-htb-rpms enabled: true retries: 5 timeout: 40 [root@kvm-06-guest33 ~]# yum repolist Updating Subscription Management repositories. repo id repo name rhel-8-for-x86_64-appstream-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream HTB (RPMs) rhel-8-for-x86_64-baseos-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs) rhel-8-for-x86_64-highavailability-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - High Availability HTB (RPMs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PASSED: As expected rhel-8-for-x86_64-highavailability-htb-rpms is available since we added the enabled:true as a repo-override [root@kvm-06-guest33 ~]# grep rhel-8-for-x86_64-highavailability-htb-rpms /etc/yum.repos.d/redhat.repo -A14 [rhel-8-for-x86_64-highavailability-htb-rpms] name = Red Hat Enterprise Linux 8 for x86_64 - High Availability HTB (RPMs) baseurl = https://cdn.redhat.com/content/htb/rhel8/8/x86_64/highavailability/os enabled = true gpgcheck = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify = 1 sslcacert = /etc/rhsm/ca/redhat-uep.pem sslclientkey = /etc/pki/entitlement/4722886298080466843-key.pem sslclientcert = /etc/pki/entitlement/4722886298080466843.pem metadata_expire = 86400 enabled_metadata = 0 retries = 5 timeout = 40 [root@kvm-06-guest33 ~]# rm /var/lib/rhsm/cache/content_overrides.json rm: remove regular file '/var/lib/rhsm/cache/content_overrides.json'? y [root@kvm-06-guest33 ~]# yum repolist Updating Subscription Management repositories. repo id repo name rhel-8-for-x86_64-appstream-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream HTB (RPMs) rhel-8-for-x86_64-baseos-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PASSED: As expected rhel-8-for-x86_64-highavailability-htb-rpms is NOT available since we forcibly removed it from the cached overrides and because rhsm.full_refresh_on_yum=0, the yum transaction was blocked from refreshing the cache [root@kvm-06-guest33 ~]# subscription-manager config --rhsm.full_refresh_on_yum=1 [root@kvm-06-guest33 ~]# subscription-manager config --list | egrep "full_refresh_on_yum|Default" full_refresh_on_yum = 1 [] - Default value in use [root@kvm-06-guest33 ~]# [root@kvm-06-guest33 ~]# yum repolist Updating Subscription Management repositories. repo id repo name rhel-8-for-x86_64-appstream-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream HTB (RPMs) rhel-8-for-x86_64-baseos-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs) rhel-8-for-x86_64-highavailability-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - High Availability HTB (RPMs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PASSED & VERIFIED: As expected rhel-8-for-x86_64-highavailability-htb-rpms is NOW available since we set rhsm.full_refresh_on_yum=1 which told the yum repolist to refresh redhat.repo and update its cache This bug is fixed. 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 (subscription-manager 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-2020:4460 |