Bug 1090206 - [RFE] The redhat.repo file should be refreshed after a successful subscription
Summary: [RFE] The redhat.repo file should be refreshed after a successful subscription
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.11
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On: 1008016
Blocks: rhsm-rhel511
TreeView+ depends on / blocked
 
Reported: 2014-04-22 22:59 UTC by John Sefler
Modified: 2014-09-16 00:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1008016
Environment:
Last Closed: 2014-09-16 00:22:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1225 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2014-09-16 04:15:23 UTC

Comment 1 Carter Kozak 2014-04-29 13:47:43 UTC
Fixed in subscription-manager-1.11.3-2.el5

Comment 3 John Sefler 2014-05-19 21:52:11 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.

Comment 6 errata-xmlrpc 2014-09-16 00:22:37 UTC
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


Note You need to log in before you can comment on or make changes to this bug.