Bug 765952

Summary: satellite-sync hangs
Product: Red Hat Satellite 5 Reporter: Ted X Toth <txtoth>
Component: Satellite SynchronizationAssignee: Miroslav Suchý <msuchy>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 541CC: cperry, jpazdziora, slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-18 15:48:56 UTC Type: ---
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: 462714    

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.