Description of problem: satellite-sync does not honor CDN (Location Aware Updates) preferences, and always fetches the RHN Hosted content from satellite.rhn.redhat.com. Version-Release number of selected component (if applicable): 5.4.0 How reproducible: Always. Steps to Reproduce: 1. Install 5.4 RHN Satellite 2. Enable 'Support Location-Aware Updates' in RHN Web UI 3. satellite-sync Actual results: When syncing with RHN Hosted, the satellite fetches the content from satellite.rhn.redhat.com. Expected results: The satellite should honor the CDN flag and sync the downloadable content from a CDN node physically closer to it, if the flag is turned on. Additional info:
Created attachment 460779 [details] Proposed patch for satellite-sync
It was not caused by that commit. It worked after bug 175155 has been resolved. Most probably the header was previously set somewhere in connection class, but now is not.
Commited to spacewalk.git as commit: 5cb052177992490286d2b1974dd9d4ecc4eb012b According my test it works - from tcpdump: 11:40:58.925327 IP a184-86-88-217.deploy.akamaitechnologies.com.https > dell-pe830-01.rhts.eng.bos.redhat.com.58338: . ack 122 win 181 <nop,nop,timestamp 1153604066 8916324> 11:40:58.926283 IP a184-86-88-217.deploy.akamaitechnologies.com.https > dell-pe830-01.rhts.eng.bos.redhat.com.58338: . 1:1349(1348) ack 122 win 181 <nop,nop,timestamp 1153604067 8916324>
cherrypicked to satellite.git as 236c7532170d1a406fef54b21046e97d62099ae0
err.. that cherrypick is commit 236c7532170d1a406fef54b21046e97d62099ae0
Changing to VERIFIED: After the discussion with developers I have done basic blackbox testing of satellite-sync. With spacewalk-backend-tools-1.2.13-23.el5sat satellite-sync fetches rpms from akamai.
Please be so kind and add a few key words to the technical note of this bugzilla entry using the following structure: Cause: Consequence: Fix: Result: For details, see: https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes Thanks
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: Consequence: Fix: Result:
There is already nice text in errata.
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-0190.html