Bug 769856 - confusing output from rhn-migrate-to-rhsm when autosubscribe fails
Summary: confusing output from rhn-migrate-to-rhsm when autosubscribe fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 5.8
Assignee: Chris Duryee
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On: 769642
Blocks: 715031 782064
TreeView+ depends on / blocked
 
Reported: 2011-12-22 14:47 UTC by Chris Duryee
Modified: 2012-08-10 09:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of: 769642
Environment:
Last Closed: 2012-02-21 06:44:11 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0154 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 15:06:04 UTC

Comment 1 Chris Duryee 2012-01-04 19:11:38 UTC
9913600 RHEL5.8 0.98.11+
bug is already in master under rhel6 bz

Comment 2 John Sefler 2012-01-09 21:17:46 UTC
Verifying Version...
[root@jsefler-onprem-5server ~]# rpm -qa | grep subscription-managersubscription-manager-migration-0.98.10-1.git.9.a37c702.el5
subscription-manager-gnome-0.98.10-1.git.9.a37c702.el5
subscription-manager-0.98.10-1.git.9.a37c702.el5
subscription-manager-migration-data-1.7-1.el5
subscription-manager-firstboot-0.98.10-1.git.9.a37c702.el5


[root@jsefler-onprem-5server ~]# subscription-manager list --installed
No installed Products to list
[root@jsefler-onprem-5server ~]# subscription-manager repos --list
The system is not entitled to use any repositories.

^^^ WE ARE STARTING OUT WITH NO RHEL5 PRODUCT INSTALLED AND HAVE NO ACCESS TO RHEL5 CONTENT

[root@jsefler-onprem-5server ~]# rhnreg_ks -v --serverUrl=https://xmlrpc.rhn.redhat.com/XMLRPC --username=qa  --password=****
[root@jsefler-onprem-5server ~]# yum repolist
Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
repo id               repo name                                           status
rhel-x86_64-server-5  Red Hat Enterprise Linux (v. 5 for 64-bit x86_64)   12,352
repolist: 12,352

^^^ WE HAVE USED RHN CLASSIC TO REGISTER HAVE ACCESS TO RHEL5 CONTENT

[root@jsefler-onprem-5server ~]# rhn-migrate-classic-to-rhsm --cli-only
RHN Username: qa
Password: 

Retrieving existing RHN classic subscription information ...
+----------------------------------+
System is currently subscribed to:
+----------------------------------+
rhel-x86_64-server-5

List of channels for which certs are being copied
rhel-x86_64-server-5

Product Certificates copied successfully to /etc/pki/product !!

Preparing to unregister system from RHN classic ...
System successfully unregistered from RHN Classic.

Attempting to register system to Certificate-based RHN ...
The system has been registered with id: eaac6329-c35e-4f90-b772-2e6e39661a44 
System 'jsefler-onprem-5server.usersys.redhat.com' successfully registered to Certificate-based RHN.

Attempting to auto-subscribe to appropriate subscriptions ...
Installed Product Current Status:
ProductName:          	Red Hat Enterprise Linux Server
Status:               	Subscribed               


Please visit https://access.redhat.com/management/consumers/eaac6329-c35e-4f90-b772-2e6e39661a44 to view the details, and to make changes if necessary.
[root@jsefler-onprem-5server ~]# 

^^^ VERIFIED... The "Successfully subscribed." message has been removed from rhn-migrate-classic-to-rhsm stdout (because the output from the subscription-manager --auto already gives the installed status, we do not need a "Successfully subscribed." feedback message since it would be confusing to see this message when no entitlements are granted.

[root@jsefler-onprem-5server ~]# echo $?
0
[root@jsefler-onprem-5server ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
ProductName:          	Red Hat Enterprise Linux Server
Version:              	5.7                      
Arch:                 	x86_64                   
Status:               	Subscribed               
Starts:               	10/05/2011               
Expires:              	01/01/2022               

[root@jsefler-onprem-5server ~]# ls /etc/pki/product/
69.pem

^^^ VERIFIED The RHEL5 product cert has been installed by rhn-migrate-classic-to-rhsm

[root@jsefler-onprem-5server ~]# yum repolist
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
rhel-5-server-rpms                                       | 3.7 kB     00:00     
rhel-5-server-rpms/primary_db                            | 6.1 MB     00:03     
rhel-ha-for-rhel-5-server-rpms                           | 2.4 kB     00:00     
rhel-ha-for-rhel-5-server-rpms/primary                   |  19 kB     00:00     
rhel-ha-for-rhel-5-server-rpms                                          155/155
rhel-rs-for-rhel-5-server-rpms                           | 2.4 kB     00:00     
rhel-rs-for-rhel-5-server-rpms/primary                   |  22 kB     00:00     
rhel-rs-for-rhel-5-server-rpms                                          185/185
rhel-scalefs-for-rhel-5-server-rpms                      | 1.5 kB     00:00     
rhel-scalefs-for-rhel-5-server-rpms/primary              | 2.2 kB     00:00     
rhel-scalefs-for-rhel-5-server-rpms                                         3/3
repo id                             repo name                             status
rhel-5-server-rpms                  Red Hat Enterprise Linux 5 Server (RP 12,352
rhel-ha-for-rhel-5-server-rpms      Red Hat Enterprise Linux High Availab    155
rhel-rs-for-rhel-5-server-rpms      Red Hat Enterprise Linux Resilient St    185
rhel-scalefs-for-rhel-5-server-rpms Red Hat Enterprise Linux Scalable Fil      3
repolist: 12,695

^^^ VERIFIED That our certificated-based entitlement has access to content from repo rhel-5-server-rpms that provides 12,352 packages (the same as the rhel-x86_64-server-5 repo with 12,352 packages from the RHN Classic tooling).


moving to VERIFIED

Comment 3 William Poteat 2012-01-23 16:35:28 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 4 errata-xmlrpc 2012-02-21 06:44:11 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-2012-0154.html


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