Bug 1152955 - satellite-sync does not react appropriately when encounters an error.
Summary: satellite-sync does not react appropriately when encounters an error.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 560
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat560-triage
TreeView+ depends on / blocked
 
Reported: 2014-10-15 09:29 UTC by Dimitar Yordanov
Modified: 2018-04-09 11:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-09 11:25:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.