Bug 769642 - confusing output from rhn-migrate-to-rhsm when autosubscribe fails
Summary: confusing output from rhn-migrate-to-rhsm when autosubscribe fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 6.3
Assignee: Bryan Kearney
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 738066 769856
TreeView+ depends on / blocked
 
Reported: 2011-12-21 15:17 UTC by Chris Duryee
Modified: 2012-05-29 19:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 768415
: 769856 (view as bug list)
Environment:
Last Closed: 2012-05-29 19:05:15 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0804 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2012-06-19 19:51:31 UTC

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


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