Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1152955 - satellite-sync does not react appropriately when encounters an error.
Summary: satellite-sync does not react appropriately when encounters an error.
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 560
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
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:
Last Closed: 2018-04-09 11:25:11 UTC
Target Upstream Version:

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):

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/", line 532, in __bootstrap_inner
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/", line 1903, in run
    package_id, nvrea, self.sources)
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/", line 1843, in _get_package_stream
    stream = rpmServer.getPackageStream(channel, nvrea)
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/", line 433, in getPackageStream
    return self._rpc_call("getPackage", (channel, package_name))
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/", line 400, in _rpc_call
    ret = apply(getattr(get_server_obj, function_name), params)
  File "/usr/lib/python2.6/site-packages/rhn/", line 683, in __call__
    result = self._send(self._name, args)
  File "/usr/lib/python2.6/site-packages/rhn/", line 386, in _request
    self._handler, request, verbose=self._verbose)
  File "/usr/lib/python2.6/site-packages/rhn/", line 171, in request
    headers, fd = req.send_http(host, handler)
  File "/usr/lib/python2.6/site-packages/rhn/", line 725, in send_http
    response = self._connection.getresponse()
  File "/usr/lib/python2.6/site-packages/rhn/", line 130, in getresponse
  File "/usr/lib64/python2.6/", line 391, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python2.6/", line 349, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.6/site-packages/rhn/", 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 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.