Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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