Bug 1152955

Summary: satellite-sync does not react appropriately when encounters an error.
Product: Red Hat Satellite 5 Reporter: Dimitar Yordanov <dyordano>
Component: ServerAssignee: Jan Dobes <jdobes>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: medium    
Version: 560CC: tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-09 11:25:11 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: 924189    

Description Dimitar Yordanov 2014-10-15 09:29:13 UTC
Description of problem:
In case satellite-sync encounters a "SysCallError" during the package download process it claims incorrectly "Processing rpm packages complete" and continues with "Importing package metadata".

Version-Release number of selected component (if applicable):
spacewalk-java-1.7.54-129

How reproducible:
No always.

Steps to Reproduce:
1. satellite-sync -c rhel-x86_64-server-5


23:33:37       Downloaded 30.2 GiB of 34.5 GiB. Estimated remaining time: 1:03:05
23:33:37     15595/16451 Fetch successful: cman-devel-2.0.115-109.el5_9.4.x86_64.rpm (75366 bytes)
23:33:53       Downloaded 30.2 GiB of 34.5 GiB. Estimated remaining time: 1:03:08
23:33:53     15596/16451 Fetch successful: cman-2.0.115-109.el5_9.4.x86_64.rpm (795596 bytes)
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1903, in run
    package_id, nvrea, self.sources)
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1843, in _get_package_stream
    stream = rpmServer.getPackageStream(channel, nvrea)
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 433, in getPackageStream
    return self._rpc_call("getPackage", (channel, package_name))
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 400, in _rpc_call
    ret = apply(getattr(get_server_obj, function_name), params)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 683, in __call__
    result = self._send(self._name, args)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 386, in _request
    self._handler, request, verbose=self._verbose)
  File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 171, in request
    headers, fd = req.send_http(host, handler)
  File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 725, in send_http
    response = self._connection.getresponse()
  File "/usr/lib/python2.6/site-packages/rhn/connections.py", line 130, in getresponse
    response.begin()
  File "/usr/lib64/python2.6/httplib.py", line 391, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python2.6/httplib.py", line 349, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.6/site-packages/rhn/SSL.py", line 265, in readline
    data = self._connection.recv(bufsize)
SysCallError: (104, 'Connection reset by peer')

23:33:58 Processing rpm packages complete
23:33:58 
23:33:58 Importing package metadata
23:33:58    Importing *relevant* package metadata: rhel-x86_64-server-5 (16451)
            ________________________________________
Importing:  ###################################

Comment 2 Tomas Lestach 2018-04-09 11:25:11 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.

This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. 

Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed.