Bug 769642

Summary: confusing output from rhn-migrate-to-rhsm when autosubscribe fails
Product: Red Hat Enterprise Linux 6 Reporter: Chris Duryee <cduryee>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: jsefler, spandey, wpoteat
Target Milestone: rc   
Target Release: 6.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 768415
: 769856 (view as bug list) Environment:
Last Closed: 2012-05-29 19:05:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 738066, 769856    

Description Chris Duryee 2011-12-21 15:17:06 UTC
In the output below, the migration script displays "Successfully subscribed" even though there was not a successful autosubscribe event.

There is no reason to display the "Successfully subscribed" message at all, since subscription-manager already displays proper output.


+++ This bug was initially created as a clone of Bug #768415 +++

[root@dhcp201-205 ~]# rhn-migrate-classic-to-rhsm 
RHN Username: stage_test_31
Password: 

Retrieving existing RHN classic subscription information ...
+----------------------------------+
System is currently subscribed to:
+----------------------------------+
rhel-i386-client-5
rhel-i386-client-supplementary-5
rhel-i386-client-fastrack-5
rhn-tools-rhel-i386-client-5

List of channels for which certs are being copied
rhel-i386-client-5
rhel-i386-client-supplementary-5
rhel-i386-client-fastrack-5
rhn-tools-rhel-i386-client-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: d327c7de-1771-4e6e-b970-6005bbb8cd6d 
System 'dhcp201-205.englab.pnq.redhat.com' successfully registered to Certificate-based RHN.

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

Successfully subscribed.

Comment 2 Chris Duryee 2012-01-04 19:12:33 UTC
452cee38b48b7aad8d5f7a4a4889f273ad8ec971 master 0.99.4+

Comment 5 John Sefler 2012-03-09 23:49:21 UTC
Verifying Verison...
# rpm -q subscription-manager-migration
subscription-manager-migration-0.99.9-1.el6.x86_64




# 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-6

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

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: 47abd8dd-a96b-4693-908b-069dbba77f07
System 'hp-xw9300-01.rhts.eng.bos.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/47abd8dd-a96b-4693-908b-069dbba77f07 to view the details, and to make changes if necessary.



^^^ Notice that the message "Successfully subscribed." from comment #0 has been removed from the output of rhn-migrate-classic-to-rhsm tool and the Installed Product Current Status listing gives the "Status" result of the attempt to auto-subscribe for each of the installed products individually.

Moving to VERIFIED