Bug 506317 - system migration error handling needs to be better for --satellite option
Summary: system migration error handling needs to be better for --satellite option
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: 530
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Todd Sanders
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2009-06-16 16:41 UTC by Preethi Thomas
Modified: 2014-07-04 13:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-04 13:25:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2009-06-16 16:41:43 UTC
Description of problem:
system migration spits out errors when --satellite is not in the right format

Version-Release number of selected component (if applicable):
Satellite-5.3.0-RHEL5-re20090612.0-i386-embedded-oracle.iso

How reproducible:


Steps to Reproduce:
1. run migrate-system-profile with --satellite option in the wrong format
2.
3.
  
Actual results:

[root@rlx-3-24 ~]# migrate-system-profile  --satellite=http://rlx-3-24.rhndev.redhat.com --to-org-id=3 --username=admin --pass=dog8code --systemId=1000010040
Traceback (most recent call last):
  File "/usr/bin/migrate-system-profile", line 101, in ?
    sys.exit(abs(main() or 0))
  File "/usr/bin/migrate-system-profile", line 91, in main
    return migrateSystemProfile.main()
  File "/usr/share/rhn/utils/migrateSystemProfile.py", line 91, in main
    sessionKey = login(username, password)
  File "/usr/share/rhn/utils/migrateSystemProfile.py", line 116, in login
    sessionkey = client.auth.login(username, password)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1122, in request
    h = self.make_connection(host)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1199, in make_connection
    return httplib.HTTP(host)
  File "/usr/lib/python2.4/httplib.py", line 1103, in __init__
    self._setup(self._connection_class(host, port, strict))
  File "/usr/lib/python2.4/httplib.py", line 592, in __init__
    self._set_hostport(host, port)
  File "/usr/lib/python2.4/httplib.py", line 604, in _set_hostport
    raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: ''

Expected results:
user friendly error that states --satellite  needs to be in the correct format.

Additional info:

migrate-system-profile --help also does not give any direction in how the --satellite option should be entered.

Comment 1 Clifford Perry 2009-06-17 14:31:45 UTC
Propose for 531.


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