Bug 1459872

Summary: cdn-sync with parameter http-proxy causes ERROR: Cannot retrieve repository
Product: Red Hat Satellite 5 Reporter: Martin Korbel <mkorbel>
Component: Satellite SynchronizationAssignee: Jan Dobes <jdobes>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: high    
Version: 580CC: tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-08 12:58:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Korbel 2017-06-08 12:19:55 UTC
Description of problem:
I can not synchronize channels by http-proxy.


Version-Release number of selected component (if applicable):
spacewalk-backend-cdn-2.5.3-139

How reproducible:
100%

Steps to Reproduce:
1. We have got satellite 5.8
2. Synchronize channels 
> cdn-sync -c rhel-x86_64-server-7 --http-proxy=sqid.example.com:3128

Actual results:
08:17:10 ======================================
08:17:10 | Channel: rhel-x86_64-server-7
08:17:10 ======================================
08:17:10 Sync of channel started.
08:17:10 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os
08:17:10 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-7-server-rpms__7Server__x86_64. Please verify its path and try again
08:17:10 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.3/x86_64/kickstart
08:17:10 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: ks-rhel-x86_64-server-7-7.3. Please verify its path and try again
08:17:10 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.1/x86_64/kickstart
08:17:10 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: ks-rhel-x86_64-server-7-7.1. Please verify its path and try again
08:17:10 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.2/x86_64/kickstart
08:17:10 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: ks-rhel-x86_64-server-7-7.2. Please verify its path and try again
08:17:10 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.0/x86_64/kickstart
08:17:10 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: ks-rhel-x86_64-server-7-7.0. Please verify its path and try again
08:17:10 Sync of channel completed in 0:00:00.
08:17:10 Total time: 0:00:00
Problems occurred during syncing channel rhel-x86_64-server-7. Please check /var/log/rhn/cdnsync/rhel-x86_64-server-7.log for the details

Expected results:
We can synchronize by http proxy.

Additional info:

Comment 2 Martin Korbel 2017-06-08 12:58:57 UTC
My mistake a bad setup. :(