Closed Bug 1270834 Opened 10 years ago Closed 10 years ago

Intermittent failure on mozreviewci: ServerInterfaceError: [Errno 110] Connection timed out

Categories

(MozReview Graveyard :: Testing / Development Environment, defect)

Development/Staging
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: rwood, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

/hgext/reviewboard/tests/test-specify-reviewers.t: Try a bunch of different ways of specifying a reviewer $ bugzilla create-bug TestProduct TestComponent 'First Bug' Error running mach: ['create-bug', 'TestProduct', 'TestComponent', 'First Bug'] The error occurred in mach itself. This is likely a bug in mach itself or a fundamental problem with a loaded module. Please consider filing a bug against mach by going to the URL: https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=mach If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: error: [Errno 110] Connection timed out File "/var/lib/jenkins/workspace/mozreviewci/venv/local/lib/python2.7/site-packages/mach/main.py", line 344, in run return self._run(argv) File "/var/lib/jenkins/workspace/mozreviewci/venv/local/lib/python2.7/site-packages/mach/main.py", line 432, in _run instance = cls(context) File "/var/lib/jenkins/workspace/mozreviewci/testing/vcttesting/bugzilla/mach_commands.py", line 24, in __init__ self.b = Bugzilla(self.base_url, username=username, password=password) File "/var/lib/jenkins/workspace/mozreviewci/testing/vcttesting/bugzilla/__init__.py", line 39, in __init__ password) File "/var/lib/jenkins/workspace/mozreviewci/testing/vcttesting/bugzilla/__init__.py", line 20, in create_xmlrpc_proxy proxy.User.login({'login': username, 'password': password}) File "/usr/lib/python2.7/xmlrpclib.py", line 1240, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.7/xmlrpclib.py", line 1599, in __request verbose=self.__verbose File "/var/lib/jenkins/workspace/mozreviewci/pylib/mozreview/mozreview/bugzilla/transports.py", line 57, in request self.send_content(h, request_body) File "/usr/lib/python2.7/xmlrpclib.py", line 1456, in send_content connection.endheaders(request_body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 836, in connect self.timeout, self.source_address) File "/usr/lib/python2.7/socket.py", line 575, in create_connection raise err [1]
Same intermittent failures in: /hgext/reviewboard/tests/test-operation-prevention.t /hgext/reviewboard/tests/test-unicode.t
When running with --debug: 10:17:30 + apikey= raise ConnectionError(e, request=request) 10:17:30 + exportbzauth default@example.com password 10:17:30 + export BUGZILLA_USERNAME=default@example.com 10:17:30 + export BUGZILLA_PASSWORD=password 10:17:30 + /var/lib/jenkins/workspace/********/mozreview create-repo test-repo 10:17:31 + hg init client 10:17:32 + clientconfig client/.hg/hgrc raise ConnectionError(e, request=request) :gps, any idea why this would fail, and how I can fix it? I believe this may be a cause of alot of the intermittent failures
Flags: needinfo?(gps)
We're supposed to wait for the Bugzilla HTTP server to start responding before `mozreview start` exits. Perhaps we're not doing that right. Or perhaps the BMO container crashed or something? What do the logs in the bmoweb container say when you see this error?
Flags: needinfo?(gps)
i've seen this happen on multiple tests, updating summary.
Summary: Intermittent failure on mozreviewci: /hgext/reviewboard/tests/test-specify-reviewers.t → Intermittent failure on mozreviewci: 'Connection timed out' during 'bugzilla create-bug'
Here is the check in `mozreview start` that waits for the BMO service to become available: line 1159: fs.append(e.submit( wait_for_http, bmoweb_hostname, bmoweb_hostport, extra_check_fn=self._get_assert_container_running_fn(web_id))) In Docker._bootstrap_bmo() we wait for the xmlrpc.cgi endpoint to become available. Would checking the full path to the XML-RPC endpoint help? Or we could go beyond the simple 'HTTP 200' liveness check into a full request/response readiness check. line 840: wait_for_http(web_hostname, web_port, path='xmlrpc.cgi', extra_check_fn=self._get_assert_container_running_fn(web_id))
(In reply to Māris Fogels [:mars] from comment #5) > In Docker._bootstrap_bmo() we wait for the xmlrpc.cgi endpoint to become > available. Would checking the full path to the XML-RPC endpoint help? Or > we could go beyond the simple 'HTTP 200' liveness check into a full > request/response readiness check. a http/200 response from BMO against the index page means it's fully operational (database up and contactable, etc), so it should be sufficient here. assuming the required modules are installed (spoiler: they are), then i can't imagine a scenario that would lead to the index page working and xmlrpc.cgi not.
Attached file bmoweb /var/log/apache2/error.log (obsolete) —
I don't see anything obvious in the bmoweb /var/log/apache2/error.log when a test has the connection timeout, however there are several invalid username/password entries (but these appear even when the tests don't timeout so not sure if it's relevant at all). Attaching partial log.
> I don't see anything obvious in the bmoweb /var/log/apache2/error.log when a test has the connection timeout that there's entries at all indicates that bmoweb was functional. how do the timings in the error log correlate with the timings of the requests from mozreview? are there access.log entries? (should at least see the "is working" pings from comment 5)
Attached file create_bug_timeout.txt —
Scaled the test down to just create a commit, add 1 user, and create a bug. Ran the test several times but eventually was able to reproduce the create-bug connection timeout. Don't see anything obvious (attached see console and log files output).
Attachment #8756931 - Attachment is obsolete: true
/me scratches head
Blocks: 1277566
No longer blocks: 1265423
This 'connection timed out' error appears intermittently in lots of tests during lots of operations besides 'create-bug' (i.e. in 'dumpreview', 'dump-user-ldap', 'publish', etc). + ServerInterfaceError: [Errno 110] Connection timed out + + File "/var/lib/jenkins/workspace/mozreviewci-rb/testing/vcttesting/reviewboard/mach_commands.py", line 235, in dumpreview + print(serialize_review_requests(client, r)) + File "/var/lib/jenkins/workspace/mozreviewci-rb/testing/vcttesting/reviewboard/mach_commands.py", line 59, in serialize_review_requests + rr.id) + File "/var/lib/jenkins/workspace/mozreviewci-rb/venv/local/lib/python2.7/site-packages/rbtools/api/client.py", line 24, in get_path + return self._transport.get_path(path, *args, **kwargs) + File "/var/lib/jenkins/workspace/mozreviewci-rb/venv/local/lib/python2.7/site-packages/rbtools/api/transport/sync.py", line 57, in get_path + HttpRequest(self.server.url + path, query_args=kwargs)) + File "/var/lib/jenkins/workspace/mozreviewci-rb/venv/local/lib/python2.7/site-packages/rbtools/api/transport/sync.py", line 84, in _execute_request + rsp = self.server.make_request(request) + File "/var/lib/jenkins/workspace/mozreviewci-rb/venv/local/lib/python2.7/site-packages/rbtools/api/request.py", line 589, in make_request + raise ServerInterfaceError('%s' % e.reason) + [1] Just some of the tests that demonstrate this intermittent are: test-commits-deleted-obsolescence.t test-review-request-closed-discarded.t test-ldap-association.t test-specify-reviewers.t
Summary: Intermittent failure on mozreviewci: 'Connection timed out' during 'bugzilla create-bug' → Intermittent failure on mozreviewci: ServerInterfaceError: [Errno 110] Connection timed out
Won't fix, as the ubuntu-based mozreview CI has been replaced by a new CI by :mars
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: