Bug 1090206
Summary: | [RFE] The redhat.repo file should be refreshed after a successful subscription | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.11 | CC: | awood, bgollahe, bkearney, jesusr, omaciel, tlavigne |
Target Milestone: | rc | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1008016 | Environment: | |
Last Closed: | 2014-09-16 00:22: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: | |||
Bug Depends On: | 1008016 | ||
Bug Blocks: | 1039651 |
Comment 1
Carter Kozak
2014-04-29 13:47:43 UTC
Verifying Version... [root@jsefler-5 ~]# rpm -q subscription-manager subscription-manager-1.11.3-3.el5 [root@jsefler-5 ~]# cat /etc/yum.repos.d/redhat.repo cat: /etc/yum.repos.d/redhat.repo: No such file or directory [root@jsefler-5 ~]# subscription-manager register --serverurl=subscription.rhn.stage.redhat.com:443/subscription --autosubscribe Username: stage_test_12 Password: The system has been registered with ID: ef730989-2181-4ffd-9834-c8732fe49c01 Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@jsefler-5 ~]# head -24 /etc/yum.repos.d/redhat.repo # # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # # *** This file is auto-generated. Changes made here will be over-written. *** # *** Use "subscription-manager repo-override --help" if you wish to make changes. *** # # If this file is empty and this system is subscribed consider # a "yum repolist" to refresh available repos # [rhel-5-server-rpms] name = Red Hat Enterprise Linux 5 Server (RPMs) baseurl = https://cdn.redhat.com/content/dist/rhel/server/5/$releasever/$basearch/os enabled = 1 gpgcheck = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify = 1 sslcacert = /etc/rhsm/ca/redhat-uep.pem sslclientkey = /etc/pki/entitlement/4801775661372030690-key.pem sslclientcert = /etc/pki/entitlement/4801775661372030690.pem metadata_expire = 86400 ui_repoid_vars = releasever basearch VERIFIED: The redhat.repo file is updated automatically without any explicit yum transaction calls upon registration with --autosubscribe. [root@jsefler-5 ~]# subscription-manager unsubscribe --all 1 subscription removed at the server. 1 local certificate has been deleted. [root@jsefler-5 ~]# head -24 /etc/yum.repos.d/redhat.repo # # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # # *** This file is auto-generated. Changes made here will be over-written. *** # *** Use "subscription-manager repo-override --help" if you wish to make changes. *** # # If this file is empty and this system is subscribed consider # a "yum repolist" to refresh available repos # VERIFIED: The redhat.repo file is updated automatically without any explicit yum transaction calls upon unsubscribing. [root@jsefler-5 ~]# subscription-manager list --available | grep Pool | tail -1 Pool ID: 8a99f98343201f42014351f9a23a22b6 [root@jsefler-5 ~]# subscription-manager subscribe --pool=8a99f98343201f42014351f9a23a22b6 Successfully attached a subscription for: Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to 4 guests) [root@jsefler-5 ~]# head -24 /etc/yum.repos.d/redhat.repo# # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # # *** This file is auto-generated. Changes made here will be over-written. *** # *** Use "subscription-manager repo-override --help" if you wish to make changes. *** # # If this file is empty and this system is subscribed consider # a "yum repolist" to refresh available repos # [rhel-5-server-rpms] name = Red Hat Enterprise Linux 5 Server (RPMs) baseurl = https://cdn.redhat.com/content/dist/rhel/server/5/$releasever/$basearch/os enabled = 1 gpgcheck = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify = 1 sslcacert = /etc/rhsm/ca/redhat-uep.pem sslclientkey = /etc/pki/entitlement/8391410566660130584-key.pem sslclientcert = /etc/pki/entitlement/8391410566660130584.pem metadata_expire = 86400 ui_repoid_vars = releasever basearch VERIFIED: The redhat.repo file is updated automatically without any explicit yum transaction calls upon subscribing. [root@jsefler-5 ~]# subscription-manager unregister System has been unregistered. [root@jsefler-5 ~]# head -24 /etc/yum.repos.d/redhat.repo # # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # # *** This file is auto-generated. Changes made here will be over-written. *** # *** Use "subscription-manager repo-override --help" if you wish to make changes. *** # # If this file is empty and this system is subscribed consider # a "yum repolist" to refresh available repos # [root@jsefler-5 ~]# VERIFIED: The redhat.repo file is updated automatically without any explicit yum transaction calls upon unregistering [root@jsefler-5 ~]# subscription-manager clean All local data removed [root@jsefler-5 ~]# head -24 /etc/yum.repos.d/redhat.repo head: cannot open `/etc/yum.repos.d/redhat.repo' for reading: No such file or directory [root@jsefler-5 ~]# VERIFIED: The redhat.repo file is updated automatically (deleted) without any explicit yum transaction calls upon calling clean. 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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1225.html |