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 bugzilla.redhat.com.
Bug 1115527 - yum operations via a squid proxy do not work
Summary: yum operations via a squid proxy do not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
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
Environment:
Last Closed: 2014-07-17 08:41:12 UTC
Embargoed:


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):
yum-rhn-plugin-2.0.1-4.el7

How reproducible:
Always

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 xen86.englab.brq.redhat.com:37308->xen58.englab.brq.redhat.com:https (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:
2b3f2d866ad3820facd8d7a749523852ffb2f735
9448868b2876316f589fe4dc74ed5e8dccbc62d3

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:

    https://fedorahosted.org/spacewalk/wiki/ReleaseNotes22


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