Fixed in subscription-manager-1.11.3-2.el5
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