Bug 791199

Summary: Too many requests to CDN when importing manifest
Product: Red Hat Satellite Reporter: Ivan Necas <inecas>
Component: Content ManagementAssignee: Ivan Necas <inecas>
Status: CLOSED CURRENTRELEASE QA Contact: Og Maciel <omaciel>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: bkearney, omaciel
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:27:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ivan Necas 2012-02-16 13:26:51 UTC
Description of problem:
Results from requests to CDN to retrieve values for $releasever and $basearch are not reused, therefore there are more requests for the same listing file.

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

How reproducible:


Steps to Reproduce:
1. Set KATELLO_LOGGING in /etc/sysconfig/katello to debug
2. Import stage manifest
3. grep CDN /var/log/katello/production.log 
  
Actual results:
Many lines "CDN: Requesting path..." with the same path repeating = many requests for the same file

Expected results:
Requesting each unique path only once.

Additional info:
Can lead to 800 requests instead of 40

Comment 1 Ivan Necas 2012-02-20 12:27:36 UTC
Fixed in commit 8a040b1fd5b7828f982e19d1d094fa089b5af486

Comment 3 Ivan Necas 2012-02-22 08:19:06 UTC
Tagged in katello-0.1.243-1

Comment 4 Og Maciel 2012-03-16 20:35:02 UTC
# grep CDN /var/log/katello/production.log | uniq | wc -l
18

Comment 5 Og Maciel 2012-03-16 20:35:33 UTC
Verified:
* candlepin-0.5.26-1.el6.noarch
* candlepin-tomcat6-0.5.26-1.el6.noarch
* katello-0.1.304-1.el6.noarch
* katello-all-0.1.304-1.el6.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.0.4-1.el6.noarch
* katello-cli-0.1.105-1.el6.noarch
* katello-cli-common-0.1.105-1.el6.noarch
* katello-common-0.1.304-1.el6.noarch
* katello-configure-0.1.106-1.el6.noarch
* katello-glue-candlepin-0.1.304-1.el6.noarch
* katello-glue-foreman-0.1.304-1.el6.noarch
* katello-glue-pulp-0.1.304-1.el6.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-0.1.9-1.el6.noarch
* pulp-1.0.0-5.el6.noarch
* pulp-common-1.0.0-5.el6.noarch
* pulp-selinux-server-1.0.0-5.el6.noarch

Comment 7 Mike McCune 2013-08-16 18:12:34 UTC
getting rid of 6.0.0 version since that doesn't exist