Bug 1654715

Summary: access the CDN repositories trough a squid proxy failed - Failed to synchronize cache for repo
Product: Red Hat Enterprise Linux 8 Reporter: Markus Schibli <mschibli>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.0CC: csnyder, mschibli
Target Milestone: rc   
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-07 15:21:08 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:
Bug Depends On:    
Bug Blocks: 1623566    

Description Markus Schibli 2018-11-29 13:51:39 UTC
Description of problem:

When trying to access the CDN repositories with a rhel8 system trough a squid proxy, the following errors are shown:

# dnf --debuglevel=10 repolist
timer: config: 3 ms
Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repograph, repomanage, reposync, subscription-manager
Updating Subscription Management repositories.
DNF version: 4.0.4
Command: dnf --debuglevel=10 repolist 
Installroot: /
Releasever: 8
cachedir: /var/cache/dnf
Base command: repolist
Extra commands: ['--debuglevel=10', 'repolist']
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream HTB (RPMs)                                                     0.0  B/s |   0  B     00:01    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs)                                                        0.0  B/s |   0  B     00:01    
Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-htb-rpms', ignoring this repo.
Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-htb-rpms', ignoring this repo.

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

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.3.9-1
subscription management rules: 5.26
subscription-manager: 1.23.8-1.el8

How reproducible:

1. add proxy server to the subscription-manager:
# subscription-manager config --server.proxy_hostname=squid.corp.redhat.com --server.proxy_port=3128
 
2. run the commnd:
# dnf --debuglevel=10 repolist


Steps to Reproduce:
1. # subscription-manager config --server.proxy_hostname=squid.corp.redhat.com --server.proxy_port=3128
2. # dnf --debuglevel=10 repolist
3.

Actual results:
Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-htb-rpms', ignoring this repo.
Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-htb-rpms', ignoring this repo.

Expected results:
synch repolist

Additional info:

Comment 3 Chris Snyder 2019-01-07 15:21:08 UTC

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