Bug 783990 - Trace back displayed for non network host while migration.
Summary: Trace back displayed for non network host while migration.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 6.3
Assignee: Bryan Kearney
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 738066
TreeView+ depends on / blocked
 
Reported: 2012-01-23 13:06 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 13:05:23 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 spandey 2012-01-23 13:06:38 UTC
Description of problem:


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


How reproducible:
1/1

Prerequisites:
 Rhel5.8 server with following subscription-manager rpm 
subscription-manager-migration-data-1.11-1.el5
subscription-manager-debuginfo-0.98.13-1.el5
subscription-manager-firstboot-0.98.13-1.el5
subscription-manager-0.98.13-1.el5
subscription-manager-migration-0.98.13-1.el5
subscription-manager-gnome-0.98.13-1.el5

Steps to verify :
Login to console and stop network service (ifdown eth0)
execute rhn-migrate-classic-to-rhsm with valid user and password.

Expected Result : 
Proper Message should display for network error . Traceback should not display on console .

Actual Result : 
[root@dhcp201-155 ~]# rhn-migrate-classic-to-rhsm 
RHN Username: qa
Password: 
Traceback (most recent call last):
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 398, in ?
    main()
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 372, in main
    checkOkToProceed(username, password)
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 131, in checkOkToProceed
    cp.getOwnerList(username)
  File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 516, in getOwnerList
    return self.conn.request_get(method)
  File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 267, in request_get
    return self._request("GET", method)
  File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 227, in _request
    conn.request(request_type, handler, body=body, headers=headers)
  File "/usr/lib64/python2.4/httplib.py", line 810, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.4/httplib.py", line 833, in _send_request
    self.endheaders()
  File "/usr/lib64/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib64/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib64/python2.4/site-packages/M2Crypto/httpslib.py", line 47, in connect
    self.sock.connect((self.host, self.port))
  File "/usr/lib64/python2.4/site-packages/M2Crypto/SSL/Connection.py", line 170, in connect
    self.socket.connect(addr)
  File "<string>", line 1, in connect
socket.error: (101, 'Network is unreachable')

Comment 2 Alex Wood 2012-03-06 20:47:45 UTC
Committed 1ffc81e1b19a009fc916c537687e27826e0cc585

subscription-manager-0.99.10+

Comment 4 spandey 2012-03-21 13:52:19 UTC
Verified using following rpm for rhel6.3 

subscription-manager-migration-data-1.12.1.1-1.git.6.ea6813e.el6.noarch
subscription-manager-migration-0.99.10-1.git.85.057ca98.el6.x86_64


No traceback reported working fine.

Resolving defect as verified

Comment 6 errata-xmlrpc 2012-06-20 13:05:23 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-0804.html


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