Bug 604137 - Proxy settings not carried over to stage2 repos
Summary: Proxy settings not carried over to stage2 repos
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
Keywords: Reopened
Depends On:
Blocks: 582286
TreeView+ depends on / blocked
Reported: 2010-06-15 13:47 UTC by Alexander Todorov
Modified: 2014-01-21 06:18 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2010-11-10 19:48:14 UTC

Attachments (Terms of Use)
tarball of all logs from stage2 (44.64 KB, application/x-gzip)
2010-06-15 13:47 UTC, Alexander Todorov
no flags Details

Description Alexander Todorov 2010-06-15 13:47:23 UTC
Created attachment 424159 [details]
tarball of all logs from stage2

Description of problem:
If you boot with proxy=host:port anaconda will correctly download the stage2 image files using the proxy (monitor proxy logs). However the repositories that appear in package configuration screen in stage2 don't have proxy URL configured.  If install proceeds no proxy will be used (monitor your proxy logs).

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

How reproducible:

Steps to Reproduce:
1. Configure a proxy host (for example with apache mod_proxy)
2. Start an install with 'linux proxy=host:port'
3. Monitoring the proxy log observe that stage2 images are downloaded via the proxy.
4. Proceed to package selection
5. Edit/Modify the repositories listed there.
Actual results:
No Proxy URL specified for repositories. If you leave it as is the packages will be downloaded directly not via the proxy (see your logs).

Expected results:
Proxy configuration is present for the repositories and packages are downloaded via proxy.

Additional info:
All logs will be attached. anaconda-yum.conf seems to have correct proxy definition.

Comment 1 Brian Lane 2010-06-21 22:13:10 UTC
Reassigning to yum. I've tracked this into the depths of anaconda and as far as I can tell everything is setup properly and yum appears to be ignoring the proxy setting in /tmp/anaconda-yum.conf

A possible complication with my setup is that my virt cannot resolve the host set for the repo, only the host for the proxy. I don't know if Alexander's setup is similar to mine or not. So if yum is expecting to resolve the repo host before using the proxy that could explain the problem.

Comment 2 James Antill 2010-06-22 04:49:15 UTC
Unless you can reproduce a problem post anaconda, I'm going to assume it's a dup of the anaconda proxy BZ.

*** This bug has been marked as a duplicate of bug 484788 ***

Comment 3 Alexander Todorov 2010-06-24 15:19:43 UTC
When adding proxy=http://host:port into yum.conf on already installed system yum used the proxy to download the packages.

Comment 4 Brian Lane 2010-06-28 23:59:29 UTC
It ends up the problem was anaconda's use of YumRepo objects. They don't inherit the proxy settings from the main yum.conf file so they need to be set.

Comment 7 Alexander Todorov 2010-07-02 13:33:55 UTC
Fixed in anaconda-13.21.56-1.

Comment 8 releng-rhel@redhat.com 2010-11-10 19:48:14 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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