Bug 1136596

Summary: Unhandled exception when user enters an invalid/non-responsive port for proxy.
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: Inter Satellite SyncAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.3   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-03 01:55:54 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:

Description Corey Welton 2014-09-03 01:38:02 UTC
Description of problem:
When using proxy on import and user enters/fat-fingers an invalid port # (i.e., a port that the proxy is not running on), an error is thrown that should be captured.

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


How reproducible:


Steps to Reproduce:
1.  Attempt to use a --proxy-port value that does not match your proxy (ie., '888' when your squid is on '8888')
2.  View results


Actual results:

/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
	from /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `open'
	from /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `block in connect'
	from /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:55:in `timeout'
	from /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:100:in `timeout'
	from /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `connect'
	from /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:756:in `do_start'
	from /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:745:in `start'
	from /usr/share/katello-disconnected/lib/manifest_reader.rb:62:in `get'
	from /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/util/cdn_var_substitutor.rb:154:in `get_substitutions_from'
	from /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/util/cdn_var_substitutor.rb:143:in `for_each_substitute_of_next_var'
	from /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/util/cdn_var_substitutor.rb:85:in `substitute_vars_in_prefix'
	from /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/util/cdn_var_substitutor.rb:61:in `substitute_vars'
	from /usr/share/katello-disconnected/lib/manifest_reader.rb:382:in `block (3 levels) in populate_repositories'
	from /usr/share/katello-disconnected/lib/manifest_reader.rb:379:in `each_value'
	from /usr/share/katello-disconnected/lib/manifest_reader.rb:379:in `block (2 levels) in populate_repositories'
	from /usr/share/katello-disconnected/lib/manifest_reader.rb:376:in `each'
	from /usr/share/katello-disconnected/lib/manifest_reader.rb:376:in `block in populate_repositories'
	from /usr/share/katello-disconnected/lib/manifest_reader.rb:362:in `each_value'
	from /usr/share/katello-disconnected/lib/manifest_reader.rb:362:in `populate_repositories'
	from /usr/bin/katello-disconnected:375:in `import'
	from /usr/bin/katello-disconnected:469:in `<main>'

Expected results:
Captured exception.


Additional info:

Comment 1 Corey Welton 2014-09-03 01:38:38 UTC
Version-Release number of selected component (if applicable):


Satellite-6.0.4-RHEL-6-20140829.0

Comment 3 RHEL Program Management 2014-09-03 01:55:54 UTC
Quality Engineering Management has reviewed and declined this request.
You may appeal this decision by reopening this request.