Red Hat Bugzilla – Bug 817599
next call to thumbslug fails after receiving non-cert 200 data from candlepin
Last modified: 2013-06-07 13:25:22 EDT
Description of problem:
This bug only occurs when thumbslug is using an upstream proxy (for example, tinyproxy).
If thumbslug connects to candlepin but receives a 200 response without valid cert data, it will return a 502 to the client (correct), but the next call to thumbslug will time out. Subsequent calls will work after that.
We think that thumbslug is not tearing down the connection from itself to the upstream proxy, which causes the second attempt to fail. Once the second connection fails, everything is cleaned up and subsequent connections work fine.
I'm not sure how common this would be for a customer, since it would be extremely unusual that candlepin returns a 200 with invalid cert data. However, the bug is indicative of a possible resource leak (albeit one that gets cleaned up soon after the leak occurs), so it would be good to fix.
Version-Release number of selected component (if applicable): 0.23
How reproducible: every time
Steps to Reproduce:
1. configure thumbslug to use a proxy
2. execute 'returns a 502 on a non certificate response from candlepin' spec test
3. execute 'allows downloading content with a valid certificate' spec test
Actual results: step 3 gets a 502
Expected results: step 3 should get valid data back from the cdn
Thank you for your bug report. This issue was evaluated for inclusion
in the current release of Subscription Asset Manager (SAM). Unfortunately,
we are unable to address this request. Because we are in the final stages
of development in the current release, only significant, release-blocking
issues involving serious regressions and data corruption can be considered.
If you believe this issue meets the release blocking criteria as defined and
communicated to you by your Red Hat Support representative, please ask
your representative to file this issue as a blocker for the current release.
Otherwise, ask that it be evaluated for inclusion in the next release of SAM.
Fixed in thumbslug 0.0.27-1
Verified in SAM 1.2 compose for the newer version of thumbslug package as mentioned in Comment 4 above.
# rpm -qa | grep thumbslug
Also Adrian Likins tested it agains the qa proxy server and it worked fine.
Closing out verified bugs from 1.2. Somehow the errata tool missed them.