Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1115527 - yum operations via a squid proxy do not work
Summary: yum operations via a squid proxy do not work
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
Depends On:
Blocks: space22
TreeView+ depends on / blocked
Reported: 2014-07-02 14:13 UTC by Milan Zázrivec
Modified: 2014-07-17 08:41 UTC (History)
0 users

Fixed In Version: yum-rhn-plugin-2.2.5-1 rhn-client-tools-2.2.5-1
Doc Type: Bug Fix
Doc Text:
Clone Of: 1115516
Last Closed: 2014-07-17 08:41:12 UTC

Attachments (Terms of Use)

Description Milan Zázrivec 2014-07-02 14:13:35 UTC
+++ This bug was initially created as a clone of Bug #1115516 +++

Description of problem:
A RHEL-7 system registered to Red Hat Satellite won't be able
to communicate with it parent over a Squid proxy.

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

How reproducible:

Steps to Reproduce:
1. RHEL-7 system, registered to Red Hat satellite 5.6 (or later)
2. Configure /etc/sysconfig/rhn/up2date to use a squid proxy
   (enableProxy, httpProxy options)
3. Configure iptables so that the parent is not directly accessible,
   only the Squid proxy is.
3. yum clean all && yum makecache

Actual results:
# yum clean all
Loaded plugins: langpacks, rhnplugin
Cleaning repos: test-channel-01
Cleaning up everything

# yum makecache
Loaded plugins: langpacks, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.

The process freezes here ^^

lsof reveals, that yum is trying to connect to the parent Satellite, rather
than the configured Squid proxy.

# lsof -p 9213|grep TCP
yum     9213 root   11u  IPv4              90353       0t0      TCP> (SYN_SENT)

Expected results:
yum operations over proxy works.

Additional info:
XML-RPC requests (for example when yum-rhn-plugin wants to get the list of channels)
works correctly. The problem is when we're setting up URLGrabber objects
for proxy communication (i.e. the actual metadata and package retrieval
operations won't work).

Comment 1 Milan Zázrivec 2014-07-02 15:41:50 UTC
spacewalk.git master: b3337654bd4de7886934c9aea46935b51bbc40bb

Comment 2 Milan Zázrivec 2014-07-09 15:24:33 UTC
spacewalk.git master:

Comment 3 Milan Zázrivec 2014-07-10 08:30:04 UTC
spacewalk.git master: 4d2d833a1d5baf92a4c01883e04ac2aa9f57aa0e

Comment 4 Milan Zázrivec 2014-07-17 08:41:12 UTC
Spacewalk 2.2 has been released:

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