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 885056

Summary: Getting system time out error while migrating from rhn to rhsm
Product: Red Hat Enterprise Linux 6 Reporter: spandey
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.4CC: jsefler, kbanerje, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 13:18:57 UTC Type: Bug
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: 771481    
Attachments:
Description Flags
Proxy 502 error
none
Console output
none
rhsm.log output none

Description spandey 2012-12-07 11:35:41 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
5/5 

Prerequisites:
Rhel6.4 with following subsription-mamager rpm .
 subscription-manager-firstboot-1.1.10-1.el6.x86_64
subscription-manager-1.1.10-1.el6.x86_64
subscription-manager-migration-data-1.12.2.6-1.el6.noarch
subscription-manager-migration-1.1.10-1.el6.x86_64
subscription-manager-gui-1.1.10-1.el6.x86_64


Steps to Repro : 
1) Register client to rhn classic and subscribe all channel present in “Release Channels for Red Hat Enterprise Linux 6 for x86_64 “
2) now start migration process from rhn to rhsm . 
3) Again start  migration from rhn to rhsm. 

Expected Result : 
Client should migrate from rhn to rhsm , it should skip channel whch is not available at rhsm side . 

Actual Result : 
Got attached  502 Proxy error with step 1 “errorwithsubscribing rhn”

Got following result at step 2 :
[root@dhcp193-87 ~]# rhn-migrate-classic-to-rhsm --force --servicelevel premium
Red Hat account: qa
Password: 

Retrieving existing RHN Classic subscription information ...

+-----------------------------------------------------+ 
System is currently subscribed to these RHN Classic Channels:
+-----------------------------------------------------+
rhel-x86_64-server-6
rhel-x86_64-server-dts-6-debuginfo
rhel-x86_64-server-dts-6
sam-rhel-x86_64-server-6-debuginfo
sam-rhel-x86_64-server-6
rhel-x86_64-server-6-rhevh-debuginfo
rhel-x86_64-server-6-rhevm-3-debuginfo
rhel-x86_64-server-fastrack-6-debuginfo
rhel-x86_64-server-fastrack-6
rhel-x86_64-server-6-rhevm-3.1-debuginfo
rhel-x86_64-server-6-rhevm-3.1

+-----------------------------------------------------+ 
Installing product certificates for these RHN Classic channels:
+-----------------------------------------------------+
rhel-x86_64-server-6
rhel-x86_64-server-dts-6-debuginfo
rhel-x86_64-server-dts-6

rhel-x86_64-server-ha-6
rhel-x86_64-server-6-debuginfo

Product certificates installed successfully to /etc/pki/product.

Preparing to unregister system from RHRelease Channels for Red Hat Enterprise Linux 6 for x86_64 
N Classic ...
Traceback (most recent call last):
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 713, in <module>
    main()
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 698, in main
    unRegisterSystemFromRhnClassic(sc, sk)
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 378, in unRegisterSystemFromRhnClassic
    result = sc.system.deleteSystems(sk, systemId)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1237, in request
    errcode, errmsg, headers = h.getreply()
  File "/usr/lib64/python2.6/httplib.py", line 1064, in getreply
    response = self._conn.getresponse()
  File "/usr/lib64/python2.6/httplib.py", line 990, in getresponse
    response.begin()
  File "/usr/lib64/python2.6/httplib.py", line 391, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python2.6/httplib.py", line 349, in _read_status
    line = self.fp.readline()
  File "/usr/lib64/python2.6/socket.py", line 433, in readline
    data = recv(1)
  File "/usr/lib64/python2.6/ssl.py", line 215, in recv
    return self.read(buflen)
  File "/usr/lib64/python2.6/ssl.py", line 136, in read
    return self._sslobj.read(len)
ssl.SSLError: The read operation timed out

Got following result with step 3 : 
[root@dhcp193-87 sm]# rhn-migrate-classic-to-rhsm --servicelevel premium --force
Red Hat account: qa
Password: 

Retrieving existing RHN Classic subscription information ...
Problem encountered getting the list of subscribed channels.  Exiting.

Comment 1 spandey 2012-12-07 11:38:30 UTC
Created attachment 659315 [details]
Proxy 502 error

Comment 2 spandey 2012-12-07 11:38:59 UTC
Created attachment 659316 [details]
Console output

Comment 3 spandey 2012-12-07 11:39:33 UTC
Created attachment 659317 [details]
rhsm.log output

Comment 6 spandey 2012-12-07 13:18:57 UTC

*** This bug has been marked as a duplicate of bug 881952 ***