Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1040112

Summary: katello-disconnected does not function behind a http proxy
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Content ManagementAssignee: Mike McCune <mmccune>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bkearney, cpatters, cphoffma, cwelton, jmontleo, omaciel, vmarceloe
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/7252
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
Disconnected users will not be able to access the CDN via a proxy. They will need to use a direct internet connection.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:22:03 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:
Attachments:
Description Flags
/usr/bin/katello-disconnected proposed patch
none
/usr/share/katello-disconnected/lib/manifest_reader.rb proposed patch none

Description Mike McCune 2013-12-10 18:33:49 UTC
There are various places in the katello-disconnected codebase that do not properly include configuration options to support running behind an http proxy.

This means that anyone using katello-disconnected to sync and setup content will not be able to utilize the tool until this bug is resolved.

We need the following:

1) Configuration options for the 'katello-disconnected setup' command.  It will need:

# katello-disconnected setup --help
Usage: setup [--option VALUE]
        --host PULP_HOSTNAME         Pulp host (default "localhost")
        ...
      --proxy-url=PROXY_URL
      --proxy-port=PROXY_PORT
      --proxy-user=PROXY_USER
           HTTP Proxy user (proxy username, if auth is required)
      --proxy-pass=PROXY_PASS
           HTTP Proxy pass (proxy password, if auth is required)

2) Update any network access calls to pass in the configuration options

Comment 1 RHEL Program Management 2013-12-10 18:35:06 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 cphoffma 2013-12-11 14:18:35 UTC
Additional option that needs http proxy support: import

Comment 4 cphoffma 2014-01-02 19:34:39 UTC
Created attachment 844685 [details]
/usr/bin/katello-disconnected proposed patch

Comment 5 cphoffma 2014-01-02 19:35:46 UTC
Created attachment 844686 [details]
/usr/share/katello-disconnected/lib/manifest_reader.rb proposed patch

Comment 7 Corey Welton 2014-06-16 18:34:06 UTC
Possibly related: https://bugzilla.redhat.com/show_bug.cgi?id=1025890

It might be only one proxy auth method.

Comment 8 vmarceloe 2014-07-24 17:25:16 UTC
The patch provided by cphoffma work as expected.

Comment 9 Partha Aji 2014-08-25 18:00:27 UTC
Created redmine issue http://projects.theforeman.org/issues/7252 from this bug

Comment 12 Mike McCune 2014-09-03 01:32:39 UTC
TO: cphoffma
 vmarceloe 

Thanks for the patches and testing!  Used them to get proxy support in katello-disconnected

Comment 13 Corey Welton 2014-09-03 02:19:52 UTC
Provisionally verifying this issue/feature.  A variety of other validation errors have cropped up in testing this.  A general docs request and a list of other issues found while testing this feature can be found at 

https://bugzilla.redhat.com/show_bug.cgi?id=1136601

Please note: This list is possibly non-exhaustive, as other issues may be found. 

In short: the core functionality now exists, but there are a few caveats along the way.

Marking this verified, but this feature may need some considerable cleanup later on.

Tested against Satellite-6.0.4-RHEL-6-20140829.0

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

Comment 15 cpatters 2015-09-02 22:44:42 UTC
I attempted to include the flags in the katello-disconnected setup 

# katello-disconnected setup --proxy-url=proxy.example.com --proxy-port=8080      

I received the following error: 
invalid option: --proxy-url.

I am using Satellite 6.1.1 with Katello 2.2.0.15-1 on RHEL 7

Has this since been removed from Katello?