Bug 1117410

Summary: Specifying only proxy-url and proxy-port during install leads to errors during installation
Product: Red Hat Satellite Reporter: Sebastian Ickler <sebastian.ickler>
Component: InstallationAssignee: Eric Helms <ehelms>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: ahumbe, andrew.schofield, bhamrick, cwelton, ehelms, jakub.sliva, jmontleo, miguel, sebastian.ickler, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
URL: http://projects.theforeman.org/issues/6530
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:27:14 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: 1083818, 1115190    

Description Sebastian Ickler 2014-07-08 15:34:16 UTC
Description of problem:


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

How reproducible:

Setup: Internal network, only http(s)-Proxy allowed, Fresh install, Satellite 6 Beta prerequisites met.
# katello-installer --katello-proxy-url=http://myproxy --katello-proxy-port=8080

1. Content -> Red Hat Subscriptions -> Import manifest ...
2. Content -> Red Hat Repositories -> (random repo, I tried "Red Hat Enterprise Linux 6 Server (RPMs)")
==> Endless turning wheel

3. Reloading the Red Hat Repositories site shows me that repository marked for sync.

4. Checking sync status: Content -> Sync status actually shows me the HTTP 500 Error.
Log file:
==> /var/log/httpd/foreman-ssl_error_ssl.log <==
[Mon Jul 07 19:05:50 2014] [error] [client 172.23.8.1] mod_wsgi (pid=6885): Exception occurred processing WSGI script '/srv/pulp/webservices.wsgi'.
[Mon Jul 07 19:05:50 2014] [error] [client 172.23.8.1] TypeError: 'NoneType' object is not callable

==> /var/log/httpd/foreman-ssl_access_ssl.log <==
172.23.8.1 - - [07/Jul/2014:19:05:50 +0200] "POST /pulp/api/v2/repositories/search/ HTTP/1.1" 500 343 "-" "Ruby"
212.0.27.18 - - [07/Jul/2014:19:05:50 +0200] "GET /katello/sync_management HTTP/1.1" 500 441 "https://$HOSTNAME/katello/providers/redhat_provider" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"

Actual results:
Under Administer -> Content Notices you see a HTTP 500 Error.

Expected results:
no error

Comment 1 Eric Helms 2014-07-08 15:39:21 UTC
Work around:

If using a proxy, and one that only requires some of the proxy configuration parameters, all parameters must be specified (even if left blank) in order for the Pulp configuration file to be populated properly. For example, if no user or password on the proxy:

katello-installer --katello-proxy-url=http://myurl.com --katello-proxy-port=8888 --katello-proxy-user= --katello-proxy-password=

Comment 3 Eric Helms 2014-07-08 16:33:35 UTC
Created redmine issue http://projects.theforeman.org/issues/6530 from this bug

Comment 4 Andrew Schofield 2014-07-25 14:17:21 UTC
katello-installer arguments are:

katello-installer --katello-proxy-port=<port> --katello-proxy-url=<proxyurl> --katello-proxy-username= --katello-proxy-password=

Comment 5 Bryan Kearney 2014-07-28 12:04:06 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6530 has been closed
-------------
Eric Helms
Applied in changeset commit:katello-installer|75be7cc6d89be4b82e830c8a79eaa8f74c86cc56.

Comment 6 Xixi 2014-07-29 16:20:12 UTC
Also see Bug 1044558 - Installation guide should call out the --proxy-* options for katello-configure (or new installer)

Comment 8 Corey Welton 2014-08-07 18:51:07 UTC
Verified in Satellite-6.0.4-RHEL-6-20140806.0

Comment 9 Mike McCune 2014-08-12 21:14:29 UTC
*** Bug 1121048 has been marked as a duplicate of this bug. ***

Comment 11 Bryan Kearney 2014-09-11 12:27:14 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.