Bug 1002041
Summary: | spacewalk-abrt: large file upload fails | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Matej Kollar <mkollar> |
Component: | Server | Assignee: | Milan Zázrivec <mzazrivec> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 560 | CC: | cperry, lpramuk, mzazrivec, tkasparek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | spacewalk-abrt-2.0.1-4 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-01 19:59:25 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: | 924171, 924199, 982642 |
Description
Matej Kollar
2013-08-28 11:28:44 UTC
The problem here is that whenever the client tries to upload a big file to the Spacewalk / Satellite server, it takes a long time for the server to actually process the request (in case of a 100MB file it took ~ 30 minutes), so by the time the server is ready to respond, the client connection times out and the whole upload on the client side finishes with the following traceback: Traceback (most recent call last): File "/usr/bin/spacewalk-abrt", line 86, in <module> cli.run() File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run sys.exit(self.main() or 0) File "/usr/bin/spacewalk-abrt", line 72, in main spacewalk_abrt.abrt.report(self.options.report) File "/usr/share/rhn/spacewalk_abrt/abrt.py", line 117, in report server.abrt.upload_crash_file(systemid, basename, crash_file_data) File "/usr/share/rhn/up2date_client/rhnserver.py", line 63, in __call__ return rpcServer.doCall(method, *args, **kwargs) File "/usr/share/rhn/up2date_client/rpcServer.py", line 204, in doCall ret = method(*args, **kwargs) File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "/usr/share/rhn/up2date_client/rpcServer.py", line 38, in _request1 ret = self._request(methodname, params) File "/usr/lib/python2.7/site-packages/rhn/rpclib.py", line 384, in _request self._handler, request, verbose=self._verbose) File "/usr/lib/python2.7/site-packages/rhn/transports.py", line 171, in request headers, fd = req.send_http(host, handler) File "/usr/lib/python2.7/site-packages/rhn/transports.py", line 725, in send_http response = self._connection.getresponse() File "/usr/lib/python2.7/site-packages/rhn/connections.py", line 94, in getresponse response.begin() File "/usr/lib64/python2.7/httplib.py", line 409, in begin version, status, reason = self._read_status() File "/usr/lib64/python2.7/httplib.py", line 365, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/site-packages/rhn/SSL.py", line 287, in readline self._poll(select.POLLIN, 'readline') File "/usr/lib/python2.7/site-packages/rhn/SSL.py", line 218, in _poll raise TimeoutException, "Connection timed out on %s" % caller_name <class 'up2date_client.up2dateErrors.CommunicationError'>: Error communicating with server. The message was: Connection timed out on readline One way to help the situation is make the client not to upload files if they're not desired -- i.e. if they're over the size limit or if the file uploading is not allowed at all. spacewalk.git master: 1d83f1eb87814b1c4b8715197daa50ef7c3d1cc0 Spacewalk.git master: 3e7bc878aed77e04f92ff91875ffa436b2c2a907 VERIFIED. spacewalk-abrt-2.0.1-4.el6sat Newly spacewalk-abrt doesn't try to upload huge files. These files aren't uploaded on SAT anymore. Used initial reproducer in comment #0 This bug was fixed with updated packages being released within the RHN Tools channels. RHN Tools (for Sat 5.6 GA) Errata text: https://rhn.redhat.com/errata/RHEA-2013-1391.html |