Bug 710433 - Provisioning via RHN-Proxy 541 fails.
Summary: Provisioning via RHN-Proxy 541 fails.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: 541
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Dimitar Yordanov
URL:
Whiteboard:
Depends On:
Blocks: sat54-blockers
TreeView+ depends on / blocked
 
Reported: 2011-06-03 11:36 UTC by Dimitar Yordanov
Modified: 2018-11-29 08:43 UTC (History)
4 users (show)

Fixed In Version: spacewalk-java-1.2.39-86
Doc Type: Bug Fix
Doc Text:
Cause: Incorrect HTTP response headers Consequence: Kickstart over RHN Proxy from a RHN Satellite 5.4.1 on RHEL6 fails Fix: Correct handling of HTTP response headers Result: Kickstart over RHN Proxy from a RHN Satellite 5.4.1 on RHEL6 works now
Clone Of:
Environment:
Last Closed: 2011-07-18 08:38:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
RHN-Proxy 541 Logs for the Provisioning process. (16.63 KB, text/plain)
2011-06-03 11:36 UTC, Dimitar Yordanov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0943 0 normal SHIPPED_LIVE Red Hat Network Satellite Server spacewalk-java bug fix update 2011-07-18 08:37:52 UTC

Description Dimitar Yordanov 2011-06-03 11:36:41 UTC
Created attachment 502790 [details]
RHN-Proxy 541 Logs for the Provisioning process.

Description of problem:
Provisioning of a Host/Guest via RHN-Proxy 541 fails.
The provisioning process stops on the first Screen : Choose a Language.
I guess the kickstart is not downloaded.

I see the following logs on the RHN-Proxy.

###  /var/log/squid/access.log   ##########################################
1307114065.060    514 127.0.0.1 TCP_MISS/200 331 GET http://127.0.0.1/download//cblr/svc/op/ks/system/M23-Proxy-x86_64-RHEL6-via-M22_060311-09-32-06:1 - DIRECT/127.0.0.1 text/plain
1307114316.145    702 127.0.0.1 TCP_MISS/200 331 GET http://127.0.0.1/download//cblr/svc/op/ks/system/M23-Proxy-x86_64-RHEL6-via-M22_060311-09-32-06:1 - DIRECT/127.0.0.1 text/plain

###  /var/log/squid/cache.log   ##########################################
2011/06/03 11:14:25| Exception error:corrupted chunk size
2011/06/03 11:18:36| Exception error:corrupted chunk size


I tried with both P/E SELinux.

Version-Release number of selected component (if applicable):
Satellite 541
RHN-Proxy 541

How reproducible:
Always

Steps to Reproduce:
1. Register Host via RHN-Proxy 541 RHEL6 to Satellite 541 RHEL6
2. Set up Provisioning for the Host via RHN-Proxy

Actual results:
The provisioning process stacks.

Expected results:
Success.

Additional info:

All logs are attached.

Comment 1 Miroslav Suchý 2011-06-06 15:58:34 UTC
It only happen if you use ssl with proxy. If you use proxy.use_ssl=0, then this problem disappear, which is nice for debugging :(

From comunication between redirect module and squid I got:

HTTP/1.1 200 OK

Date: Mon, 06 Jun 2011 19:55:17 GMT

Server: Apache/2.2.3 (Red Hat)

transfer-encoding: chunked

connection: Keep-Alive, close

content-type: text/plain; charset=UTF-8

keep-alive: timeout=15, max=400



# Kickstart config file generated by RHN Satellite Config Management
# Profile Label : RHEL6-x86_64
# Date Created  : 2011-05-30 11:24:44.0
...

The problematic is:
transfer-encoding: chunked
It should not be there. But right now I do not know who add it there. Can be satellite, apache on proxy or our code in redirector...

Comment 3 Miroslav Suchý 2011-06-07 13:46:05 UTC
This only happen if parent of RHN Proxy is Satellite 541@RHEL6. It does not matter if proxy is 540 or 541.

I verified that it does not happen with RHN Proxy with parent Satellite 541@RHEL5.

Comment 6 Miroslav Suchý 2011-06-17 10:52:29 UTC
If proxy get chunked data, httplib will join them so it is not correct to forward transfer-encoding: chunked header.
Fixed in spacewalk.git in commit 637ac41756910ef7808d869aa86f520e0206de05
Now we are able to dowload ks file, but stil having problem with downloading rpm files.

Comment 13 Tomas Lestach 2011-06-27 11:59:40 UTC
The main trouble was caused by sitemesh, that ignored Content-Length header (even if it was manually set) in case Content-Type wasn't set. No bueno.

spacewalk.git: a5e30664d5780c078e3a51ccc3c97cbaf275cb7a

Comment 15 Tomas Lestach 2011-06-27 15:22:19 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause:
Incorrect HTTP response headers
Consequence:
Kickstart over RHN Proxy from a RHN Satellite 5.4.1 on RHEL6 fails
Fix:
Correct handling of HTTP response headers
Result:
Kickstart over RHN Proxy from a RHN Satellite 5.4.1 on RHEL6  works now

Comment 17 Dimitar Yordanov 2011-07-12 07:54:15 UTC
Verified
 Satellite-541 RHEL5/i386 & RHN-Proxy RHEL5(i386,x86_64) & RHN-Proxy  RHEL6(x86_64)
 Satellite-541 RHEL6/x86_64  & RHN-Proxy RHEL[56]/x86_64

Comment 18 errata-xmlrpc 2011-07-18 08:38:32 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-2011-0943.html

Comment 19 Miroslav Suchý 2012-05-30 18:01:42 UTC
*** Bug 824140 has been marked as a duplicate of this bug. ***


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