Bug 492423 - After following a redirect and getting a 404, rhnlib makes a bad http request to the original host
Summary: After following a redirect and getting a 404, rhnlib makes a bad http request...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rhnlib
Version: 4.8
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Pradeep Kilambi
QA Contact: Jan Hutař
URL:
Whiteboard:
Depends On:
Blocks: 490076 492638
TreeView+ depends on / blocked
 
Reported: 2009-03-26 19:32 UTC by James Bowes
Modified: 2013-01-10 10:02 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 492638 (view as bug list)
Environment:
Last Closed: 2009-05-18 20:14:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0974 0 normal SHIPPED_LIVE rhnlib bug fix update 2009-05-18 13:42:19 UTC

Description James Bowes 2009-03-26 19:32:40 UTC
From an email thread about an rpm existing in the qa env but not on the cdn:

This particular package exists in webqa but not in rhn live, so when
up2date is redirected to the CDN it gets a 404 response. At this point
up2date incorrectly requests
 https://xmlrpc.rhn.webqa.redhat.com/XMLPRC/
instead of something like
 https://xmlrpc.rhn.webqa.redhat.com/XMLRPC/$RHN/channellabel/getPackage/RPM.rpm


IMO this isn't very major from rhn hosted's POV. If we redirect and the client can't get the rpm from the CDN on the first try, then they aren't going to get it at all. The client should probably make its retry requests against the CDN though, rather than returning to hosted.

Comment 3 Brock Organ 2009-03-27 16:07:59 UTC
The consensus from yesterday's conf call with jbowes, brandon, ggainey, morazi and others was that this defect is legitimate, and needs to be addressed before 4.8 goes live ...

So I will ask the devel folks for an ack on this bug, to get the process moving forward ...

Comment 8 Jan Hutař 2009-03-31 09:28:55 UTC
Hello,
I can not reproduce with system registered in webqa:

# grep -i serverURL= /etc/sysconfig/rhn/up2date
noSSLServerURL=http://xmlrpc.rhn.webqa.redhat.com/XMLRPC
serverURL=https://xmlrpc.rhn.webqa.redhat.com/XMLRPC
# rpm -q up2date rhnlib
up2date-4.8.1-27.el4.i386
rhnlib-2.1.4-4.el4.noarch

But according to the tshark, there is no comunnication with Akamai (96.17.90.196) - already asking this in a email.

https://wiki.test.redhat.com/BaseOs/Projects/Akamai/VerifyAkamaiWorks

Regards,
Jan

Comment 9 Grant Gainey 2009-03-31 12:42:55 UTC
In WEBQA, in order to fix the "newer RPMs in WEBQA than in PROD" issue, pursuant to the conversation on 26-MAR referred to in COmment#2, we changed things so that rhn.webqa points to fake-akamai at content-xmlrpc.rhn.webqa which points to origin.rhn.webqa.

client-cdn is ON, whitelist is OFF.  IP address of "akamai" in this environment is 10.10.40.112, and I see lots and LOTS of 302/redirects happening.

Comment 18 errata-xmlrpc 2009-05-18 20:14:45 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0974.html


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