Bug 765952 - satellite-sync hangs
Summary: satellite-sync hangs
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 541
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2011-12-09 18:24 UTC by Ted X Toth
Modified: 2012-04-18 15:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-18 15:48:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 747631 0 high CLOSED Race condition: Satellite-sync hangs up forever 2021-02-22 00:41:40 UTC

Internal Links: 747631

Description Ted X Toth 2011-12-09 18:24:16 UTC
Description of problem:
I noticed that there was a satellite-sync process that was several days old so I killed it and restarted the satellite server then ran it by hand. Several time I got exceptions like the following after which the process would hang and need restarting.

10:08:45     238/768 Fetch successful: net-tools-1.60-109.el6.x86_64.rpm (274716 bytes)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/share/rhn/satellite_tools/satsync.py", line 2129, in run
    package_id, nvrea, self.sources)
  File "/usr/share/rhn/satellite_tools/satsync.py", line 2070, in _get_package_stream
    stream = rpmServer.getPackageStream(channel, nvrea)
  File "/usr/share/rhn/satellite_tools/xmlWireSource.py", line 480, in getPackageStream
    return self._rpc_call("getPackage", (channel, package_name))
  File "/usr/share/rhn/satellite_tools/xmlWireSource.py", line 447, in _rpc_call
    ret = apply(getattr(get_server_obj, function_name), params)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 678, in __call__
    result = self._send(self._name, args)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 383, 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 702, in send_http
    self._connection.connect()
  File "/usr/lib/python2.6/site-packages/rhn/connections.py", line 194, in connect
    sock.connect((self.host, self.port))
  File "<string>", line 1, in connect
gaierror: [Errno -2] Name or service not known

10:09:26       Downloaded 345 MiB of 819 MiB. Estimated remaining time: 0:23:27.480000
10:09:26     239/768 Fetch successful: mingw32-matahari-0.4.4-11.el6.noarch.rpm (22952576 bytes)

Version-Release number of selected component (if applicable):


How reproducible:
run satellite-sync --email

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
FWIW our satellite server is running in a VM.

Comment 1 Jan Pazdziora 2012-02-28 16:18:53 UTC
Satellite bugzilla should not block space17, removing.

Comment 2 Miroslav Suchý 2012-04-18 15:48:56 UTC
Unless this got solid reproducer, I could not do anything about it. :(
If it cause you problem please contact Red Hat Support, who will try to find solution for you.


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