Project

Profile

Help

Issue #4603

Updated by dkliban@redhat.com about 5 years ago

This does not occur 100% of the time, but often enough that it can be reproduced consistently.  

 1) Create an 'on_demand' repository pointing to a RHEL 7 kickstart repository.  
 2) Sync the repository. 
 3) Download the repository 

 <pre> 
 pulp-admin repo download --verify-all --repo-id ks 
 </pre>  

 As the pulp_worker was downloading the file the following was emitted by pulp_streamer: 

 <pre> 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-] Unhandled Error 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]       Traceback (most recent call last): 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]         File "/usr/lib64/python2.7/site-packages/twisted/application/app.py", line 399, in startReactor 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]           self.config, oldstdout, oldstderr, self.profiler, reactor) 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]         File "/usr/lib64/python2.7/site-packages/twisted/application/app.py", line 312, in runReactorWithLogging 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]           reactor.run() 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]         File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 1261, in run 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]           self.mainLoop() 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]         File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 1270, in mainLoop 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]           self.runUntilCurrent() 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]       --- <exception caught here> --- 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]         File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 869, in runUntilCurrent 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]           f(*a, **kw) 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]         File "/usr/lib64/python2.7/site-packages/twisted/web/server.py", line 236, in write 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]           http.Request.write(self, data) 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]         File "/usr/lib64/python2.7/site-packages/twisted/web/http.py", line 1110, in write 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]           self.channel.writeSequence(toChunk(data)) 
 Mar 28 21:03:26 pulp2.dev pulp_streamer[17983]: [-]       exceptions.AttributeError: 'NoneType' object has no attribute 'writeSequence' 
 </pre> 

 Then the pulp_worker emmits the following: 

 <pre> 
 Mar 28 21:03:26 pulp2.dev pulp[19562]: nectar.downloaders.threaded:ERROR: (19562-49088) ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing: incorrect> 
 Mar 28 21:03:26 pulp2.dev pulp[19562]: nectar.downloaders.threaded:ERROR: (19562-49088) Traceback (most recent call last): 
 Mar 28 21:03:26 pulp2.dev pulp[19562]: nectar.downloaders.threaded:ERROR: (19562-49088)     File "/usr/lib/python2.7/site-packages/nectar/downloaders/threaded.py", line 292, in _fetch 
 Mar 28 21:03:26 pulp2.dev pulp[19562]: nectar.downloaders.threaded:ERROR: (19562-49088)       for chunk in chunks: 
 Mar 28 21:03:26 pulp2.dev pulp[19562]: nectar.downloaders.threaded:ERROR: (19562-49088)     File "/usr/lib/python2.7/site-packages/requests/models.py", line 755, in generate 
 Mar 28 21:03:26 pulp2.dev pulp[19562]: nectar.downloaders.threaded:ERROR: (19562-49088)       raise ContentDecodingError(e) 
 Mar 28 21:03:26 pulp2.dev pulp[19562]: nectar.downloaders.threaded:ERROR: (19562-49088) ContentDecodingError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while de> 
 Mar 28 21:03:26 pulp2.dev pulp[19562]: pulp.server.controllers.repository:INFO: Download of /var/lib/pulp/content/units/distribution/ea/91381d46b89bcb5fd5f595b7bc0fc7802404b3ae4899901f8fb076af0c00b2/images/pxeboot/initrd.img failed:  
 ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing: incorrect header check',)). 

 </pre> 

 I was also able to cause this by simply requesting the initrd.img from the on_demand repository.  


 This can also be reproduced with this repo[0]. 

 [0] https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-kickstart/

Back